grants

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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