fositex

package
v2.2.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.DefaultProvider
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(deps configDependencies) *Config

func (*Config) GetAccessTokenIssuer

func (c *Config) GetAccessTokenIssuer(ctx context.Context) string

func (*Config) GetAllowedPrompts

func (c *Config) GetAllowedPrompts(ctx context.Context) []string

func (*Config) GetAudienceStrategy

func (c *Config) GetAudienceStrategy(ctx context.Context) fosite.AudienceMatchingStrategy

func (*Config) GetAuthorizeEndpointHandlers

func (c *Config) GetAuthorizeEndpointHandlers(ctx context.Context) fosite.AuthorizeEndpointHandlers

func (*Config) GetClientAuthenticationStrategy

func (c *Config) GetClientAuthenticationStrategy(ctx context.Context) fosite.ClientAuthenticationStrategy

func (*Config) GetDisableRefreshTokenValidation

func (c *Config) GetDisableRefreshTokenValidation(ctx context.Context) bool

func (*Config) GetEnablePKCEPlainChallengeMethod

func (c *Config) GetEnablePKCEPlainChallengeMethod(ctx context.Context) bool

func (*Config) GetFormPostHTMLTemplate

func (c *Config) GetFormPostHTMLTemplate(ctx context.Context) *template.Template

func (*Config) GetGrantTypeJWTBearerCanSkipClientAuth

func (c *Config) GetGrantTypeJWTBearerCanSkipClientAuth(ctx context.Context) bool

func (*Config) GetHMACHasher

func (c *Config) GetHMACHasher(ctx context.Context) func() hash.Hash

func (*Config) GetHTTPClient

func (c *Config) GetHTTPClient(ctx context.Context) *retryablehttp.Client

func (*Config) GetIDTokenIssuer

func (c *Config) GetIDTokenIssuer(ctx context.Context) string

func (*Config) GetJWKSFetcherStrategy

func (c *Config) GetJWKSFetcherStrategy(ctx context.Context) fosite.JWKSFetcherStrategy

func (*Config) GetJWTScopeField

func (c *Config) GetJWTScopeField(ctx context.Context) jwt.JWTScopeFieldEnum

func (*Config) GetMessageCatalog

func (c *Config) GetMessageCatalog(ctx context.Context) i18n.MessageCatalog

func (*Config) GetMinParameterEntropy

func (c *Config) GetMinParameterEntropy(_ context.Context) int

func (*Config) GetOmitRedirectScopeParam

func (c *Config) GetOmitRedirectScopeParam(ctx context.Context) bool

func (*Config) GetRedirectSecureChecker

func (c *Config) GetRedirectSecureChecker(ctx context.Context) func(context.Context, *url.URL) bool

func (*Config) GetRefreshTokenScopes

func (c *Config) GetRefreshTokenScopes(ctx context.Context) []string

func (*Config) GetResponseModeHandlerExtension

func (c *Config) GetResponseModeHandlerExtension(ctx context.Context) fosite.ResponseModeHandler

func (*Config) GetRevocationHandlers

func (c *Config) GetRevocationHandlers(ctx context.Context) fosite.RevocationHandlers

func (*Config) GetSanitationWhiteList

func (c *Config) GetSanitationWhiteList(ctx context.Context) []string

func (*Config) GetSecretsHasher

func (c *Config) GetSecretsHasher(ctx context.Context) fosite.Hasher

func (*Config) GetSendDebugMessagesToClients

func (c *Config) GetSendDebugMessagesToClients(ctx context.Context) bool

func (*Config) GetTokenEndpointHandlers

func (c *Config) GetTokenEndpointHandlers(ctx context.Context) fosite.TokenEndpointHandlers

func (*Config) GetTokenEntropy

func (c *Config) GetTokenEntropy(ctx context.Context) int

func (*Config) GetTokenIntrospectionHandlers

func (c *Config) GetTokenIntrospectionHandlers(ctx context.Context) (r fosite.TokenIntrospectionHandlers)

func (*Config) GetTokenURL

func (c *Config) GetTokenURL(ctx context.Context) string

func (*Config) LoadDefaultHanlders

func (c *Config) LoadDefaultHanlders(strategy interface{})

type TokenStrategy

type TokenStrategy struct {
	// contains filtered or unexported fields
}

TokenStrategy uses the correct token strategy (jwt, opaque) depending on the configuration.

func NewTokenStrategy

NewTokenStrategy returns a new TokenStrategy.

func (TokenStrategy) AccessTokenSignature

func (t TokenStrategy) AccessTokenSignature(_ context.Context, token string) string

func (TokenStrategy) AuthorizeCodeSignature

func (t TokenStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string

func (TokenStrategy) GenerateAccessToken

func (t TokenStrategy) GenerateAccessToken(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)

func (TokenStrategy) GenerateAuthorizeCode

func (t TokenStrategy) GenerateAuthorizeCode(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)

func (TokenStrategy) GenerateRefreshToken

func (t TokenStrategy) GenerateRefreshToken(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)

func (TokenStrategy) RefreshTokenSignature

func (t TokenStrategy) RefreshTokenSignature(ctx context.Context, token string) string

func (TokenStrategy) ValidateAccessToken

func (t TokenStrategy) ValidateAccessToken(ctx context.Context, requester fosite.Requester, token string) (err error)

func (TokenStrategy) ValidateAuthorizeCode

func (t TokenStrategy) ValidateAuthorizeCode(ctx context.Context, requester fosite.Requester, token string) (err error)

func (TokenStrategy) ValidateRefreshToken

func (t TokenStrategy) ValidateRefreshToken(ctx context.Context, requester fosite.Requester, token string) (err error)

Jump to

Keyboard shortcuts

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