Categorygithub.com/apstndb/adcplus
modulepackage
0.0.0-20210615091706-c0983920581f
Repository: https://github.com/apstndb/adcplus.git
Documentation: pkg.go.dev

# README

adcplus

Go Reference

This package implements oauth2.TokenSource and signer which respects ADC with impersonation.

Disclaimer

This package is EXPERIMENTAL.

  • No responsibility.
  • May be broken.
  • Will do breaking changes.

Underlying method

signer.SmartSigner

credential/impersonateyesno
authorized_userCredentials APINot Supported
service_accountCredentials APISign by JSON key
external_accountCredentials APICredentials API as itself
compute_metadataCredentials APICredentials API as itself
App Engine 1st gen(only if WithExperimentalAppEngineSigner(true))Credentials APIappengine.SignBytes()

tokensource.SmartAccessTokenSource

credential/impersonateyesno
authorized_userCredentials APIADC(refresh token flow)
service_accountCredentials APIADC(jwt-bearer token flow)
external_accountCredentials APIADC(STS)
compute_metadataCredentials APIADC(token endpoint)

tokensource.SmartIDTokenSource

credential/impersonateyesno
authorized_userCredentials APINot Supported
service_accountCredentials APIADC(jwt-bearer flow)
external_accountCredentials APINot Supported(TODO: retrieve using STS)
compute_metadataCredentials APIADC(identity endpoint)

TODO

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

WithCredentialsFile returns Option which specifies the path of credentials.
WithCredentialsJSON returns Option which specifies the content of credentials.
WithDelegates returns Option which specifies the delegate chain for impersonation.
WithExperimentalAppEngineSigner returns Option which specifies to use appengine.SignBytes by Signer.
WithScopes returns Option which specifies the scopes of the access token.
WithTargetPrincipal returns Option which specifies the target principal for impersonation.

# Type aliases

No description provided by the author