func MustECDSAKey() *ecdsa.PrivateKey
func MustRSAKey() *rsa.PrivateKey
func ParseFormPostResponse(redirectURL string, resp io.ReadCloser) (authorizationCode, stateFromServer, iDToken string, token goauth.Token, customParameters url.Values, rFC6749Error map[string]string, err error)
MockAccessRequester is a mock of AccessRequester interface
type MockAccessRequester struct {
// contains filtered or unexported fields
}
func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester
NewMockAccessRequester creates a new mock instance
func (m *MockAccessRequester) AppendRequestedScope(arg0 string)
AppendRequestedScope mocks base method
func (m *MockAccessRequester) EXPECT() *MockAccessRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAccessRequester) GetClient() fosite.Client
GetClient mocks base method
func (m *MockAccessRequester) GetGrantTypes() fosite.Arguments
GetGrantTypes mocks base method
func (m *MockAccessRequester) GetGrantedAudience() fosite.Arguments
GetGrantedAudience mocks base method
func (m *MockAccessRequester) GetGrantedScopes() fosite.Arguments
GetGrantedScopes mocks base method
func (m *MockAccessRequester) GetID() string
GetID mocks base method
func (m *MockAccessRequester) GetRequestForm() url.Values
GetRequestForm mocks base method
func (m *MockAccessRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method
func (m *MockAccessRequester) GetRequestedAudience() fosite.Arguments
GetRequestedAudience mocks base method
func (m *MockAccessRequester) GetRequestedScopes() fosite.Arguments
GetRequestedScopes mocks base method
func (m *MockAccessRequester) GetSession() fosite.Session
GetSession mocks base method
func (m *MockAccessRequester) GrantAudience(arg0 string)
GrantAudience mocks base method
func (m *MockAccessRequester) GrantScope(arg0 string)
GrantScope mocks base method
func (m *MockAccessRequester) Merge(arg0 fosite.Requester)
Merge mocks base method
func (m *MockAccessRequester) Sanitize(arg0 []string) fosite.Requester
Sanitize mocks base method
func (m *MockAccessRequester) SetID(arg0 string)
SetID mocks base method
func (m *MockAccessRequester) SetRequestedAudience(arg0 fosite.Arguments)
SetRequestedAudience mocks base method
func (m *MockAccessRequester) SetRequestedScopes(arg0 fosite.Arguments)
SetRequestedScopes mocks base method
func (m *MockAccessRequester) SetSession(arg0 fosite.Session)
SetSession mocks base method
MockAccessRequesterMockRecorder is the mock recorder for MockAccessRequester
type MockAccessRequesterMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope
func (mr *MockAccessRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient
func (mr *MockAccessRequesterMockRecorder) GetGrantTypes() *gomock.Call
GetGrantTypes indicates an expected call of GetGrantTypes
func (mr *MockAccessRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience
func (mr *MockAccessRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes
func (mr *MockAccessRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (mr *MockAccessRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm
func (mr *MockAccessRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt
func (mr *MockAccessRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience
func (mr *MockAccessRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes
func (mr *MockAccessRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession
func (mr *MockAccessRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call
GrantAudience indicates an expected call of GrantAudience
func (mr *MockAccessRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call
GrantScope indicates an expected call of GrantScope
func (mr *MockAccessRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call
Merge indicates an expected call of Merge
func (mr *MockAccessRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call
Sanitize indicates an expected call of Sanitize
func (mr *MockAccessRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call
SetID indicates an expected call of SetID
func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience
func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes
func (mr *MockAccessRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call
SetSession indicates an expected call of SetSession
MockAccessResponder is a mock of AccessResponder interface
type MockAccessResponder struct {
// contains filtered or unexported fields
}
func NewMockAccessResponder(ctrl *gomock.Controller) *MockAccessResponder
NewMockAccessResponder creates a new mock instance
func (m *MockAccessResponder) EXPECT() *MockAccessResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAccessResponder) GetAccessToken() string
GetAccessToken mocks base method
func (m *MockAccessResponder) GetExtra(arg0 string) interface{}
GetExtra mocks base method
func (m *MockAccessResponder) GetTokenType() string
GetTokenType mocks base method
func (m *MockAccessResponder) SetAccessToken(arg0 string)
SetAccessToken mocks base method
func (m *MockAccessResponder) SetExpiresIn(arg0 time.Duration)
SetExpiresIn mocks base method
func (m *MockAccessResponder) SetExtra(arg0 string, arg1 interface{})
SetExtra mocks base method
func (m *MockAccessResponder) SetScopes(arg0 fosite.Arguments)
SetScopes mocks base method
func (m *MockAccessResponder) SetTokenType(arg0 string)
SetTokenType mocks base method
func (m *MockAccessResponder) ToMap() map[string]interface{}
ToMap mocks base method
MockAccessResponderMockRecorder is the mock recorder for MockAccessResponder
type MockAccessResponderMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAccessResponderMockRecorder) GetAccessToken() *gomock.Call
GetAccessToken indicates an expected call of GetAccessToken
func (mr *MockAccessResponderMockRecorder) GetExtra(arg0 interface{}) *gomock.Call
GetExtra indicates an expected call of GetExtra
func (mr *MockAccessResponderMockRecorder) GetTokenType() *gomock.Call
GetTokenType indicates an expected call of GetTokenType
func (mr *MockAccessResponderMockRecorder) SetAccessToken(arg0 interface{}) *gomock.Call
SetAccessToken indicates an expected call of SetAccessToken
func (mr *MockAccessResponderMockRecorder) SetExpiresIn(arg0 interface{}) *gomock.Call
SetExpiresIn indicates an expected call of SetExpiresIn
func (mr *MockAccessResponderMockRecorder) SetExtra(arg0, arg1 interface{}) *gomock.Call
SetExtra indicates an expected call of SetExtra
func (mr *MockAccessResponderMockRecorder) SetScopes(arg0 interface{}) *gomock.Call
SetScopes indicates an expected call of SetScopes
func (mr *MockAccessResponderMockRecorder) SetTokenType(arg0 interface{}) *gomock.Call
SetTokenType indicates an expected call of SetTokenType
func (mr *MockAccessResponderMockRecorder) ToMap() *gomock.Call
ToMap indicates an expected call of ToMap
MockAccessTokenStorage is a mock of AccessTokenStorage interface
type MockAccessTokenStorage struct {
// contains filtered or unexported fields
}
func NewMockAccessTokenStorage(ctrl *gomock.Controller) *MockAccessTokenStorage
NewMockAccessTokenStorage creates a new mock instance
func (m *MockAccessTokenStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAccessTokenSession mocks base method
func (m *MockAccessTokenStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method
func (m *MockAccessTokenStorage) EXPECT() *MockAccessTokenStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAccessTokenStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAccessTokenSession mocks base method
MockAccessTokenStorageMockRecorder is the mock recorder for MockAccessTokenStorage
type MockAccessTokenStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAccessTokenStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
func (mr *MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
func (mr *MockAccessTokenStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession
MockAccessTokenStrategy is a mock of AccessTokenStrategy interface
type MockAccessTokenStrategy struct {
// contains filtered or unexported fields
}
func NewMockAccessTokenStrategy(ctrl *gomock.Controller) *MockAccessTokenStrategy
NewMockAccessTokenStrategy creates a new mock instance
func (m *MockAccessTokenStrategy) AccessTokenSignature(arg0 string) string
AccessTokenSignature mocks base method
func (m *MockAccessTokenStrategy) EXPECT() *MockAccessTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAccessTokenStrategy) GenerateAccessToken(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateAccessToken mocks base method
func (m *MockAccessTokenStrategy) ValidateAccessToken(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateAccessToken mocks base method
MockAccessTokenStrategyMockRecorder is the mock recorder for MockAccessTokenStrategy
type MockAccessTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(arg0 interface{}) *gomock.Call
AccessTokenSignature indicates an expected call of AccessTokenSignature
func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(arg0, arg1 interface{}) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken
func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateAccessToken indicates an expected call of ValidateAccessToken
Mock of AuthorizeCodeGrantStorage interface
type MockAuthorizeCodeGrantStorage struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeCodeGrantStorage(ctrl *gomock.Controller) *MockAuthorizeCodeGrantStorage
func (_m *MockAuthorizeCodeGrantStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
func (_m *MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error
func (_m *MockAuthorizeCodeGrantStorage) EXPECT() *_MockAuthorizeCodeGrantStorageRecorder
func (_m *MockAuthorizeCodeGrantStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)
func (_m *MockAuthorizeCodeGrantStorage) PersistAuthorizeCodeGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error
MockAuthorizeCodeStorage is a mock of AuthorizeCodeStorage interface
type MockAuthorizeCodeStorage struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeCodeStorage(ctrl *gomock.Controller) *MockAuthorizeCodeStorage
NewMockAuthorizeCodeStorage creates a new mock instance
func (m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAuthorizeCodeSession mocks base method
func (m *MockAuthorizeCodeStorage) EXPECT() *MockAuthorizeCodeStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAuthorizeCodeSession mocks base method
func (m *MockAuthorizeCodeStorage) InvalidateAuthorizeCodeSession(arg0 context.Context, arg1 string) error
InvalidateAuthorizeCodeSession mocks base method
MockAuthorizeCodeStorageMockRecorder is the mock recorder for MockAuthorizeCodeStorage
type MockAuthorizeCodeStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession
func (mr *MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession
func (mr *MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 interface{}) *gomock.Call
InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession
MockAuthorizeCodeStrategy is a mock of AuthorizeCodeStrategy interface
type MockAuthorizeCodeStrategy struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeCodeStrategy(ctrl *gomock.Controller) *MockAuthorizeCodeStrategy
NewMockAuthorizeCodeStrategy creates a new mock instance
func (m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(arg0 string) string
AuthorizeCodeSignature mocks base method
func (m *MockAuthorizeCodeStrategy) EXPECT() *MockAuthorizeCodeStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateAuthorizeCode mocks base method
func (m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateAuthorizeCode mocks base method
MockAuthorizeCodeStrategyMockRecorder is the mock recorder for MockAuthorizeCodeStrategy
type MockAuthorizeCodeStrategyMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(arg0 interface{}) *gomock.Call
AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature
func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call
GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode
func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode
MockAuthorizeEndpointHandler is a mock of AuthorizeEndpointHandler interface
type MockAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockAuthorizeEndpointHandler
NewMockAuthorizeEndpointHandler creates a new mock instance
func (m *MockAuthorizeEndpointHandler) EXPECT() *MockAuthorizeEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest(arg0 context.Context, arg1 fosite.AuthorizeRequester, arg2 fosite.AuthorizeResponder) error
HandleAuthorizeEndpointRequest mocks base method
MockAuthorizeEndpointHandlerMockRecorder is the mock recorder for MockAuthorizeEndpointHandler
type MockAuthorizeEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAuthorizeEndpointHandlerMockRecorder) HandleAuthorizeEndpointRequest(arg0, arg1, arg2 interface{}) *gomock.Call
HandleAuthorizeEndpointRequest indicates an expected call of HandleAuthorizeEndpointRequest
MockAuthorizeRequester is a mock of AuthorizeRequester interface
type MockAuthorizeRequester struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeRequester(ctrl *gomock.Controller) *MockAuthorizeRequester
NewMockAuthorizeRequester creates a new mock instance
func (m *MockAuthorizeRequester) AppendRequestedScope(arg0 string)
AppendRequestedScope mocks base method
func (m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool
DidHandleAllResponseTypes mocks base method
func (m *MockAuthorizeRequester) EXPECT() *MockAuthorizeRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAuthorizeRequester) GetClient() fosite.Client
GetClient mocks base method
func (m *MockAuthorizeRequester) GetDefaultResponseMode() fosite.ResponseModeType
GetDefaultResponseMode mocks base method
func (m *MockAuthorizeRequester) GetGrantedAudience() fosite.Arguments
GetGrantedAudience mocks base method
func (m *MockAuthorizeRequester) GetGrantedScopes() fosite.Arguments
GetGrantedScopes mocks base method
func (m *MockAuthorizeRequester) GetID() string
GetID mocks base method
func (m *MockAuthorizeRequester) GetRedirectURI() *url.URL
GetRedirectURI mocks base method
func (m *MockAuthorizeRequester) GetRequestForm() url.Values
GetRequestForm mocks base method
func (m *MockAuthorizeRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method
func (m *MockAuthorizeRequester) GetRequestedAudience() fosite.Arguments
GetRequestedAudience mocks base method
func (m *MockAuthorizeRequester) GetRequestedScopes() fosite.Arguments
GetRequestedScopes mocks base method
func (m *MockAuthorizeRequester) GetResponseMode() fosite.ResponseModeType
GetResponseMode mocks base method
func (m *MockAuthorizeRequester) GetResponseTypes() fosite.Arguments
GetResponseTypes mocks base method
func (m *MockAuthorizeRequester) GetSession() fosite.Session
GetSession mocks base method
func (m *MockAuthorizeRequester) GetState() string
GetState mocks base method
func (m *MockAuthorizeRequester) GrantAudience(arg0 string)
GrantAudience mocks base method
func (m *MockAuthorizeRequester) GrantScope(arg0 string)
GrantScope mocks base method
func (m *MockAuthorizeRequester) IsRedirectURIValid() bool
IsRedirectURIValid mocks base method
func (m *MockAuthorizeRequester) Merge(arg0 fosite.Requester)
Merge mocks base method
func (m *MockAuthorizeRequester) Sanitize(arg0 []string) fosite.Requester
Sanitize mocks base method
func (m *MockAuthorizeRequester) SetDefaultResponseMode(arg0 fosite.ResponseModeType)
SetDefaultResponseMode mocks base method
func (m *MockAuthorizeRequester) SetID(arg0 string)
SetID mocks base method
func (m *MockAuthorizeRequester) SetRequestedAudience(arg0 fosite.Arguments)
SetRequestedAudience mocks base method
func (m *MockAuthorizeRequester) SetRequestedScopes(arg0 fosite.Arguments)
SetRequestedScopes mocks base method
func (m *MockAuthorizeRequester) SetResponseTypeHandled(arg0 string)
SetResponseTypeHandled mocks base method
func (m *MockAuthorizeRequester) SetSession(arg0 fosite.Session)
SetSession mocks base method
MockAuthorizeRequesterMockRecorder is the mock recorder for MockAuthorizeRequester
type MockAuthorizeRequesterMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAuthorizeRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope
func (mr *MockAuthorizeRequesterMockRecorder) DidHandleAllResponseTypes() *gomock.Call
DidHandleAllResponseTypes indicates an expected call of DidHandleAllResponseTypes
func (mr *MockAuthorizeRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient
func (mr *MockAuthorizeRequesterMockRecorder) GetDefaultResponseMode() *gomock.Call
GetDefaultResponseMode indicates an expected call of GetDefaultResponseMode
func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience
func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes
func (mr *MockAuthorizeRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (mr *MockAuthorizeRequesterMockRecorder) GetRedirectURI() *gomock.Call
GetRedirectURI indicates an expected call of GetRedirectURI
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes
func (mr *MockAuthorizeRequesterMockRecorder) GetResponseMode() *gomock.Call
GetResponseMode indicates an expected call of GetResponseMode
func (mr *MockAuthorizeRequesterMockRecorder) GetResponseTypes() *gomock.Call
GetResponseTypes indicates an expected call of GetResponseTypes
func (mr *MockAuthorizeRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession
func (mr *MockAuthorizeRequesterMockRecorder) GetState() *gomock.Call
GetState indicates an expected call of GetState
func (mr *MockAuthorizeRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call
GrantAudience indicates an expected call of GrantAudience
func (mr *MockAuthorizeRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call
GrantScope indicates an expected call of GrantScope
func (mr *MockAuthorizeRequesterMockRecorder) IsRedirectURIValid() *gomock.Call
IsRedirectURIValid indicates an expected call of IsRedirectURIValid
func (mr *MockAuthorizeRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call
Merge indicates an expected call of Merge
func (mr *MockAuthorizeRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call
Sanitize indicates an expected call of Sanitize
func (mr *MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode(arg0 interface{}) *gomock.Call
SetDefaultResponseMode indicates an expected call of SetDefaultResponseMode
func (mr *MockAuthorizeRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call
SetID indicates an expected call of SetID
func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience
func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes
func (mr *MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled(arg0 interface{}) *gomock.Call
SetResponseTypeHandled indicates an expected call of SetResponseTypeHandled
func (mr *MockAuthorizeRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call
SetSession indicates an expected call of SetSession
MockAuthorizeResponder is a mock of AuthorizeResponder interface
type MockAuthorizeResponder struct {
// contains filtered or unexported fields
}
func NewMockAuthorizeResponder(ctrl *gomock.Controller) *MockAuthorizeResponder
NewMockAuthorizeResponder creates a new mock instance
func (m *MockAuthorizeResponder) AddHeader(arg0, arg1 string)
AddHeader mocks base method
func (m *MockAuthorizeResponder) AddParameter(arg0, arg1 string)
AddParameter mocks base method
func (m *MockAuthorizeResponder) EXPECT() *MockAuthorizeResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAuthorizeResponder) GetCode() string
GetCode mocks base method
func (m *MockAuthorizeResponder) GetHeader() http.Header
GetHeader mocks base method
func (m *MockAuthorizeResponder) GetParameters() url.Values
GetParameters mocks base method
MockAuthorizeResponderMockRecorder is the mock recorder for MockAuthorizeResponder
type MockAuthorizeResponderMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockAuthorizeResponderMockRecorder) AddHeader(arg0, arg1 interface{}) *gomock.Call
AddHeader indicates an expected call of AddHeader
func (mr *MockAuthorizeResponderMockRecorder) AddParameter(arg0, arg1 interface{}) *gomock.Call
AddParameter indicates an expected call of AddParameter
func (mr *MockAuthorizeResponderMockRecorder) GetCode() *gomock.Call
GetCode indicates an expected call of GetCode
func (mr *MockAuthorizeResponderMockRecorder) GetHeader() *gomock.Call
GetHeader indicates an expected call of GetHeader
func (mr *MockAuthorizeResponderMockRecorder) GetParameters() *gomock.Call
GetParameters indicates an expected call of GetParameters
MockClient is a mock of Client interface
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockClient) GetAudience() fosite.Arguments
GetAudience mocks base method
func (m *MockClient) GetGrantTypes() fosite.Arguments
GetGrantTypes mocks base method
func (m *MockClient) GetHashedSecret() []byte
GetHashedSecret mocks base method
func (m *MockClient) GetID() string
GetID mocks base method
func (m *MockClient) GetRedirectURIs() []string
GetRedirectURIs mocks base method
func (m *MockClient) GetResponseTypes() fosite.Arguments
GetResponseTypes mocks base method
func (m *MockClient) GetRotatedHashes() [][]byte
GetHashedSecret mocks base method
func (m *MockClient) GetScopes() fosite.Arguments
GetScopes mocks base method
func (m *MockClient) IsPublic() bool
IsPublic mocks base method
MockClientCredentialsGrantStorage is a mock of ClientCredentialsGrantStorage interface
type MockClientCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage
NewMockClientCredentialsGrantStorage creates a new mock instance
func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAccessTokenSession mocks base method
func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method
func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockClientCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAccessTokenSession mocks base method
MockClientCredentialsGrantStorageMockRecorder is the mock recorder for MockClientCredentialsGrantStorage
type MockClientCredentialsGrantStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession
MockClientMockRecorder is the mock recorder for MockClient
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockClientMockRecorder) GetAudience() *gomock.Call
GetAudience indicates an expected call of GetAudience
func (mr *MockClientMockRecorder) GetGrantTypes() *gomock.Call
GetGrantTypes indicates an expected call of GetGrantTypes
func (mr *MockClientMockRecorder) GetHashedSecret() *gomock.Call
GetHashedSecret indicates an expected call of GetHashedSecret
func (mr *MockClientMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (mr *MockClientMockRecorder) GetRedirectURIs() *gomock.Call
GetRedirectURIs indicates an expected call of GetRedirectURIs
func (mr *MockClientMockRecorder) GetResponseTypes() *gomock.Call
GetResponseTypes indicates an expected call of GetResponseTypes
func (mr *MockClientMockRecorder) GetRotatedHashes() *gomock.Call
GetHashedSecret indicates an expected call of GetHashedSecret
func (mr *MockClientMockRecorder) GetScopes() *gomock.Call
GetScopes indicates an expected call of GetScopes
func (mr *MockClientMockRecorder) IsPublic() *gomock.Call
IsPublic indicates an expected call of IsPublic
MockCoreStorage is a mock of CoreStorage interface
type MockCoreStorage struct {
// contains filtered or unexported fields
}
func NewMockCoreStorage(ctrl *gomock.Controller) *MockCoreStorage
NewMockCoreStorage creates a new mock instance
func (m *MockCoreStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAccessTokenSession mocks base method
func (m *MockCoreStorage) CreateAuthorizeCodeSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAuthorizeCodeSession mocks base method
func (m *MockCoreStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateRefreshTokenSession mocks base method
func (m *MockCoreStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method
func (m *MockCoreStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error
DeleteRefreshTokenSession mocks base method
func (m *MockCoreStorage) EXPECT() *MockCoreStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCoreStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAccessTokenSession mocks base method
func (m *MockCoreStorage) GetAuthorizeCodeSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAuthorizeCodeSession mocks base method
func (m *MockCoreStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetRefreshTokenSession mocks base method
func (m *MockCoreStorage) InvalidateAuthorizeCodeSession(arg0 context.Context, arg1 string) error
InvalidateAuthorizeCodeSession mocks base method
MockCoreStorageMockRecorder is the mock recorder for MockCoreStorage
type MockCoreStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockCoreStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
func (mr *MockCoreStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession
func (mr *MockCoreStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession
func (mr *MockCoreStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
func (mr *MockCoreStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession
func (mr *MockCoreStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession
func (mr *MockCoreStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession
func (mr *MockCoreStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession
func (mr *MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 interface{}) *gomock.Call
InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession
MockCoreStrategy is a mock of CoreStrategy interface
type MockCoreStrategy struct {
// contains filtered or unexported fields
}
func NewMockCoreStrategy(ctrl *gomock.Controller) *MockCoreStrategy
NewMockCoreStrategy creates a new mock instance
func (m *MockCoreStrategy) AccessTokenSignature(arg0 string) string
AccessTokenSignature mocks base method
func (m *MockCoreStrategy) AuthorizeCodeSignature(arg0 string) string
AuthorizeCodeSignature mocks base method
func (m *MockCoreStrategy) EXPECT() *MockCoreStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCoreStrategy) GenerateAccessToken(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateAccessToken mocks base method
func (m *MockCoreStrategy) GenerateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateAuthorizeCode mocks base method
func (m *MockCoreStrategy) GenerateRefreshToken(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateRefreshToken mocks base method
func (m *MockCoreStrategy) RefreshTokenSignature(arg0 string) string
RefreshTokenSignature mocks base method
func (m *MockCoreStrategy) ValidateAccessToken(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateAccessToken mocks base method
func (m *MockCoreStrategy) ValidateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateAuthorizeCode mocks base method
func (m *MockCoreStrategy) ValidateRefreshToken(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateRefreshToken mocks base method
MockCoreStrategyMockRecorder is the mock recorder for MockCoreStrategy
type MockCoreStrategyMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockCoreStrategyMockRecorder) AccessTokenSignature(arg0 interface{}) *gomock.Call
AccessTokenSignature indicates an expected call of AccessTokenSignature
func (mr *MockCoreStrategyMockRecorder) AuthorizeCodeSignature(arg0 interface{}) *gomock.Call
AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature
func (mr *MockCoreStrategyMockRecorder) GenerateAccessToken(arg0, arg1 interface{}) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken
func (mr *MockCoreStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call
GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode
func (mr *MockCoreStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken
func (mr *MockCoreStrategyMockRecorder) RefreshTokenSignature(arg0 interface{}) *gomock.Call
RefreshTokenSignature indicates an expected call of RefreshTokenSignature
func (mr *MockCoreStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateAccessToken indicates an expected call of ValidateAccessToken
func (mr *MockCoreStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode
func (mr *MockCoreStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateRefreshToken indicates an expected call of ValidateRefreshToken
MockHasher is a mock of Hasher interface
type MockHasher struct {
// contains filtered or unexported fields
}
func NewMockHasher(ctrl *gomock.Controller) *MockHasher
NewMockHasher creates a new mock instance
func (m *MockHasher) Compare(arg0 context.Context, arg1, arg2 []byte) error
Compare mocks base method
func (m *MockHasher) EXPECT() *MockHasherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHasher) Hash(arg0 context.Context, arg1 []byte) ([]byte, error)
Hash mocks base method
MockHasherMockRecorder is the mock recorder for MockHasher
type MockHasherMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockHasherMockRecorder) Compare(arg0, arg1, arg2 interface{}) *gomock.Call
Compare indicates an expected call of Compare
func (mr *MockHasherMockRecorder) Hash(arg0, arg1 interface{}) *gomock.Call
Hash indicates an expected call of Hash
MockOpenIDConnectRequestStorage is a mock of OpenIDConnectRequestStorage interface
type MockOpenIDConnectRequestStorage struct {
// contains filtered or unexported fields
}
func NewMockOpenIDConnectRequestStorage(ctrl *gomock.Controller) *MockOpenIDConnectRequestStorage
NewMockOpenIDConnectRequestStorage creates a new mock instance
func (m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateOpenIDConnectSession mocks base method
func (m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(arg0 context.Context, arg1 string) error
DeleteOpenIDConnectSession mocks base method
func (m *MockOpenIDConnectRequestStorage) EXPECT() *MockOpenIDConnectRequestStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) (fosite.Requester, error)
GetOpenIDConnectSession mocks base method
MockOpenIDConnectRequestStorageMockRecorder is the mock recorder for MockOpenIDConnectRequestStorage
type MockOpenIDConnectRequestStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateOpenIDConnectSession indicates an expected call of CreateOpenIDConnectSession
func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(arg0, arg1 interface{}) *gomock.Call
DeleteOpenIDConnectSession indicates an expected call of DeleteOpenIDConnectSession
func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetOpenIDConnectSession indicates an expected call of GetOpenIDConnectSession
MockOpenIDConnectTokenStrategy is a mock of OpenIDConnectTokenStrategy interface
type MockOpenIDConnectTokenStrategy struct {
// contains filtered or unexported fields
}
func NewMockOpenIDConnectTokenStrategy(ctrl *gomock.Controller) *MockOpenIDConnectTokenStrategy
NewMockOpenIDConnectTokenStrategy creates a new mock instance
func (m *MockOpenIDConnectTokenStrategy) EXPECT() *MockOpenIDConnectTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockOpenIDConnectTokenStrategy) GenerateIDToken(arg0 context.Context, arg1 fosite.Requester) (string, error)
GenerateIDToken mocks base method
MockOpenIDConnectTokenStrategyMockRecorder is the mock recorder for MockOpenIDConnectTokenStrategy
type MockOpenIDConnectTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockOpenIDConnectTokenStrategyMockRecorder) GenerateIDToken(arg0, arg1 interface{}) *gomock.Call
GenerateIDToken indicates an expected call of GenerateIDToken
MockPKCERequestStorage is a mock of PKCERequestStorage interface
type MockPKCERequestStorage struct {
// contains filtered or unexported fields
}
func NewMockPKCERequestStorage(ctrl *gomock.Controller) *MockPKCERequestStorage
NewMockPKCERequestStorage creates a new mock instance
func (m *MockPKCERequestStorage) CreatePKCERequestSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreatePKCERequestSession mocks base method
func (m *MockPKCERequestStorage) DeletePKCERequestSession(arg0 context.Context, arg1 string) error
DeletePKCERequestSession mocks base method
func (m *MockPKCERequestStorage) EXPECT() *MockPKCERequestStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPKCERequestStorage) GetPKCERequestSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetPKCERequestSession mocks base method
MockPKCERequestStorageMockRecorder is the mock recorder for MockPKCERequestStorage
type MockPKCERequestStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreatePKCERequestSession indicates an expected call of CreatePKCERequestSession
func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(arg0, arg1 interface{}) *gomock.Call
DeletePKCERequestSession indicates an expected call of DeletePKCERequestSession
func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetPKCERequestSession indicates an expected call of GetPKCERequestSession
MockRFC7523KeyStorage is a mock of RFC7523KeyStorage interface
type MockRFC7523KeyStorage struct {
// contains filtered or unexported fields
}
func NewMockRFC7523KeyStorage(ctrl *gomock.Controller) *MockRFC7523KeyStorage
NewMockRFC7523KeyStorage creates a new mock instance
func (m *MockRFC7523KeyStorage) EXPECT() *MockRFC7523KeyStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRFC7523KeyStorage) GetPublicKey(arg0 context.Context, arg1, arg2, arg3 string) (*go_jose_v2.JSONWebKey, error)
GetPublicKey mocks base method
func (m *MockRFC7523KeyStorage) GetPublicKeyScopes(arg0 context.Context, arg1, arg2, arg3 string) ([]string, error)
GetPublicKeyScopes mocks base method
func (m *MockRFC7523KeyStorage) GetPublicKeys(arg0 context.Context, arg1, arg2 string) (*go_jose_v2.JSONWebKeySet, error)
GetPublicKeys mocks base method
func (m *MockRFC7523KeyStorage) IsJWTUsed(arg0 context.Context, arg1 string) (bool, error)
IsJWTUsed mocks base method
func (m *MockRFC7523KeyStorage) MarkJWTUsedForTime(arg0 context.Context, arg1 string, arg2 time.Time) error
MarkJWTUsedForTime mocks base method
MockRFC7523KeyStorageMockRecorder is the mock recorder for MockRFC7523KeyStorage
type MockRFC7523KeyStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetPublicKey indicates an expected call of GetPublicKey
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetPublicKeyScopes indicates an expected call of GetPublicKeyScopes
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeys(arg0, arg1, arg2 interface{}) *gomock.Call
GetPublicKeys indicates an expected call of GetPublicKeys
func (mr *MockRFC7523KeyStorageMockRecorder) IsJWTUsed(arg0, arg1 interface{}) *gomock.Call
IsJWTUsed indicates an expected call of IsJWTUsed
func (mr *MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime(arg0, arg1, arg2 interface{}) *gomock.Call
MarkJWTUsedForTime indicates an expected call of MarkJWTUsedForTime
Mock of RefreshTokenGrantStorage interface
type MockRefreshTokenGrantStorage struct {
// contains filtered or unexported fields
}
func NewMockRefreshTokenGrantStorage(ctrl *gomock.Controller) *MockRefreshTokenGrantStorage
func (_m *MockRefreshTokenGrantStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
func (_m *MockRefreshTokenGrantStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error
func (_m *MockRefreshTokenGrantStorage) EXPECT() *_MockRefreshTokenGrantStorageRecorder
func (_m *MockRefreshTokenGrantStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error)
func (_m *MockRefreshTokenGrantStorage) PersistRefreshTokenGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error
MockRefreshTokenStrategy is a mock of RefreshTokenStrategy interface
type MockRefreshTokenStrategy struct {
// contains filtered or unexported fields
}
func NewMockRefreshTokenStrategy(ctrl *gomock.Controller) *MockRefreshTokenStrategy
NewMockRefreshTokenStrategy creates a new mock instance
func (m *MockRefreshTokenStrategy) EXPECT() *MockRefreshTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRefreshTokenStrategy) GenerateRefreshToken(arg0 context.Context, arg1 fosite.Requester) (string, string, error)
GenerateRefreshToken mocks base method
func (m *MockRefreshTokenStrategy) RefreshTokenSignature(arg0 string) string
RefreshTokenSignature mocks base method
func (m *MockRefreshTokenStrategy) ValidateRefreshToken(arg0 context.Context, arg1 fosite.Requester, arg2 string) error
ValidateRefreshToken mocks base method
MockRefreshTokenStrategyMockRecorder is the mock recorder for MockRefreshTokenStrategy
type MockRefreshTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken
func (mr *MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature(arg0 interface{}) *gomock.Call
RefreshTokenSignature indicates an expected call of RefreshTokenSignature
func (mr *MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateRefreshToken indicates an expected call of ValidateRefreshToken
MockRequester is a mock of Requester interface
type MockRequester struct {
// contains filtered or unexported fields
}
func NewMockRequester(ctrl *gomock.Controller) *MockRequester
NewMockRequester creates a new mock instance
func (m *MockRequester) AppendRequestedScope(arg0 string)
AppendRequestedScope mocks base method
func (m *MockRequester) EXPECT() *MockRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRequester) GetClient() fosite.Client
GetClient mocks base method
func (m *MockRequester) GetGrantedAudience() fosite.Arguments
GetGrantedAudience mocks base method
func (m *MockRequester) GetGrantedScopes() fosite.Arguments
GetGrantedScopes mocks base method
func (m *MockRequester) GetID() string
GetID mocks base method
func (m *MockRequester) GetRequestForm() url.Values
GetRequestForm mocks base method
func (m *MockRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method
func (m *MockRequester) GetRequestedAudience() fosite.Arguments
GetRequestedAudience mocks base method
func (m *MockRequester) GetRequestedScopes() fosite.Arguments
GetRequestedScopes mocks base method
func (m *MockRequester) GetSession() fosite.Session
GetSession mocks base method
func (m *MockRequester) GrantAudience(arg0 string)
GrantAudience mocks base method
func (m *MockRequester) GrantScope(arg0 string)
GrantScope mocks base method
func (m *MockRequester) Merge(arg0 fosite.Requester)
Merge mocks base method
func (m *MockRequester) Sanitize(arg0 []string) fosite.Requester
Sanitize mocks base method
func (m *MockRequester) SetID(arg0 string)
SetID mocks base method
func (m *MockRequester) SetRequestedAudience(arg0 fosite.Arguments)
SetRequestedAudience mocks base method
func (m *MockRequester) SetRequestedScopes(arg0 fosite.Arguments)
SetRequestedScopes mocks base method
func (m *MockRequester) SetSession(arg0 fosite.Session)
SetSession mocks base method
MockRequesterMockRecorder is the mock recorder for MockRequester
type MockRequesterMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope
func (mr *MockRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient
func (mr *MockRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience
func (mr *MockRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes
func (mr *MockRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (mr *MockRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm
func (mr *MockRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt
func (mr *MockRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience
func (mr *MockRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes
func (mr *MockRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession
func (mr *MockRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call
GrantAudience indicates an expected call of GrantAudience
func (mr *MockRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call
GrantScope indicates an expected call of GrantScope
func (mr *MockRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call
Merge indicates an expected call of Merge
func (mr *MockRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call
Sanitize indicates an expected call of Sanitize
func (mr *MockRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call
SetID indicates an expected call of SetID
func (mr *MockRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience
func (mr *MockRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes
func (mr *MockRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call
SetSession indicates an expected call of SetSession
MockResourceOwnerPasswordCredentialsGrantStorage is a mock of ResourceOwnerPasswordCredentialsGrantStorage interface
type MockResourceOwnerPasswordCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
func NewMockResourceOwnerPasswordCredentialsGrantStorage(ctrl *gomock.Controller) *MockResourceOwnerPasswordCredentialsGrantStorage
NewMockResourceOwnerPasswordCredentialsGrantStorage creates a new mock instance
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(arg0 context.Context, arg1, arg2 string) error
Authenticate mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAccessTokenSession mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateRefreshTokenSession mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error
DeleteRefreshTokenSession mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAccessTokenSession mocks base method
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetRefreshTokenSession mocks base method
MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder is the mock recorder for MockResourceOwnerPasswordCredentialsGrantStorage
type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(arg0, arg1, arg2 interface{}) *gomock.Call
Authenticate indicates an expected call of Authenticate
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession
Mock of ResponseWriter interface
type MockResponseWriter struct {
// contains filtered or unexported fields
}
func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter
func (_m *MockResponseWriter) EXPECT() *_MockResponseWriterRecorder
func (_m *MockResponseWriter) Header() http.Header
func (_m *MockResponseWriter) Write(_param0 []byte) (int, error)
func (_m *MockResponseWriter) WriteHeader(_param0 int)
MockRevocationHandler is a mock of RevocationHandler interface
type MockRevocationHandler struct {
// contains filtered or unexported fields
}
func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler
NewMockRevocationHandler creates a new mock instance
func (m *MockRevocationHandler) EXPECT() *MockRevocationHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRevocationHandler) RevokeToken(arg0 context.Context, arg1 string, arg2 fosite.TokenType, arg3 fosite.Client) error
RevokeToken mocks base method
MockRevocationHandlerMockRecorder is the mock recorder for MockRevocationHandler
type MockRevocationHandlerMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockRevocationHandlerMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RevokeToken indicates an expected call of RevokeToken
MockStorage is a mock of Storage interface
type MockStorage struct {
// contains filtered or unexported fields
}
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (m *MockStorage) ClientAssertionJWTValid(arg0 context.Context, arg1 string) error
ClientAssertionJWTValid mocks base method
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStorage) GetClient(arg0 context.Context, arg1 string) (fosite.Client, error)
GetClient mocks base method
func (m *MockStorage) SetClientAssertionJWT(arg0 context.Context, arg1 string, arg2 time.Time) error
SetClientAssertionJWT mocks base method
MockStorageMockRecorder is the mock recorder for MockStorage
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockStorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 interface{}) *gomock.Call
ClientAssertionJWTValid indicates an expected call of ClientAssertionJWTValid
func (mr *MockStorageMockRecorder) GetClient(arg0, arg1 interface{}) *gomock.Call
GetClient indicates an expected call of GetClient
func (mr *MockStorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 interface{}) *gomock.Call
SetClientAssertionJWT indicates an expected call of SetClientAssertionJWT
MockTokenEndpointHandler is a mock of TokenEndpointHandler interface
type MockTokenEndpointHandler struct {
// contains filtered or unexported fields
}
func NewMockTokenEndpointHandler(ctrl *gomock.Controller) *MockTokenEndpointHandler
NewMockTokenEndpointHandler creates a new mock instance
func (m *MockTokenEndpointHandler) CanHandleTokenEndpointRequest(arg0 fosite.AccessRequester) bool
CanHandleTokenEndpointRequest mocks base method
func (m *MockTokenEndpointHandler) CanSkipClientAuth(arg0 fosite.AccessRequester) bool
CanSkipClientAuth mocks base method
func (m *MockTokenEndpointHandler) EXPECT() *MockTokenEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTokenEndpointHandler) HandleTokenEndpointRequest(arg0 context.Context, arg1 fosite.AccessRequester) error
HandleTokenEndpointRequest mocks base method
func (m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(arg0 context.Context, arg1 fosite.AccessRequester, arg2 fosite.AccessResponder) error
PopulateTokenEndpointResponse mocks base method
MockTokenEndpointHandlerMockRecorder is the mock recorder for MockTokenEndpointHandler
type MockTokenEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(arg0 interface{}) *gomock.Call
CanHandleTokenEndpointRequest indicates an expected call of CanHandleTokenEndpointRequest
func (mr *MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth(arg0 interface{}) *gomock.Call
CanSkipClientAuth indicates an expected call of CanSkipClientAuth
func (mr *MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest(arg0, arg1 interface{}) *gomock.Call
HandleTokenEndpointRequest indicates an expected call of HandleTokenEndpointRequest
func (mr *MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse(arg0, arg1, arg2 interface{}) *gomock.Call
PopulateTokenEndpointResponse indicates an expected call of PopulateTokenEndpointResponse
MockTokenIntrospector is a mock of TokenIntrospector interface
type MockTokenIntrospector struct {
// contains filtered or unexported fields
}
func NewMockTokenIntrospector(ctrl *gomock.Controller) *MockTokenIntrospector
NewMockTokenIntrospector creates a new mock instance
func (m *MockTokenIntrospector) EXPECT() *MockTokenIntrospectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTokenIntrospector) IntrospectToken(arg0 context.Context, arg1 string, arg2 fosite.TokenType, arg3 fosite.AccessRequester, arg4 []string) (fosite.TokenType, error)
IntrospectToken mocks base method
MockTokenIntrospectorMockRecorder is the mock recorder for MockTokenIntrospector
type MockTokenIntrospectorMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockTokenIntrospectorMockRecorder) IntrospectToken(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
IntrospectToken indicates an expected call of IntrospectToken
MockTokenRevocationStorage is a mock of TokenRevocationStorage interface
type MockTokenRevocationStorage struct {
// contains filtered or unexported fields
}
func NewMockTokenRevocationStorage(ctrl *gomock.Controller) *MockTokenRevocationStorage
NewMockTokenRevocationStorage creates a new mock instance
func (m *MockTokenRevocationStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateAccessTokenSession mocks base method
func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error
CreateRefreshTokenSession mocks base method
func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method
func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error
DeleteRefreshTokenSession mocks base method
func (m *MockTokenRevocationStorage) EXPECT() *MockTokenRevocationStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTokenRevocationStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetAccessTokenSession mocks base method
func (m *MockTokenRevocationStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error)
GetRefreshTokenSession mocks base method
func (m *MockTokenRevocationStorage) RevokeAccessToken(arg0 context.Context, arg1 string) error
RevokeAccessToken mocks base method
func (m *MockTokenRevocationStorage) RevokeRefreshToken(arg0 context.Context, arg1 string) error
RevokeRefreshToken mocks base method
func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(ctx context.Context, requestID string, signature string) error
RevokeRefreshTokenMaybeGracePeriod mocks base method
MockTokenRevocationStorageMockRecorder is the mock recorder for MockTokenRevocationStorage
type MockTokenRevocationStorageMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession
func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(arg0, arg1 interface{}) *gomock.Call
RevokeAccessToken indicates an expected call of RevokeAccessToken
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(arg0, arg1 interface{}) *gomock.Call
RevokeRefreshToken indicates an expected call of RevokeRefreshToken
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(ctx, requestID interface{}, signature interface{}) *gomock.Call
RevokeRefreshTokenMaybeGracePeriod indicates an expected call of RevokeRefreshTokenMaybeGracePeriod
MockTransactional is a mock of Transactional interface
type MockTransactional struct {
// contains filtered or unexported fields
}
func NewMockTransactional(ctrl *gomock.Controller) *MockTransactional
NewMockTransactional creates a new mock instance
func (m *MockTransactional) BeginTX(arg0 context.Context) (context.Context, error)
BeginTX mocks base method
func (m *MockTransactional) Commit(arg0 context.Context) error
Commit mocks base method
func (m *MockTransactional) EXPECT() *MockTransactionalMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTransactional) Rollback(arg0 context.Context) error
Rollback mocks base method
MockTransactionalMockRecorder is the mock recorder for MockTransactional
type MockTransactionalMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockTransactionalMockRecorder) BeginTX(arg0 interface{}) *gomock.Call
BeginTX indicates an expected call of BeginTX
func (mr *MockTransactionalMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (mr *MockTransactionalMockRecorder) Rollback(arg0 interface{}) *gomock.Call
Rollback indicates an expected call of Rollback