Documentation ¶
Index ¶
- type Config
- func (c *Config) GetAccessTokenIssuer(ctx context.Context) string
- func (c *Config) GetAllowedPrompts(ctx context.Context) []string
- func (c *Config) GetAudienceStrategy(ctx context.Context) fosite.AudienceMatchingStrategy
- func (c *Config) GetAuthorizeEndpointHandlers(ctx context.Context) fosite.AuthorizeEndpointHandlers
- func (c *Config) GetClientAuthenticationStrategy(ctx context.Context) fosite.ClientAuthenticationStrategy
- func (c *Config) GetDisableRefreshTokenValidation(ctx context.Context) bool
- func (c *Config) GetEnablePKCEPlainChallengeMethod(ctx context.Context) bool
- func (c *Config) GetFormPostHTMLTemplate(ctx context.Context) *template.Template
- func (c *Config) GetGrantTypeJWTBearerCanSkipClientAuth(ctx context.Context) bool
- func (c *Config) GetHMACHasher(ctx context.Context) func() hash.Hash
- func (c *Config) GetHTTPClient(ctx context.Context) *retryablehttp.Client
- func (c *Config) GetIDTokenIssuer(ctx context.Context) string
- func (c *Config) GetJWKSFetcherStrategy(ctx context.Context) fosite.JWKSFetcherStrategy
- func (c *Config) GetJWTScopeField(ctx context.Context) jwt.JWTScopeFieldEnum
- func (c *Config) GetMessageCatalog(ctx context.Context) i18n.MessageCatalog
- func (c *Config) GetMinParameterEntropy(_ context.Context) int
- func (c *Config) GetOmitRedirectScopeParam(ctx context.Context) bool
- func (c *Config) GetRedirectSecureChecker(ctx context.Context) func(context.Context, *url.URL) bool
- func (c *Config) GetRefreshTokenScopes(ctx context.Context) []string
- func (c *Config) GetResponseModeHandlerExtension(ctx context.Context) fosite.ResponseModeHandler
- func (c *Config) GetRevocationHandlers(ctx context.Context) fosite.RevocationHandlers
- func (c *Config) GetSanitationWhiteList(ctx context.Context) []string
- func (c *Config) GetSecretsHasher(ctx context.Context) fosite.Hasher
- func (c *Config) GetSendDebugMessagesToClients(ctx context.Context) bool
- func (c *Config) GetTokenEndpointHandlers(ctx context.Context) fosite.TokenEndpointHandlers
- func (c *Config) GetTokenEntropy(ctx context.Context) int
- func (c *Config) GetTokenIntrospectionHandlers(ctx context.Context) (r fosite.TokenIntrospectionHandlers)
- func (c *Config) GetTokenURL(ctx context.Context) string
- func (c *Config) LoadDefaultHanlders(strategy interface{})
- type TokenStrategy
- func (t TokenStrategy) AccessTokenSignature(_ context.Context, token string) string
- func (t TokenStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string
- func (t TokenStrategy) GenerateAccessToken(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (t TokenStrategy) GenerateAuthorizeCode(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (t TokenStrategy) GenerateRefreshToken(ctx context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (t TokenStrategy) RefreshTokenSignature(ctx context.Context, token string) string
- func (t TokenStrategy) ValidateAccessToken(ctx context.Context, requester fosite.Requester, token string) (err error)
- func (t TokenStrategy) ValidateAuthorizeCode(ctx context.Context, requester fosite.Requester, token string) (err error)
- func (t TokenStrategy) ValidateRefreshToken(ctx context.Context, requester fosite.Requester, token string) (err error)
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 (*Config) GetAccessTokenIssuer ¶
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 (*Config) GetEnablePKCEPlainChallengeMethod ¶
func (*Config) GetFormPostHTMLTemplate ¶
func (*Config) GetGrantTypeJWTBearerCanSkipClientAuth ¶
func (*Config) GetHTTPClient ¶
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 (*Config) GetOmitRedirectScopeParam ¶
func (*Config) GetRedirectSecureChecker ¶
func (*Config) GetRefreshTokenScopes ¶
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 (*Config) GetSecretsHasher ¶
func (*Config) GetSendDebugMessagesToClients ¶
func (*Config) GetTokenEndpointHandlers ¶
func (c *Config) GetTokenEndpointHandlers(ctx context.Context) fosite.TokenEndpointHandlers
func (*Config) GetTokenIntrospectionHandlers ¶
func (c *Config) GetTokenIntrospectionHandlers(ctx context.Context) (r fosite.TokenIntrospectionHandlers)
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 ¶
func NewTokenStrategy(c *config.DefaultProvider, hmac *foauth2.HMACSHAStrategy, jwt *foauth2.DefaultJWTStrategy) *TokenStrategy
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 (TokenStrategy) GenerateAuthorizeCode ¶
func (TokenStrategy) GenerateRefreshToken ¶
func (TokenStrategy) RefreshTokenSignature ¶
func (t TokenStrategy) RefreshTokenSignature(ctx context.Context, token string) string
func (TokenStrategy) ValidateAccessToken ¶
func (TokenStrategy) ValidateAuthorizeCode ¶
func (TokenStrategy) ValidateRefreshToken ¶
Click to show internal directories.
Click to hide internal directories.