mock

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthStorage

func NewAuthStorage() op.Storage

Types

type AuthRequest

type AuthRequest struct {
	ID            string
	ResponseType  oidc.ResponseType
	RedirectURI   string
	Nonce         string
	ClientID      string
	CodeChallenge *oidc.CodeChallenge
}

func (*AuthRequest) Done

func (a *AuthRequest) Done() bool

func (*AuthRequest) GetACR

func (a *AuthRequest) GetACR() string

func (*AuthRequest) GetAMR

func (a *AuthRequest) GetAMR() []string

func (*AuthRequest) GetAudience

func (a *AuthRequest) GetAudience() []string

func (*AuthRequest) GetAuthTime

func (a *AuthRequest) GetAuthTime() time.Time

func (*AuthRequest) GetClientID

func (a *AuthRequest) GetClientID() string

func (*AuthRequest) GetCode

func (a *AuthRequest) GetCode() string

func (*AuthRequest) GetCodeChallenge

func (a *AuthRequest) GetCodeChallenge() *oidc.CodeChallenge

func (*AuthRequest) GetID

func (a *AuthRequest) GetID() string

func (*AuthRequest) GetNonce

func (a *AuthRequest) GetNonce() string

func (*AuthRequest) GetRedirectURI

func (a *AuthRequest) GetRedirectURI() string

func (*AuthRequest) GetResponseType

func (a *AuthRequest) GetResponseType() oidc.ResponseType

func (*AuthRequest) GetScopes

func (a *AuthRequest) GetScopes() []string

func (*AuthRequest) GetState

func (a *AuthRequest) GetState() string

func (*AuthRequest) GetSubject

func (a *AuthRequest) GetSubject() string

type AuthStorage

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

func (*AuthStorage) AuthRequestByCode

func (s *AuthStorage) AuthRequestByCode(_ context.Context, code string) (op.AuthRequest, error)

func (*AuthStorage) AuthRequestByID

func (s *AuthStorage) AuthRequestByID(_ context.Context, id string) (op.AuthRequest, error)

func (*AuthStorage) AuthorizeClientIDSecret

func (s *AuthStorage) AuthorizeClientIDSecret(_ context.Context, id string, _ string) error

func (*AuthStorage) CreateAuthRequest

func (s *AuthStorage) CreateAuthRequest(_ context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, error)

func (*AuthStorage) CreateToken added in v0.3.1

func (s *AuthStorage) CreateToken(_ context.Context, authReq op.TokenRequest) (string, time.Time, error)

func (*AuthStorage) DeleteAuthRequest

func (s *AuthStorage) DeleteAuthRequest(context.Context, string) error

func (*AuthStorage) GetClientByClientID

func (s *AuthStorage) GetClientByClientID(_ context.Context, id string) (op.Client, error)

func (*AuthStorage) GetKey

func (s *AuthStorage) GetKey(_ context.Context) (*rsa.PrivateKey, error)

func (*AuthStorage) GetKeyByIDAndUserID added in v0.9.0

func (s *AuthStorage) GetKeyByIDAndUserID(_ context.Context, _, _ string) (*jose.JSONWebKey, error)

func (*AuthStorage) GetKeySet

func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)

func (*AuthStorage) GetPrivateClaimsFromScopes added in v0.12.0

func (s *AuthStorage) GetPrivateClaimsFromScopes(_ context.Context, _, _ string, _ []string) (map[string]interface{}, error)

func (*AuthStorage) GetSigningKey

func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey, _ chan<- error, _ <-chan time.Time)

func (*AuthStorage) GetUserinfoFromScopes

func (s *AuthStorage) GetUserinfoFromScopes(_ context.Context, _, _ string, _ []string) (oidc.UserInfo, error)

func (*AuthStorage) GetUserinfoFromToken added in v0.4.2

func (s *AuthStorage) GetUserinfoFromToken(ctx context.Context, _, _, _ string) (oidc.UserInfo, error)

func (*AuthStorage) Health added in v0.2.1

func (s *AuthStorage) Health(ctx context.Context) error

func (*AuthStorage) SaveAuthCode added in v0.6.2

func (s *AuthStorage) SaveAuthCode(_ context.Context, id, code string) error

func (*AuthStorage) SaveNewKeyPair added in v0.2.1

func (s *AuthStorage) SaveNewKeyPair(ctx context.Context) error

func (*AuthStorage) TerminateSession added in v0.4.0

func (s *AuthStorage) TerminateSession(_ context.Context, userID, clientID string) error

type ConfClient

type ConfClient struct {
	ID string
	// contains filtered or unexported fields
}

func (*ConfClient) AccessTokenType

func (c *ConfClient) AccessTokenType() op.AccessTokenType

func (*ConfClient) AllowedScopes added in v0.12.0

func (c *ConfClient) AllowedScopes() []string

func (*ConfClient) ApplicationType

func (c *ConfClient) ApplicationType() op.ApplicationType

func (*ConfClient) AuthMethod added in v0.7.0

func (c *ConfClient) AuthMethod() op.AuthMethod

func (*ConfClient) ClockSkew added in v0.13.0

func (c *ConfClient) ClockSkew() time.Duration

func (*ConfClient) DevMode added in v0.7.0

func (c *ConfClient) DevMode() bool

func (*ConfClient) GetID

func (c *ConfClient) GetID() string

func (*ConfClient) IDTokenLifetime

func (c *ConfClient) IDTokenLifetime() time.Duration

func (*ConfClient) IDTokenUserinfoClaimsAssertion added in v0.13.0

func (c *ConfClient) IDTokenUserinfoClaimsAssertion() bool

func (*ConfClient) IsScopeAllowed added in v0.12.4

func (c *ConfClient) IsScopeAllowed(scope string) bool

func (*ConfClient) LoginURL

func (c *ConfClient) LoginURL(id string) string

func (*ConfClient) PostLogoutRedirectURIs added in v0.4.0

func (c *ConfClient) PostLogoutRedirectURIs() []string

func (*ConfClient) RedirectURIs

func (c *ConfClient) RedirectURIs() []string

func (*ConfClient) ResponseTypes added in v0.7.0

func (c *ConfClient) ResponseTypes() []oidc.ResponseType

func (*ConfClient) RestrictAdditionalAccessTokenScopes added in v0.12.4

func (c *ConfClient) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string

func (*ConfClient) RestrictAdditionalIdTokenScopes added in v0.12.4

func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string

Jump to

Keyboard shortcuts

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