tokenexchange

package
v0.0.0-...-a8d69e9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 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