Documentation ¶
Index ¶
- Constants
- func WithActorToken(token, tokenType string) func(*TokenExchangeRequest)
- func WithAudience(audience []string) func(*TokenExchangeRequest)
- func WithRequestedTokenType(tokenType string) func(*TokenExchangeRequest)
- func WithResource(resource []string) func(*TokenExchangeRequest)
- func WithScope(scope []string) func(*TokenExchangeRequest)
- type TokenExchangeOption
- type TokenExchangeRequest
Constants ¶
View Source
const ( AccessTokenType = "urn:ietf:params:oauth:token-type:access_token" RefreshTokenType = "urn:ietf:params:oauth:token-type:refresh_token" IDTokenType = "urn:ietf:params:oauth:token-type:id_token" JWTTokenType = "urn:ietf:params:oauth:token-type:jwt" DelegationTokenType = AccessTokenType TokenExchangeGrantType = "urn:ietf:params:oauth:grant-type:token-exchange" )
Variables ¶
This section is empty.
Functions ¶
func WithActorToken ¶
func WithActorToken(token, tokenType string) func(*TokenExchangeRequest)
func WithAudience ¶
func WithAudience(audience []string) func(*TokenExchangeRequest)
func WithRequestedTokenType ¶
func WithRequestedTokenType(tokenType string) func(*TokenExchangeRequest)
func WithResource ¶
func WithResource(resource []string) func(*TokenExchangeRequest)
func WithScope ¶
func WithScope(scope []string) func(*TokenExchangeRequest)
Types ¶
type TokenExchangeOption ¶
type TokenExchangeOption func(*TokenExchangeRequest)
func WithGrantType ¶
func WithGrantType(grantType string) TokenExchangeOption
type TokenExchangeRequest ¶
type TokenExchangeRequest struct {
// contains filtered or unexported fields
}
func NewTokenExchangeRequest ¶
func NewTokenExchangeRequest(subjectToken, subjectTokenType string, opts ...TokenExchangeOption) *TokenExchangeRequest
Click to show internal directories.
Click to hide internal directories.