Documentation ¶
Index ¶
- func CommonPreGrantValidation(c context.Context, client oauth2.OAuth2Client, request *auth.TokenRequest) error
- type AuthorizationCodeGranter
- type ClientCredentialsGranter
- type PKCECodeChallengeMethod
- type PasswordGranter
- type PermissionBasedGranter
- type RefreshGranter
- type SwitchTenantGranter
- type SwitchUserGranter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPreGrantValidation ¶
func CommonPreGrantValidation(c context.Context, client oauth2.OAuth2Client, request *auth.TokenRequest) error
Types ¶
type AuthorizationCodeGranter ¶
type AuthorizationCodeGranter struct {
// contains filtered or unexported fields
}
AuthorizationCodeGranter implements auth.TokenGranter
func NewAuthorizationCodeGranter ¶
func NewAuthorizationCodeGranter(authService auth.AuthorizationService, authCodeStore auth.AuthorizationCodeStore) *AuthorizationCodeGranter
func (*AuthorizationCodeGranter) Grant ¶
func (g *AuthorizationCodeGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
type ClientCredentialsGranter ¶
type ClientCredentialsGranter struct {
// contains filtered or unexported fields
}
ClientCredentialsGranter implements auth.TokenGranter
func NewClientCredentialsGranter ¶
func NewClientCredentialsGranter(authService auth.AuthorizationService) *ClientCredentialsGranter
func (*ClientCredentialsGranter) Grant ¶
func (g *ClientCredentialsGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
type PKCECodeChallengeMethod ¶
type PKCECodeChallengeMethod string
const ( PKCEChallengeMethodPlain PKCECodeChallengeMethod = "plain" PKCEChallengeMethodSHA256 PKCECodeChallengeMethod = "S256" )
func (*PKCECodeChallengeMethod) UnmarshalText ¶
func (m *PKCECodeChallengeMethod) UnmarshalText(text []byte) error
type PasswordGranter ¶
type PasswordGranter struct {
// contains filtered or unexported fields
}
PasswordGranter implements auth.TokenGranter
func NewPasswordGranter ¶
func NewPasswordGranter(authService auth.AuthorizationService, authenticator security.Authenticator) *PasswordGranter
func (*PasswordGranter) Grant ¶
func (g *PasswordGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
type PermissionBasedGranter ¶
type PermissionBasedGranter struct {
// contains filtered or unexported fields
}
PermissionBasedGranter is a helper based struct that provide common permission based implementations
type RefreshGranter ¶
type RefreshGranter struct {
// contains filtered or unexported fields
}
RefreshGranter implements auth.TokenGranter
func NewRefreshGranter ¶
func NewRefreshGranter(authService auth.AuthorizationService, tokenStore auth.TokenStore) *RefreshGranter
func (*RefreshGranter) Grant ¶
func (g *RefreshGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
type SwitchTenantGranter ¶
type SwitchTenantGranter struct { PermissionBasedGranter // contains filtered or unexported fields }
SwitchTenantGranter implements auth.TokenGranter
func NewSwitchTenantGranter ¶
func NewSwitchTenantGranter( authService auth.AuthorizationService, authenticator security.Authenticator, accountStore security.AccountStore, ) *SwitchTenantGranter
func (*SwitchTenantGranter) Grant ¶
func (g *SwitchTenantGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
type SwitchUserGranter ¶
type SwitchUserGranter struct { PermissionBasedGranter // contains filtered or unexported fields }
SwitchUserGranter implements auth.TokenGranter
func NewSwitchUserGranter ¶
func NewSwitchUserGranter(authService auth.AuthorizationService, authenticator security.Authenticator, accountStore security.AccountStore) *SwitchUserGranter
func (*SwitchUserGranter) Grant ¶
func (g *SwitchUserGranter) Grant(ctx context.Context, request *auth.TokenRequest) (oauth2.AccessToken, error)
Click to show internal directories.
Click to hide internal directories.