tokenexchange

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL