Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + func CommonPreGrantValidation(c context.Context, client oauth2.OAuth2Client, request *auth.TokenRequest) error + type AuthorizationCodeGranter struct + func NewAuthorizationCodeGranter(authService auth.AuthorizationService, ...) *AuthorizationCodeGranter + func (g *AuthorizationCodeGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error) + type ClientCredentialsGranter struct + func NewClientCredentialsGranter(authService auth.AuthorizationService) *ClientCredentialsGranter + func (g *ClientCredentialsGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error) + type PKCECodeChallengeMethod string + const PKCEChallengeMethodPlain + const PKCEChallengeMethodSHA256 + func (m *PKCECodeChallengeMethod) UnmarshalText(text []byte) error + type PasswordGranter struct + func NewPasswordGranter(authService auth.AuthorizationService, authenticator security.Authenticator) *PasswordGranter + func (g *PasswordGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error) + type PermissionBasedGranter struct + type RefreshGranter struct + func NewRefreshGranter(authService auth.AuthorizationService, tokenStore auth.TokenStore) *RefreshGranter + func (g *RefreshGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error) + type SwitchTenantGranter struct + func NewSwitchTenantGranter(authService auth.AuthorizationService, authenticator security.Authenticator, ...) *SwitchTenantGranter + func (g *SwitchTenantGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error) + type SwitchUserGranter struct + func NewSwitchUserGranter(authService auth.AuthorizationService, authenticator security.Authenticator, ...) *SwitchUserGranter + func (g *SwitchUserGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)