Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- func ExpectDecoder(a op.Authorizer)
- func ExpectEncoder(a op.Authorizer)
- func ExpectInvalidClientID(s op.Storage)
- func ExpectSigner(a op.Authorizer, t *testing.T)
- func ExpectSigningKey(s op.Storage)
- func ExpectSigningKeyError(s op.Storage)
- func ExpectSigningKeyInvalid(s op.Storage)
- func ExpectStorage(a op.Authorizer, t *testing.T)
- func ExpectValidClientID(s op.Storage)
- func ExpectVerifier(a op.Authorizer, t *testing.T)
- func NewAuthorizer(t *testing.T) op.Authorizer
- func NewAuthorizerExpectValid(t *testing.T, wantErr bool) op.Authorizer
- func NewClient(t *testing.T) op.Client
- func NewClientExpectAny(t *testing.T, appType op.ApplicationType) op.Client
- func NewClientWithConfig(t *testing.T, uri []string, appType op.ApplicationType, ...) op.Client
- func NewMockStorageAny(t *testing.T) op.Storage
- func NewMockStorageExpectInvalidClientID(t *testing.T) op.Storage
- func NewMockStorageExpectValidClientID(t *testing.T) op.Storage
- func NewMockStorageSigningKey(t *testing.T) op.Storage
- func NewMockStorageSigningKeyError(t *testing.T) op.Storage
- func NewMockStorageSigningKeyInvalid(t *testing.T) op.Storage
- func NewStorage(t *testing.T) op.Storage
- type ConfClient
- func (c *ConfClient) AccessTokenLifetime() time.Duration
- func (c *ConfClient) AccessTokenType() op.AccessTokenType
- func (c *ConfClient) AllowedScopes() []string
- func (c *ConfClient) ApplicationType() op.ApplicationType
- func (c *ConfClient) AuthMethod() op.AuthMethod
- func (c *ConfClient) ClockSkew() time.Duration
- func (c *ConfClient) DevMode() bool
- func (c *ConfClient) GetID() string
- func (c *ConfClient) IDTokenLifetime() time.Duration
- func (c *ConfClient) IDTokenUserinfoClaimsAssertion() bool
- func (c *ConfClient) IsScopeAllowed(scope string) bool
- func (c *ConfClient) LoginURL(id string) string
- func (c *ConfClient) PostLogoutRedirectURIs() []string
- func (c *ConfClient) RedirectURIs() []string
- func (c *ConfClient) ResponseTypes() []oidc.ResponseType
- func (c *ConfClient) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
- func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
- type MockAuthorizer
- func (m *MockAuthorizer) Crypto() op.Crypto
- func (m *MockAuthorizer) Decoder() utils.Decoder
- func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
- func (m *MockAuthorizer) Encoder() utils.Encoder
- func (m *MockAuthorizer) IDTokenHintVerifier() op.IDTokenHintVerifier
- func (m *MockAuthorizer) Issuer() string
- func (m *MockAuthorizer) Signer() op.Signer
- func (m *MockAuthorizer) Storage() op.Storage
- type MockAuthorizerMockRecorder
- func (mr *MockAuthorizerMockRecorder) Crypto() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Decoder() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Encoder() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) IDTokenHintVerifier() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Issuer() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Signer() *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Storage() *gomock.Call
- type MockClient
- func (m *MockClient) AccessTokenType() op.AccessTokenType
- func (m *MockClient) ApplicationType() op.ApplicationType
- func (m *MockClient) AuthMethod() op.AuthMethod
- func (m *MockClient) ClockSkew() time.Duration
- func (m *MockClient) DevMode() bool
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetID() string
- func (m *MockClient) IDTokenLifetime() time.Duration
- func (m *MockClient) IDTokenUserinfoClaimsAssertion() bool
- func (m *MockClient) IsScopeAllowed(arg0 string) bool
- func (m *MockClient) LoginURL(arg0 string) string
- func (m *MockClient) PostLogoutRedirectURIs() []string
- func (m *MockClient) RedirectURIs() []string
- func (m *MockClient) ResponseTypes() []oidc.ResponseType
- func (m *MockClient) RestrictAdditionalAccessTokenScopes() func([]string) []string
- func (m *MockClient) RestrictAdditionalIdTokenScopes() func([]string) []string
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AccessTokenType() *gomock.Call
- func (mr *MockClientMockRecorder) ApplicationType() *gomock.Call
- func (mr *MockClientMockRecorder) AuthMethod() *gomock.Call
- func (mr *MockClientMockRecorder) ClockSkew() *gomock.Call
- func (mr *MockClientMockRecorder) DevMode() *gomock.Call
- func (mr *MockClientMockRecorder) GetID() *gomock.Call
- func (mr *MockClientMockRecorder) IDTokenLifetime() *gomock.Call
- func (mr *MockClientMockRecorder) IDTokenUserinfoClaimsAssertion() *gomock.Call
- func (mr *MockClientMockRecorder) IsScopeAllowed(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LoginURL(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PostLogoutRedirectURIs() *gomock.Call
- func (mr *MockClientMockRecorder) RedirectURIs() *gomock.Call
- func (mr *MockClientMockRecorder) ResponseTypes() *gomock.Call
- func (mr *MockClientMockRecorder) RestrictAdditionalAccessTokenScopes() *gomock.Call
- func (mr *MockClientMockRecorder) RestrictAdditionalIdTokenScopes() *gomock.Call
- type MockConfiguration
- func (m *MockConfiguration) AuthMethodPostSupported() bool
- func (m *MockConfiguration) AuthorizationEndpoint() op.Endpoint
- func (m *MockConfiguration) CodeMethodS256Supported() bool
- func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder
- func (m *MockConfiguration) EndSessionEndpoint() op.Endpoint
- func (m *MockConfiguration) GrantTypeJWTAuthorizationSupported() bool
- func (m *MockConfiguration) GrantTypeTokenExchangeSupported() bool
- func (m *MockConfiguration) Issuer() string
- func (m *MockConfiguration) KeysEndpoint() op.Endpoint
- func (m *MockConfiguration) TokenEndpoint() op.Endpoint
- func (m *MockConfiguration) UserinfoEndpoint() op.Endpoint
- type MockConfigurationMockRecorder
- func (mr *MockConfigurationMockRecorder) AuthMethodPostSupported() *gomock.Call
- func (mr *MockConfigurationMockRecorder) AuthorizationEndpoint() *gomock.Call
- func (mr *MockConfigurationMockRecorder) CodeMethodS256Supported() *gomock.Call
- func (mr *MockConfigurationMockRecorder) EndSessionEndpoint() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GrantTypeJWTAuthorizationSupported() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GrantTypeTokenExchangeSupported() *gomock.Call
- func (mr *MockConfigurationMockRecorder) Issuer() *gomock.Call
- func (mr *MockConfigurationMockRecorder) KeysEndpoint() *gomock.Call
- func (mr *MockConfigurationMockRecorder) TokenEndpoint() *gomock.Call
- func (mr *MockConfigurationMockRecorder) UserinfoEndpoint() *gomock.Call
- type MockSigner
- type MockSignerMockRecorder
- type MockStorage
- func (m *MockStorage) AuthRequestByCode(arg0 context.Context, arg1 string) (op.AuthRequest, error)
- func (m *MockStorage) AuthRequestByID(arg0 context.Context, arg1 string) (op.AuthRequest, error)
- func (m *MockStorage) AuthorizeClientIDSecret(arg0 context.Context, arg1, arg2 string) error
- func (m *MockStorage) CreateAuthRequest(arg0 context.Context, arg1 *oidc.AuthRequest, arg2 string) (op.AuthRequest, error)
- func (m *MockStorage) CreateToken(arg0 context.Context, arg1 op.TokenRequest) (string, time.Time, error)
- func (m *MockStorage) DeleteAuthRequest(arg0 context.Context, arg1 string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetClientByClientID(arg0 context.Context, arg1 string) (op.Client, error)
- func (m *MockStorage) GetKeyByIDAndUserID(arg0 context.Context, arg1, arg2 string) (*jose.JSONWebKey, error)
- func (m *MockStorage) GetKeySet(arg0 context.Context) (*jose.JSONWebKeySet, error)
- func (m *MockStorage) GetPrivateClaimsFromScopes(arg0 context.Context, arg1, arg2 string, arg3 []string) (map[string]interface{}, error)
- func (m *MockStorage) GetSigningKey(arg0 context.Context, arg1 chan<- jose.SigningKey, arg2 chan<- error, ...)
- func (m *MockStorage) GetUserinfoFromScopes(arg0 context.Context, arg1, arg2 string, arg3 []string) (oidc.UserInfo, error)
- func (m *MockStorage) GetUserinfoFromToken(arg0 context.Context, arg1, arg2, arg3 string) (oidc.UserInfo, error)
- func (m *MockStorage) Health(arg0 context.Context) error
- func (m *MockStorage) SaveAuthCode(arg0 context.Context, arg1, arg2 string) error
- func (m *MockStorage) SaveNewKeyPair(arg0 context.Context) error
- func (m *MockStorage) TerminateSession(arg0 context.Context, arg1, arg2 string) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) AuthRequestByCode(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) AuthRequestByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) AuthorizeClientIDSecret(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) CreateAuthRequest(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) CreateToken(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteAuthRequest(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetClientByClientID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetKeyByIDAndUserID(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetKeySet(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetPrivateClaimsFromScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetSigningKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetUserinfoFromScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetUserinfoFromToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Health(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveAuthCode(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveNewKeyPair(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) TerminateSession(arg0, arg1, arg2 interface{}) *gomock.Call
- type Sig
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectDecoder ¶
func ExpectDecoder(a op.Authorizer)
func ExpectEncoder ¶
func ExpectEncoder(a op.Authorizer)
func ExpectInvalidClientID ¶
func ExpectSigner ¶
func ExpectSigner(a op.Authorizer, t *testing.T)
func ExpectSigningKey ¶
func ExpectSigningKeyError ¶
func ExpectSigningKeyInvalid ¶
func ExpectStorage ¶
func ExpectStorage(a op.Authorizer, t *testing.T)
func ExpectValidClientID ¶
func ExpectVerifier ¶ added in v0.5.0
func ExpectVerifier(a op.Authorizer, t *testing.T)
func NewAuthorizer ¶
func NewAuthorizer(t *testing.T) op.Authorizer
func NewAuthorizerExpectValid ¶
func NewAuthorizerExpectValid(t *testing.T, wantErr bool) op.Authorizer
func NewClientExpectAny ¶
func NewClientWithConfig ¶ added in v0.7.0
func NewClientWithConfig(t *testing.T, uri []string, appType op.ApplicationType, responseTypes []oidc.ResponseType, devMode bool) op.Client
Types ¶
type ConfClient ¶
type ConfClient struct {
// contains filtered or unexported fields
}
func (*ConfClient) AccessTokenLifetime ¶
func (c *ConfClient) AccessTokenLifetime() time.Duration
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
type MockAuthorizer ¶
type MockAuthorizer struct {
// contains filtered or unexported fields
}
MockAuthorizer is a mock of Authorizer interface
func NewMockAuthorizer ¶
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer
NewMockAuthorizer creates a new mock instance
func (*MockAuthorizer) Crypto ¶
func (m *MockAuthorizer) Crypto() op.Crypto
Crypto mocks base method
func (*MockAuthorizer) Decoder ¶
func (m *MockAuthorizer) Decoder() utils.Decoder
Decoder mocks base method
func (*MockAuthorizer) EXPECT ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthorizer) Encoder ¶
func (m *MockAuthorizer) Encoder() utils.Encoder
Encoder mocks base method
func (*MockAuthorizer) IDTokenHintVerifier ¶ added in v0.9.0
func (m *MockAuthorizer) IDTokenHintVerifier() op.IDTokenHintVerifier
IDTokenHintVerifier mocks base method
func (*MockAuthorizer) Signer ¶
func (m *MockAuthorizer) Signer() op.Signer
Signer mocks base method
func (*MockAuthorizer) Storage ¶
func (m *MockAuthorizer) Storage() op.Storage
Storage mocks base method
type MockAuthorizerMockRecorder ¶
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer
func (*MockAuthorizerMockRecorder) Crypto ¶
func (mr *MockAuthorizerMockRecorder) Crypto() *gomock.Call
Crypto indicates an expected call of Crypto
func (*MockAuthorizerMockRecorder) Decoder ¶
func (mr *MockAuthorizerMockRecorder) Decoder() *gomock.Call
Decoder indicates an expected call of Decoder
func (*MockAuthorizerMockRecorder) Encoder ¶
func (mr *MockAuthorizerMockRecorder) Encoder() *gomock.Call
Encoder indicates an expected call of Encoder
func (*MockAuthorizerMockRecorder) IDTokenHintVerifier ¶ added in v0.9.0
func (mr *MockAuthorizerMockRecorder) IDTokenHintVerifier() *gomock.Call
IDTokenHintVerifier indicates an expected call of IDTokenHintVerifier
func (*MockAuthorizerMockRecorder) Issuer ¶
func (mr *MockAuthorizerMockRecorder) Issuer() *gomock.Call
Issuer indicates an expected call of Issuer
func (*MockAuthorizerMockRecorder) Signer ¶
func (mr *MockAuthorizerMockRecorder) Signer() *gomock.Call
Signer indicates an expected call of Signer
func (*MockAuthorizerMockRecorder) Storage ¶
func (mr *MockAuthorizerMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) AccessTokenType ¶
func (m *MockClient) AccessTokenType() op.AccessTokenType
AccessTokenType mocks base method
func (*MockClient) ApplicationType ¶
func (m *MockClient) ApplicationType() op.ApplicationType
ApplicationType mocks base method
func (*MockClient) AuthMethod ¶ added in v0.7.0
func (m *MockClient) AuthMethod() op.AuthMethod
AuthMethod mocks base method
func (*MockClient) ClockSkew ¶ added in v0.13.0
func (m *MockClient) ClockSkew() time.Duration
ClockSkew mocks base method
func (*MockClient) DevMode ¶ added in v0.7.0
func (m *MockClient) DevMode() bool
DevMode mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) IDTokenLifetime ¶
func (m *MockClient) IDTokenLifetime() time.Duration
IDTokenLifetime mocks base method
func (*MockClient) IDTokenUserinfoClaimsAssertion ¶ added in v0.13.0
func (m *MockClient) IDTokenUserinfoClaimsAssertion() bool
IDTokenUserinfoClaimsAssertion mocks base method
func (*MockClient) IsScopeAllowed ¶ added in v0.12.4
func (m *MockClient) IsScopeAllowed(arg0 string) bool
IsScopeAllowed mocks base method
func (*MockClient) LoginURL ¶
func (m *MockClient) LoginURL(arg0 string) string
LoginURL mocks base method
func (*MockClient) PostLogoutRedirectURIs ¶ added in v0.4.0
func (m *MockClient) PostLogoutRedirectURIs() []string
PostLogoutRedirectURIs mocks base method
func (*MockClient) RedirectURIs ¶
func (m *MockClient) RedirectURIs() []string
RedirectURIs mocks base method
func (*MockClient) ResponseTypes ¶ added in v0.7.0
func (m *MockClient) ResponseTypes() []oidc.ResponseType
ResponseTypes mocks base method
func (*MockClient) RestrictAdditionalAccessTokenScopes ¶ added in v0.12.4
func (m *MockClient) RestrictAdditionalAccessTokenScopes() func([]string) []string
RestrictAdditionalAccessTokenScopes mocks base method
func (*MockClient) RestrictAdditionalIdTokenScopes ¶ added in v0.12.4
func (m *MockClient) RestrictAdditionalIdTokenScopes() func([]string) []string
RestrictAdditionalIdTokenScopes mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) AccessTokenType ¶
func (mr *MockClientMockRecorder) AccessTokenType() *gomock.Call
AccessTokenType indicates an expected call of AccessTokenType
func (*MockClientMockRecorder) ApplicationType ¶
func (mr *MockClientMockRecorder) ApplicationType() *gomock.Call
ApplicationType indicates an expected call of ApplicationType
func (*MockClientMockRecorder) AuthMethod ¶ added in v0.7.0
func (mr *MockClientMockRecorder) AuthMethod() *gomock.Call
AuthMethod indicates an expected call of AuthMethod
func (*MockClientMockRecorder) ClockSkew ¶ added in v0.13.0
func (mr *MockClientMockRecorder) ClockSkew() *gomock.Call
ClockSkew indicates an expected call of ClockSkew
func (*MockClientMockRecorder) DevMode ¶ added in v0.7.0
func (mr *MockClientMockRecorder) DevMode() *gomock.Call
DevMode indicates an expected call of DevMode
func (*MockClientMockRecorder) GetID ¶
func (mr *MockClientMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockClientMockRecorder) IDTokenLifetime ¶
func (mr *MockClientMockRecorder) IDTokenLifetime() *gomock.Call
IDTokenLifetime indicates an expected call of IDTokenLifetime
func (*MockClientMockRecorder) IDTokenUserinfoClaimsAssertion ¶ added in v0.13.0
func (mr *MockClientMockRecorder) IDTokenUserinfoClaimsAssertion() *gomock.Call
IDTokenUserinfoClaimsAssertion indicates an expected call of IDTokenUserinfoClaimsAssertion
func (*MockClientMockRecorder) IsScopeAllowed ¶ added in v0.12.4
func (mr *MockClientMockRecorder) IsScopeAllowed(arg0 interface{}) *gomock.Call
IsScopeAllowed indicates an expected call of IsScopeAllowed
func (*MockClientMockRecorder) LoginURL ¶
func (mr *MockClientMockRecorder) LoginURL(arg0 interface{}) *gomock.Call
LoginURL indicates an expected call of LoginURL
func (*MockClientMockRecorder) PostLogoutRedirectURIs ¶ added in v0.4.0
func (mr *MockClientMockRecorder) PostLogoutRedirectURIs() *gomock.Call
PostLogoutRedirectURIs indicates an expected call of PostLogoutRedirectURIs
func (*MockClientMockRecorder) RedirectURIs ¶
func (mr *MockClientMockRecorder) RedirectURIs() *gomock.Call
RedirectURIs indicates an expected call of RedirectURIs
func (*MockClientMockRecorder) ResponseTypes ¶ added in v0.7.0
func (mr *MockClientMockRecorder) ResponseTypes() *gomock.Call
ResponseTypes indicates an expected call of ResponseTypes
func (*MockClientMockRecorder) RestrictAdditionalAccessTokenScopes ¶ added in v0.12.4
func (mr *MockClientMockRecorder) RestrictAdditionalAccessTokenScopes() *gomock.Call
RestrictAdditionalAccessTokenScopes indicates an expected call of RestrictAdditionalAccessTokenScopes
func (*MockClientMockRecorder) RestrictAdditionalIdTokenScopes ¶ added in v0.12.4
func (mr *MockClientMockRecorder) RestrictAdditionalIdTokenScopes() *gomock.Call
RestrictAdditionalIdTokenScopes indicates an expected call of RestrictAdditionalIdTokenScopes
type MockConfiguration ¶
type MockConfiguration struct {
// contains filtered or unexported fields
}
MockConfiguration is a mock of Configuration interface
func NewMockConfiguration ¶
func NewMockConfiguration(ctrl *gomock.Controller) *MockConfiguration
NewMockConfiguration creates a new mock instance
func (*MockConfiguration) AuthMethodPostSupported ¶
func (m *MockConfiguration) AuthMethodPostSupported() bool
AuthMethodPostSupported mocks base method
func (*MockConfiguration) AuthorizationEndpoint ¶
func (m *MockConfiguration) AuthorizationEndpoint() op.Endpoint
AuthorizationEndpoint mocks base method
func (*MockConfiguration) CodeMethodS256Supported ¶ added in v0.7.1
func (m *MockConfiguration) CodeMethodS256Supported() bool
CodeMethodS256Supported mocks base method
func (*MockConfiguration) EXPECT ¶
func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfiguration) EndSessionEndpoint ¶ added in v0.4.0
func (m *MockConfiguration) EndSessionEndpoint() op.Endpoint
EndSessionEndpoint mocks base method
func (*MockConfiguration) GrantTypeJWTAuthorizationSupported ¶ added in v0.12.2
func (m *MockConfiguration) GrantTypeJWTAuthorizationSupported() bool
GrantTypeJWTAuthorizationSupported mocks base method
func (*MockConfiguration) GrantTypeTokenExchangeSupported ¶ added in v0.12.2
func (m *MockConfiguration) GrantTypeTokenExchangeSupported() bool
GrantTypeTokenExchangeSupported mocks base method
func (*MockConfiguration) Issuer ¶
func (m *MockConfiguration) Issuer() string
Issuer mocks base method
func (*MockConfiguration) KeysEndpoint ¶
func (m *MockConfiguration) KeysEndpoint() op.Endpoint
KeysEndpoint mocks base method
func (*MockConfiguration) TokenEndpoint ¶
func (m *MockConfiguration) TokenEndpoint() op.Endpoint
TokenEndpoint mocks base method
func (*MockConfiguration) UserinfoEndpoint ¶
func (m *MockConfiguration) UserinfoEndpoint() op.Endpoint
UserinfoEndpoint mocks base method
type MockConfigurationMockRecorder ¶
type MockConfigurationMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigurationMockRecorder is the mock recorder for MockConfiguration
func (*MockConfigurationMockRecorder) AuthMethodPostSupported ¶
func (mr *MockConfigurationMockRecorder) AuthMethodPostSupported() *gomock.Call
AuthMethodPostSupported indicates an expected call of AuthMethodPostSupported
func (*MockConfigurationMockRecorder) AuthorizationEndpoint ¶
func (mr *MockConfigurationMockRecorder) AuthorizationEndpoint() *gomock.Call
AuthorizationEndpoint indicates an expected call of AuthorizationEndpoint
func (*MockConfigurationMockRecorder) CodeMethodS256Supported ¶ added in v0.7.1
func (mr *MockConfigurationMockRecorder) CodeMethodS256Supported() *gomock.Call
CodeMethodS256Supported indicates an expected call of CodeMethodS256Supported
func (*MockConfigurationMockRecorder) EndSessionEndpoint ¶ added in v0.4.0
func (mr *MockConfigurationMockRecorder) EndSessionEndpoint() *gomock.Call
EndSessionEndpoint indicates an expected call of EndSessionEndpoint
func (*MockConfigurationMockRecorder) GrantTypeJWTAuthorizationSupported ¶ added in v0.12.2
func (mr *MockConfigurationMockRecorder) GrantTypeJWTAuthorizationSupported() *gomock.Call
GrantTypeJWTAuthorizationSupported indicates an expected call of GrantTypeJWTAuthorizationSupported
func (*MockConfigurationMockRecorder) GrantTypeTokenExchangeSupported ¶ added in v0.12.2
func (mr *MockConfigurationMockRecorder) GrantTypeTokenExchangeSupported() *gomock.Call
GrantTypeTokenExchangeSupported indicates an expected call of GrantTypeTokenExchangeSupported
func (*MockConfigurationMockRecorder) Issuer ¶
func (mr *MockConfigurationMockRecorder) Issuer() *gomock.Call
Issuer indicates an expected call of Issuer
func (*MockConfigurationMockRecorder) KeysEndpoint ¶
func (mr *MockConfigurationMockRecorder) KeysEndpoint() *gomock.Call
KeysEndpoint indicates an expected call of KeysEndpoint
func (*MockConfigurationMockRecorder) TokenEndpoint ¶
func (mr *MockConfigurationMockRecorder) TokenEndpoint() *gomock.Call
TokenEndpoint indicates an expected call of TokenEndpoint
func (*MockConfigurationMockRecorder) UserinfoEndpoint ¶
func (mr *MockConfigurationMockRecorder) UserinfoEndpoint() *gomock.Call
UserinfoEndpoint indicates an expected call of UserinfoEndpoint
type MockSigner ¶
type MockSigner struct {
// contains filtered or unexported fields
}
MockSigner is a mock of Signer interface
func NewMockSigner ¶
func NewMockSigner(ctrl *gomock.Controller) *MockSigner
NewMockSigner creates a new mock instance
func (*MockSigner) EXPECT ¶
func (m *MockSigner) EXPECT() *MockSignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSigner) Health ¶ added in v0.2.1
func (m *MockSigner) Health(arg0 context.Context) error
Health mocks base method
func (*MockSigner) SignatureAlgorithm ¶
func (m *MockSigner) SignatureAlgorithm() jose.SignatureAlgorithm
SignatureAlgorithm mocks base method
func (*MockSigner) Signer ¶ added in v0.12.0
func (m *MockSigner) Signer() jose.Signer
Signer mocks base method
type MockSignerMockRecorder ¶
type MockSignerMockRecorder struct {
// contains filtered or unexported fields
}
MockSignerMockRecorder is the mock recorder for MockSigner
func (*MockSignerMockRecorder) Health ¶ added in v0.2.1
func (mr *MockSignerMockRecorder) Health(arg0 interface{}) *gomock.Call
Health indicates an expected call of Health
func (*MockSignerMockRecorder) SignatureAlgorithm ¶
func (mr *MockSignerMockRecorder) SignatureAlgorithm() *gomock.Call
SignatureAlgorithm indicates an expected call of SignatureAlgorithm
func (*MockSignerMockRecorder) Signer ¶ added in v0.12.0
func (mr *MockSignerMockRecorder) Signer() *gomock.Call
Signer indicates an expected call of Signer
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (*MockStorage) AuthRequestByCode ¶ added in v0.6.2
func (m *MockStorage) AuthRequestByCode(arg0 context.Context, arg1 string) (op.AuthRequest, error)
AuthRequestByCode mocks base method
func (*MockStorage) AuthRequestByID ¶
func (m *MockStorage) AuthRequestByID(arg0 context.Context, arg1 string) (op.AuthRequest, error)
AuthRequestByID mocks base method
func (*MockStorage) AuthorizeClientIDSecret ¶
func (m *MockStorage) AuthorizeClientIDSecret(arg0 context.Context, arg1, arg2 string) error
AuthorizeClientIDSecret mocks base method
func (*MockStorage) CreateAuthRequest ¶
func (m *MockStorage) CreateAuthRequest(arg0 context.Context, arg1 *oidc.AuthRequest, arg2 string) (op.AuthRequest, error)
CreateAuthRequest mocks base method
func (*MockStorage) CreateToken ¶ added in v0.3.1
func (m *MockStorage) CreateToken(arg0 context.Context, arg1 op.TokenRequest) (string, time.Time, error)
CreateToken mocks base method
func (*MockStorage) DeleteAuthRequest ¶
func (m *MockStorage) DeleteAuthRequest(arg0 context.Context, arg1 string) error
DeleteAuthRequest mocks base method
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorage) GetClientByClientID ¶
GetClientByClientID mocks base method
func (*MockStorage) GetKeyByIDAndUserID ¶ added in v0.9.0
func (m *MockStorage) GetKeyByIDAndUserID(arg0 context.Context, arg1, arg2 string) (*jose.JSONWebKey, error)
GetKeyByIDAndUserID mocks base method
func (*MockStorage) GetKeySet ¶
func (m *MockStorage) GetKeySet(arg0 context.Context) (*jose.JSONWebKeySet, error)
GetKeySet mocks base method
func (*MockStorage) GetPrivateClaimsFromScopes ¶ added in v0.12.0
func (m *MockStorage) GetPrivateClaimsFromScopes(arg0 context.Context, arg1, arg2 string, arg3 []string) (map[string]interface{}, error)
GetPrivateClaimsFromScopes mocks base method
func (*MockStorage) GetSigningKey ¶
func (m *MockStorage) GetSigningKey(arg0 context.Context, arg1 chan<- jose.SigningKey, arg2 chan<- error, arg3 <-chan time.Time)
GetSigningKey mocks base method
func (*MockStorage) GetUserinfoFromScopes ¶
func (m *MockStorage) GetUserinfoFromScopes(arg0 context.Context, arg1, arg2 string, arg3 []string) (oidc.UserInfo, error)
GetUserinfoFromScopes mocks base method
func (*MockStorage) GetUserinfoFromToken ¶ added in v0.4.2
func (m *MockStorage) GetUserinfoFromToken(arg0 context.Context, arg1, arg2, arg3 string) (oidc.UserInfo, error)
GetUserinfoFromToken mocks base method
func (*MockStorage) Health ¶ added in v0.2.1
func (m *MockStorage) Health(arg0 context.Context) error
Health mocks base method
func (*MockStorage) SaveAuthCode ¶ added in v0.6.2
func (m *MockStorage) SaveAuthCode(arg0 context.Context, arg1, arg2 string) error
SaveAuthCode mocks base method
func (*MockStorage) SaveNewKeyPair ¶ added in v0.2.1
func (m *MockStorage) SaveNewKeyPair(arg0 context.Context) error
SaveNewKeyPair mocks base method
func (*MockStorage) TerminateSession ¶ added in v0.4.0
func (m *MockStorage) TerminateSession(arg0 context.Context, arg1, arg2 string) error
TerminateSession mocks base method
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage
func (*MockStorageMockRecorder) AuthRequestByCode ¶ added in v0.6.2
func (mr *MockStorageMockRecorder) AuthRequestByCode(arg0, arg1 interface{}) *gomock.Call
AuthRequestByCode indicates an expected call of AuthRequestByCode
func (*MockStorageMockRecorder) AuthRequestByID ¶
func (mr *MockStorageMockRecorder) AuthRequestByID(arg0, arg1 interface{}) *gomock.Call
AuthRequestByID indicates an expected call of AuthRequestByID
func (*MockStorageMockRecorder) AuthorizeClientIDSecret ¶
func (mr *MockStorageMockRecorder) AuthorizeClientIDSecret(arg0, arg1, arg2 interface{}) *gomock.Call
AuthorizeClientIDSecret indicates an expected call of AuthorizeClientIDSecret
func (*MockStorageMockRecorder) CreateAuthRequest ¶
func (mr *MockStorageMockRecorder) CreateAuthRequest(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAuthRequest indicates an expected call of CreateAuthRequest
func (*MockStorageMockRecorder) CreateToken ¶ added in v0.3.1
func (mr *MockStorageMockRecorder) CreateToken(arg0, arg1 interface{}) *gomock.Call
CreateToken indicates an expected call of CreateToken
func (*MockStorageMockRecorder) DeleteAuthRequest ¶
func (mr *MockStorageMockRecorder) DeleteAuthRequest(arg0, arg1 interface{}) *gomock.Call
DeleteAuthRequest indicates an expected call of DeleteAuthRequest
func (*MockStorageMockRecorder) GetClientByClientID ¶
func (mr *MockStorageMockRecorder) GetClientByClientID(arg0, arg1 interface{}) *gomock.Call
GetClientByClientID indicates an expected call of GetClientByClientID
func (*MockStorageMockRecorder) GetKeyByIDAndUserID ¶ added in v0.9.0
func (mr *MockStorageMockRecorder) GetKeyByIDAndUserID(arg0, arg1, arg2 interface{}) *gomock.Call
GetKeyByIDAndUserID indicates an expected call of GetKeyByIDAndUserID
func (*MockStorageMockRecorder) GetKeySet ¶
func (mr *MockStorageMockRecorder) GetKeySet(arg0 interface{}) *gomock.Call
GetKeySet indicates an expected call of GetKeySet
func (*MockStorageMockRecorder) GetPrivateClaimsFromScopes ¶ added in v0.12.0
func (mr *MockStorageMockRecorder) GetPrivateClaimsFromScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetPrivateClaimsFromScopes indicates an expected call of GetPrivateClaimsFromScopes
func (*MockStorageMockRecorder) GetSigningKey ¶
func (mr *MockStorageMockRecorder) GetSigningKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetSigningKey indicates an expected call of GetSigningKey
func (*MockStorageMockRecorder) GetUserinfoFromScopes ¶
func (mr *MockStorageMockRecorder) GetUserinfoFromScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetUserinfoFromScopes indicates an expected call of GetUserinfoFromScopes
func (*MockStorageMockRecorder) GetUserinfoFromToken ¶ added in v0.4.2
func (mr *MockStorageMockRecorder) GetUserinfoFromToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetUserinfoFromToken indicates an expected call of GetUserinfoFromToken
func (*MockStorageMockRecorder) Health ¶ added in v0.2.1
func (mr *MockStorageMockRecorder) Health(arg0 interface{}) *gomock.Call
Health indicates an expected call of Health
func (*MockStorageMockRecorder) SaveAuthCode ¶ added in v0.6.2
func (mr *MockStorageMockRecorder) SaveAuthCode(arg0, arg1, arg2 interface{}) *gomock.Call
SaveAuthCode indicates an expected call of SaveAuthCode
func (*MockStorageMockRecorder) SaveNewKeyPair ¶ added in v0.2.1
func (mr *MockStorageMockRecorder) SaveNewKeyPair(arg0 interface{}) *gomock.Call
SaveNewKeyPair indicates an expected call of SaveNewKeyPair
func (*MockStorageMockRecorder) TerminateSession ¶ added in v0.4.0
func (mr *MockStorageMockRecorder) TerminateSession(arg0, arg1, arg2 interface{}) *gomock.Call
TerminateSession indicates an expected call of TerminateSession
type Sig ¶
type Sig struct {
// contains filtered or unexported fields
}
func (*Sig) SignatureAlgorithm ¶
func (s *Sig) SignatureAlgorithm() jose.SignatureAlgorithm