Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAssertionDuration ¶
WithAssertionDuration sets the duration for the JWT assertion expiration. If not set, defaults to 1 hour.
func WithHTTPClient ¶
func WithStaticTokenEndpoint ¶
func WithStaticTokenEndpoint(issuer, tokenEndpoint string) func(source *jwtProfileTokenSource)
Types ¶
type TokenSource ¶
func NewJWTProfileTokenSource ¶
func NewJWTProfileTokenSource(ctx context.Context, issuer, clientID, keyID string, key []byte, scopes []string, options ...func(source *jwtProfileTokenSource)) (TokenSource, error)
NewJWTProfileTokenSource returns an implementation of oauth2.TokenSource It will request a token using the OAuth2 JWT Profile Grant, therefore sending an `assertion` by singing a JWT with the provided private key.
The passed context is only used for the call to the Discover endpoint.
Click to show internal directories.
Click to hide internal directories.