Documentation ¶
Index ¶
- func MustRSAKey() *rsa.PrivateKey
- type MockAccessRequester
- func (_m *MockAccessRequester) EXPECT() *_MockAccessRequesterRecorder
- func (_m *MockAccessRequester) GetClient() fosite.Client
- func (_m *MockAccessRequester) GetGrantTypes() fosite.Arguments
- func (_m *MockAccessRequester) GetGrantedScopes() fosite.Arguments
- func (_m *MockAccessRequester) GetRequestForm() url.Values
- func (_m *MockAccessRequester) GetRequestedAt() time.Time
- func (_m *MockAccessRequester) GetScopes() fosite.Arguments
- func (_m *MockAccessRequester) GetSession() interface{}
- func (_m *MockAccessRequester) GrantScope(_param0 string)
- func (_m *MockAccessRequester) Merge(_param0 fosite.Requester)
- func (_m *MockAccessRequester) SetScopes(_param0 fosite.Arguments)
- func (_m *MockAccessRequester) SetSession(_param0 interface{})
- type MockAccessResponder
- func (_m *MockAccessResponder) EXPECT() *_MockAccessResponderRecorder
- func (_m *MockAccessResponder) GetAccessToken() string
- func (_m *MockAccessResponder) GetExtra(_param0 string) interface{}
- func (_m *MockAccessResponder) GetTokenType() string
- func (_m *MockAccessResponder) SetAccessToken(_param0 string)
- func (_m *MockAccessResponder) SetExpiresIn(_param0 time.Duration)
- func (_m *MockAccessResponder) SetExtra(_param0 string, _param1 interface{})
- func (_m *MockAccessResponder) SetScopes(_param0 fosite.Arguments)
- func (_m *MockAccessResponder) SetTokenType(_param0 string)
- func (_m *MockAccessResponder) ToMap() map[string]interface{}
- type MockAccessTokenStorage
- func (_m *MockAccessTokenStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
- func (_m *MockAccessTokenStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
- func (_m *MockAccessTokenStorage) EXPECT() *_MockAccessTokenStorageRecorder
- func (_m *MockAccessTokenStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 interface{}) (fosite.Requester, error)
- type MockAccessTokenStrategy
- func (_m *MockAccessTokenStrategy) AccessTokenSignature(_param0 string) string
- func (_m *MockAccessTokenStrategy) EXPECT() *_MockAccessTokenStrategyRecorder
- func (_m *MockAccessTokenStrategy) GenerateAccessToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)
- func (_m *MockAccessTokenStrategy) ValidateAccessToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error
- type 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 interface{}) (fosite.Requester, error)
- func (_m *MockAuthorizeCodeGrantStorage) PersistAuthorizeCodeGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, ...) error
- type MockAuthorizeCodeStorage
- func (_m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
- func (_m *MockAuthorizeCodeStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error
- func (_m *MockAuthorizeCodeStorage) EXPECT() *_MockAuthorizeCodeStorageRecorder
- func (_m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 interface{}) (fosite.Requester, error)
- type MockAuthorizeCodeStrategy
- func (_m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(_param0 string) string
- func (_m *MockAuthorizeCodeStrategy) EXPECT() *_MockAuthorizeCodeStrategyRecorder
- func (_m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester) (string, string, error)
- func (_m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester, _param2 string) error
- type MockAuthorizeEndpointHandler
- type MockAuthorizeRequester
- func (_m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool
- func (_m *MockAuthorizeRequester) EXPECT() *_MockAuthorizeRequesterRecorder
- func (_m *MockAuthorizeRequester) GetClient() fosite.Client
- func (_m *MockAuthorizeRequester) GetGrantedScopes() fosite.Arguments
- func (_m *MockAuthorizeRequester) GetRedirectURI() *url.URL
- func (_m *MockAuthorizeRequester) GetRequestForm() url.Values
- func (_m *MockAuthorizeRequester) GetRequestedAt() time.Time
- func (_m *MockAuthorizeRequester) GetResponseTypes() fosite.Arguments
- func (_m *MockAuthorizeRequester) GetScopes() fosite.Arguments
- func (_m *MockAuthorizeRequester) GetSession() interface{}
- func (_m *MockAuthorizeRequester) GetState() string
- func (_m *MockAuthorizeRequester) GrantScope(_param0 string)
- func (_m *MockAuthorizeRequester) IsRedirectURIValid() bool
- func (_m *MockAuthorizeRequester) Merge(_param0 fosite.Requester)
- func (_m *MockAuthorizeRequester) SetResponseTypeHandled(_param0 string)
- func (_m *MockAuthorizeRequester) SetScopes(_param0 fosite.Arguments)
- func (_m *MockAuthorizeRequester) SetSession(_param0 interface{})
- type MockAuthorizeResponder
- func (_m *MockAuthorizeResponder) AddFragment(_param0 string, _param1 string)
- func (_m *MockAuthorizeResponder) AddHeader(_param0 string, _param1 string)
- func (_m *MockAuthorizeResponder) AddQuery(_param0 string, _param1 string)
- func (_m *MockAuthorizeResponder) EXPECT() *_MockAuthorizeResponderRecorder
- func (_m *MockAuthorizeResponder) GetCode() string
- func (_m *MockAuthorizeResponder) GetFragment() url.Values
- func (_m *MockAuthorizeResponder) GetHeader() http.Header
- func (_m *MockAuthorizeResponder) GetQuery() url.Values
- type MockAuthorizedRequestValidator
- type MockClient
- func (_m *MockClient) EXPECT() *_MockClientRecorder
- func (_m *MockClient) GetGrantTypes() fosite.Arguments
- func (_m *MockClient) GetGrantedScopes() fosite.Scopes
- func (_m *MockClient) GetHashedSecret() []byte
- func (_m *MockClient) GetID() string
- func (_m *MockClient) GetOwner() string
- func (_m *MockClient) GetRedirectURIs() []string
- func (_m *MockClient) GetResponseTypes() fosite.Arguments
- type MockClientCredentialsGrantStorage
- func (_m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
- func (_m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
- func (_m *MockClientCredentialsGrantStorage) EXPECT() *_MockClientCredentialsGrantStorageRecorder
- func (_m *MockClientCredentialsGrantStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 interface{}) (fosite.Requester, error)
- type MockHasher
- type MockImplicitGrantStorage
- type MockOpenIDConnectRequestStorage
- func (_m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
- func (_m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(_param0 context.Context, _param1 string) error
- func (_m *MockOpenIDConnectRequestStorage) EXPECT() *_MockOpenIDConnectRequestStorageRecorder
- func (_m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) (fosite.Requester, error)
- type MockOpenIDConnectTokenStrategy
- type 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 interface{}) (fosite.Requester, error)
- func (_m *MockRefreshTokenGrantStorage) PersistRefreshTokenGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, ...) error
- type MockRefreshTokenStrategy
- func (_m *MockRefreshTokenStrategy) EXPECT() *_MockRefreshTokenStrategyRecorder
- func (_m *MockRefreshTokenStrategy) GenerateRefreshToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error)
- func (_m *MockRefreshTokenStrategy) RefreshTokenSignature(_param0 string) string
- func (_m *MockRefreshTokenStrategy) ValidateRefreshToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error
- type MockRequester
- func (_m *MockRequester) EXPECT() *_MockRequesterRecorder
- func (_m *MockRequester) GetClient() fosite.Client
- func (_m *MockRequester) GetGrantedScopes() fosite.Arguments
- func (_m *MockRequester) GetRequestForm() url.Values
- func (_m *MockRequester) GetRequestedAt() time.Time
- func (_m *MockRequester) GetScopes() fosite.Arguments
- func (_m *MockRequester) GetSession() interface{}
- func (_m *MockRequester) GrantScope(_param0 string)
- func (_m *MockRequester) Merge(_param0 fosite.Requester)
- func (_m *MockRequester) SetScopes(_param0 fosite.Arguments)
- func (_m *MockRequester) SetSession(_param0 interface{})
- type MockResourceOwnerPasswordCredentialsGrantStorage
- func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(_param0 context.Context, _param1 string, _param2 string) error
- func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error
- func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
- func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *_MockResourceOwnerPasswordCredentialsGrantStorageRecorder
- func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 interface{}) (fosite.Requester, error)
- type MockResponseWriter
- type MockStorage
- type MockTokenEndpointHandler
- func (_m *MockTokenEndpointHandler) EXPECT() *_MockTokenEndpointHandlerRecorder
- func (_m *MockTokenEndpointHandler) HandleTokenEndpointRequest(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester) error
- func (_m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRSAKey ¶
func MustRSAKey() *rsa.PrivateKey
Types ¶
type MockAccessRequester ¶
type MockAccessRequester struct {
// contains filtered or unexported fields
}
Mock of AccessRequester interface
func NewMockAccessRequester ¶
func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester
func (*MockAccessRequester) EXPECT ¶
func (_m *MockAccessRequester) EXPECT() *_MockAccessRequesterRecorder
func (*MockAccessRequester) GetClient ¶
func (_m *MockAccessRequester) GetClient() fosite.Client
func (*MockAccessRequester) GetGrantTypes ¶
func (_m *MockAccessRequester) GetGrantTypes() fosite.Arguments
func (*MockAccessRequester) GetGrantedScopes ¶
func (_m *MockAccessRequester) GetGrantedScopes() fosite.Arguments
func (*MockAccessRequester) GetRequestForm ¶
func (_m *MockAccessRequester) GetRequestForm() url.Values
func (*MockAccessRequester) GetRequestedAt ¶
func (_m *MockAccessRequester) GetRequestedAt() time.Time
func (*MockAccessRequester) GetScopes ¶
func (_m *MockAccessRequester) GetScopes() fosite.Arguments
func (*MockAccessRequester) GetSession ¶
func (_m *MockAccessRequester) GetSession() interface{}
func (*MockAccessRequester) GrantScope ¶
func (_m *MockAccessRequester) GrantScope(_param0 string)
func (*MockAccessRequester) Merge ¶
func (_m *MockAccessRequester) Merge(_param0 fosite.Requester)
func (*MockAccessRequester) SetScopes ¶
func (_m *MockAccessRequester) SetScopes(_param0 fosite.Arguments)
func (*MockAccessRequester) SetSession ¶
func (_m *MockAccessRequester) SetSession(_param0 interface{})
type MockAccessResponder ¶
type MockAccessResponder struct {
// contains filtered or unexported fields
}
Mock of AccessResponder interface
func NewMockAccessResponder ¶
func NewMockAccessResponder(ctrl *gomock.Controller) *MockAccessResponder
func (*MockAccessResponder) EXPECT ¶
func (_m *MockAccessResponder) EXPECT() *_MockAccessResponderRecorder
func (*MockAccessResponder) GetAccessToken ¶
func (_m *MockAccessResponder) GetAccessToken() string
func (*MockAccessResponder) GetExtra ¶
func (_m *MockAccessResponder) GetExtra(_param0 string) interface{}
func (*MockAccessResponder) GetTokenType ¶
func (_m *MockAccessResponder) GetTokenType() string
func (*MockAccessResponder) SetAccessToken ¶
func (_m *MockAccessResponder) SetAccessToken(_param0 string)
func (*MockAccessResponder) SetExpiresIn ¶
func (_m *MockAccessResponder) SetExpiresIn(_param0 time.Duration)
func (*MockAccessResponder) SetExtra ¶
func (_m *MockAccessResponder) SetExtra(_param0 string, _param1 interface{})
func (*MockAccessResponder) SetScopes ¶
func (_m *MockAccessResponder) SetScopes(_param0 fosite.Arguments)
func (*MockAccessResponder) SetTokenType ¶
func (_m *MockAccessResponder) SetTokenType(_param0 string)
func (*MockAccessResponder) ToMap ¶
func (_m *MockAccessResponder) ToMap() map[string]interface{}
type MockAccessTokenStorage ¶
type MockAccessTokenStorage struct {
// contains filtered or unexported fields
}
Mock of AccessTokenStorage interface
func NewMockAccessTokenStorage ¶
func NewMockAccessTokenStorage(ctrl *gomock.Controller) *MockAccessTokenStorage
func (*MockAccessTokenStorage) CreateAccessTokenSession ¶
func (*MockAccessTokenStorage) DeleteAccessTokenSession ¶
func (_m *MockAccessTokenStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
func (*MockAccessTokenStorage) EXPECT ¶
func (_m *MockAccessTokenStorage) EXPECT() *_MockAccessTokenStorageRecorder
func (*MockAccessTokenStorage) GetAccessTokenSession ¶
type MockAccessTokenStrategy ¶
type MockAccessTokenStrategy struct {
// contains filtered or unexported fields
}
Mock of AccessTokenStrategy interface
func NewMockAccessTokenStrategy ¶
func NewMockAccessTokenStrategy(ctrl *gomock.Controller) *MockAccessTokenStrategy
func (*MockAccessTokenStrategy) AccessTokenSignature ¶
func (_m *MockAccessTokenStrategy) AccessTokenSignature(_param0 string) string
func (*MockAccessTokenStrategy) EXPECT ¶
func (_m *MockAccessTokenStrategy) EXPECT() *_MockAccessTokenStrategyRecorder
func (*MockAccessTokenStrategy) GenerateAccessToken ¶
func (*MockAccessTokenStrategy) ValidateAccessToken ¶
type MockAuthorizeCodeGrantStorage ¶
type MockAuthorizeCodeGrantStorage struct {
// contains filtered or unexported fields
}
Mock of AuthorizeCodeGrantStorage interface
func NewMockAuthorizeCodeGrantStorage ¶
func NewMockAuthorizeCodeGrantStorage(ctrl *gomock.Controller) *MockAuthorizeCodeGrantStorage
func (*MockAuthorizeCodeGrantStorage) CreateAuthorizeCodeSession ¶
func (*MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession ¶
func (_m *MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error
func (*MockAuthorizeCodeGrantStorage) EXPECT ¶
func (_m *MockAuthorizeCodeGrantStorage) EXPECT() *_MockAuthorizeCodeGrantStorageRecorder
func (*MockAuthorizeCodeGrantStorage) GetAuthorizeCodeSession ¶
type MockAuthorizeCodeStorage ¶
type MockAuthorizeCodeStorage struct {
// contains filtered or unexported fields
}
Mock of AuthorizeCodeStorage interface
func NewMockAuthorizeCodeStorage ¶
func NewMockAuthorizeCodeStorage(ctrl *gomock.Controller) *MockAuthorizeCodeStorage
func (*MockAuthorizeCodeStorage) CreateAuthorizeCodeSession ¶
func (*MockAuthorizeCodeStorage) DeleteAuthorizeCodeSession ¶
func (_m *MockAuthorizeCodeStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error
func (*MockAuthorizeCodeStorage) EXPECT ¶
func (_m *MockAuthorizeCodeStorage) EXPECT() *_MockAuthorizeCodeStorageRecorder
func (*MockAuthorizeCodeStorage) GetAuthorizeCodeSession ¶
type MockAuthorizeCodeStrategy ¶
type MockAuthorizeCodeStrategy struct {
// contains filtered or unexported fields
}
Mock of AuthorizeCodeStrategy interface
func NewMockAuthorizeCodeStrategy ¶
func NewMockAuthorizeCodeStrategy(ctrl *gomock.Controller) *MockAuthorizeCodeStrategy
func (*MockAuthorizeCodeStrategy) AuthorizeCodeSignature ¶
func (_m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(_param0 string) string
func (*MockAuthorizeCodeStrategy) EXPECT ¶
func (_m *MockAuthorizeCodeStrategy) EXPECT() *_MockAuthorizeCodeStrategyRecorder
func (*MockAuthorizeCodeStrategy) GenerateAuthorizeCode ¶
func (*MockAuthorizeCodeStrategy) ValidateAuthorizeCode ¶
type MockAuthorizeEndpointHandler ¶
type MockAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
Mock of AuthorizeEndpointHandler interface
func NewMockAuthorizeEndpointHandler ¶
func NewMockAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockAuthorizeEndpointHandler
func (*MockAuthorizeEndpointHandler) EXPECT ¶
func (_m *MockAuthorizeEndpointHandler) EXPECT() *_MockAuthorizeEndpointHandlerRecorder
func (*MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest ¶
func (_m *MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest(_param0 context.Context, _param1 *http.Request, _param2 fosite.AuthorizeRequester, _param3 fosite.AuthorizeResponder) error
type MockAuthorizeRequester ¶
type MockAuthorizeRequester struct {
// contains filtered or unexported fields
}
Mock of AuthorizeRequester interface
func NewMockAuthorizeRequester ¶
func NewMockAuthorizeRequester(ctrl *gomock.Controller) *MockAuthorizeRequester
func (*MockAuthorizeRequester) DidHandleAllResponseTypes ¶
func (_m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool
func (*MockAuthorizeRequester) EXPECT ¶
func (_m *MockAuthorizeRequester) EXPECT() *_MockAuthorizeRequesterRecorder
func (*MockAuthorizeRequester) GetClient ¶
func (_m *MockAuthorizeRequester) GetClient() fosite.Client
func (*MockAuthorizeRequester) GetGrantedScopes ¶
func (_m *MockAuthorizeRequester) GetGrantedScopes() fosite.Arguments
func (*MockAuthorizeRequester) GetRedirectURI ¶
func (_m *MockAuthorizeRequester) GetRedirectURI() *url.URL
func (*MockAuthorizeRequester) GetRequestForm ¶
func (_m *MockAuthorizeRequester) GetRequestForm() url.Values
func (*MockAuthorizeRequester) GetRequestedAt ¶
func (_m *MockAuthorizeRequester) GetRequestedAt() time.Time
func (*MockAuthorizeRequester) GetResponseTypes ¶
func (_m *MockAuthorizeRequester) GetResponseTypes() fosite.Arguments
func (*MockAuthorizeRequester) GetScopes ¶
func (_m *MockAuthorizeRequester) GetScopes() fosite.Arguments
func (*MockAuthorizeRequester) GetSession ¶
func (_m *MockAuthorizeRequester) GetSession() interface{}
func (*MockAuthorizeRequester) GetState ¶
func (_m *MockAuthorizeRequester) GetState() string
func (*MockAuthorizeRequester) GrantScope ¶
func (_m *MockAuthorizeRequester) GrantScope(_param0 string)
func (*MockAuthorizeRequester) IsRedirectURIValid ¶
func (_m *MockAuthorizeRequester) IsRedirectURIValid() bool
func (*MockAuthorizeRequester) Merge ¶
func (_m *MockAuthorizeRequester) Merge(_param0 fosite.Requester)
func (*MockAuthorizeRequester) SetResponseTypeHandled ¶
func (_m *MockAuthorizeRequester) SetResponseTypeHandled(_param0 string)
func (*MockAuthorizeRequester) SetScopes ¶
func (_m *MockAuthorizeRequester) SetScopes(_param0 fosite.Arguments)
func (*MockAuthorizeRequester) SetSession ¶
func (_m *MockAuthorizeRequester) SetSession(_param0 interface{})
type MockAuthorizeResponder ¶
type MockAuthorizeResponder struct {
// contains filtered or unexported fields
}
Mock of AuthorizeResponder interface
func NewMockAuthorizeResponder ¶
func NewMockAuthorizeResponder(ctrl *gomock.Controller) *MockAuthorizeResponder
func (*MockAuthorizeResponder) AddFragment ¶
func (_m *MockAuthorizeResponder) AddFragment(_param0 string, _param1 string)
func (*MockAuthorizeResponder) AddHeader ¶
func (_m *MockAuthorizeResponder) AddHeader(_param0 string, _param1 string)
func (*MockAuthorizeResponder) AddQuery ¶
func (_m *MockAuthorizeResponder) AddQuery(_param0 string, _param1 string)
func (*MockAuthorizeResponder) EXPECT ¶
func (_m *MockAuthorizeResponder) EXPECT() *_MockAuthorizeResponderRecorder
func (*MockAuthorizeResponder) GetCode ¶
func (_m *MockAuthorizeResponder) GetCode() string
func (*MockAuthorizeResponder) GetFragment ¶
func (_m *MockAuthorizeResponder) GetFragment() url.Values
func (*MockAuthorizeResponder) GetHeader ¶
func (_m *MockAuthorizeResponder) GetHeader() http.Header
func (*MockAuthorizeResponder) GetQuery ¶
func (_m *MockAuthorizeResponder) GetQuery() url.Values
type MockAuthorizedRequestValidator ¶
type MockAuthorizedRequestValidator struct {
// contains filtered or unexported fields
}
Mock of AuthorizedRequestValidator interface
func NewMockAuthorizedRequestValidator ¶
func NewMockAuthorizedRequestValidator(ctrl *gomock.Controller) *MockAuthorizedRequestValidator
func (*MockAuthorizedRequestValidator) EXPECT ¶
func (_m *MockAuthorizedRequestValidator) EXPECT() *_MockAuthorizedRequestValidatorRecorder
func (*MockAuthorizedRequestValidator) ValidateRequest ¶
func (_m *MockAuthorizedRequestValidator) ValidateRequest(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester) error
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
Mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *_MockClientRecorder
func (*MockClient) GetGrantTypes ¶
func (_m *MockClient) GetGrantTypes() fosite.Arguments
func (*MockClient) GetGrantedScopes ¶
func (_m *MockClient) GetGrantedScopes() fosite.Scopes
func (*MockClient) GetHashedSecret ¶
func (_m *MockClient) GetHashedSecret() []byte
func (*MockClient) GetID ¶
func (_m *MockClient) GetID() string
func (*MockClient) GetOwner ¶
func (_m *MockClient) GetOwner() string
func (*MockClient) GetRedirectURIs ¶
func (_m *MockClient) GetRedirectURIs() []string
func (*MockClient) GetResponseTypes ¶
func (_m *MockClient) GetResponseTypes() fosite.Arguments
type MockClientCredentialsGrantStorage ¶
type MockClientCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
Mock of ClientCredentialsGrantStorage interface
func NewMockClientCredentialsGrantStorage ¶
func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage
func (*MockClientCredentialsGrantStorage) CreateAccessTokenSession ¶
func (*MockClientCredentialsGrantStorage) DeleteAccessTokenSession ¶
func (_m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
func (*MockClientCredentialsGrantStorage) EXPECT ¶
func (_m *MockClientCredentialsGrantStorage) EXPECT() *_MockClientCredentialsGrantStorageRecorder
func (*MockClientCredentialsGrantStorage) GetAccessTokenSession ¶
type MockHasher ¶
type MockHasher struct {
// contains filtered or unexported fields
}
Mock of Hasher interface
func NewMockHasher ¶
func NewMockHasher(ctrl *gomock.Controller) *MockHasher
func (*MockHasher) EXPECT ¶
func (_m *MockHasher) EXPECT() *_MockHasherRecorder
type MockImplicitGrantStorage ¶
type MockImplicitGrantStorage struct {
// contains filtered or unexported fields
}
Mock of ImplicitGrantStorage interface
func NewMockImplicitGrantStorage ¶
func NewMockImplicitGrantStorage(ctrl *gomock.Controller) *MockImplicitGrantStorage
func (*MockImplicitGrantStorage) CreateImplicitAccessTokenSession ¶
func (*MockImplicitGrantStorage) EXPECT ¶
func (_m *MockImplicitGrantStorage) EXPECT() *_MockImplicitGrantStorageRecorder
type MockOpenIDConnectRequestStorage ¶
type MockOpenIDConnectRequestStorage struct {
// contains filtered or unexported fields
}
Mock of OpenIDConnectRequestStorage interface
func NewMockOpenIDConnectRequestStorage ¶
func NewMockOpenIDConnectRequestStorage(ctrl *gomock.Controller) *MockOpenIDConnectRequestStorage
func (*MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession ¶
func (*MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession ¶
func (_m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(_param0 context.Context, _param1 string) error
func (*MockOpenIDConnectRequestStorage) EXPECT ¶
func (_m *MockOpenIDConnectRequestStorage) EXPECT() *_MockOpenIDConnectRequestStorageRecorder
type MockOpenIDConnectTokenStrategy ¶
type MockOpenIDConnectTokenStrategy struct {
// contains filtered or unexported fields
}
Mock of OpenIDConnectTokenStrategy interface
func NewMockOpenIDConnectTokenStrategy ¶
func NewMockOpenIDConnectTokenStrategy(ctrl *gomock.Controller) *MockOpenIDConnectTokenStrategy
func (*MockOpenIDConnectTokenStrategy) EXPECT ¶
func (_m *MockOpenIDConnectTokenStrategy) EXPECT() *_MockOpenIDConnectTokenStrategyRecorder
type MockRefreshTokenGrantStorage ¶
type MockRefreshTokenGrantStorage struct {
// contains filtered or unexported fields
}
Mock of RefreshTokenGrantStorage interface
func NewMockRefreshTokenGrantStorage ¶
func NewMockRefreshTokenGrantStorage(ctrl *gomock.Controller) *MockRefreshTokenGrantStorage
func (*MockRefreshTokenGrantStorage) CreateRefreshTokenSession ¶
func (*MockRefreshTokenGrantStorage) DeleteRefreshTokenSession ¶
func (_m *MockRefreshTokenGrantStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error
func (*MockRefreshTokenGrantStorage) EXPECT ¶
func (_m *MockRefreshTokenGrantStorage) EXPECT() *_MockRefreshTokenGrantStorageRecorder
func (*MockRefreshTokenGrantStorage) GetRefreshTokenSession ¶
type MockRefreshTokenStrategy ¶
type MockRefreshTokenStrategy struct {
// contains filtered or unexported fields
}
Mock of RefreshTokenStrategy interface
func NewMockRefreshTokenStrategy ¶
func NewMockRefreshTokenStrategy(ctrl *gomock.Controller) *MockRefreshTokenStrategy
func (*MockRefreshTokenStrategy) EXPECT ¶
func (_m *MockRefreshTokenStrategy) EXPECT() *_MockRefreshTokenStrategyRecorder
func (*MockRefreshTokenStrategy) GenerateRefreshToken ¶
func (*MockRefreshTokenStrategy) RefreshTokenSignature ¶
func (_m *MockRefreshTokenStrategy) RefreshTokenSignature(_param0 string) string
func (*MockRefreshTokenStrategy) ValidateRefreshToken ¶
type MockRequester ¶
type MockRequester struct {
// contains filtered or unexported fields
}
Mock of Requester interface
func NewMockRequester ¶
func NewMockRequester(ctrl *gomock.Controller) *MockRequester
func (*MockRequester) EXPECT ¶
func (_m *MockRequester) EXPECT() *_MockRequesterRecorder
func (*MockRequester) GetClient ¶
func (_m *MockRequester) GetClient() fosite.Client
func (*MockRequester) GetGrantedScopes ¶
func (_m *MockRequester) GetGrantedScopes() fosite.Arguments
func (*MockRequester) GetRequestForm ¶
func (_m *MockRequester) GetRequestForm() url.Values
func (*MockRequester) GetRequestedAt ¶
func (_m *MockRequester) GetRequestedAt() time.Time
func (*MockRequester) GetScopes ¶
func (_m *MockRequester) GetScopes() fosite.Arguments
func (*MockRequester) GetSession ¶
func (_m *MockRequester) GetSession() interface{}
func (*MockRequester) GrantScope ¶
func (_m *MockRequester) GrantScope(_param0 string)
func (*MockRequester) Merge ¶
func (_m *MockRequester) Merge(_param0 fosite.Requester)
func (*MockRequester) SetScopes ¶
func (_m *MockRequester) SetScopes(_param0 fosite.Arguments)
func (*MockRequester) SetSession ¶
func (_m *MockRequester) SetSession(_param0 interface{})
type MockResourceOwnerPasswordCredentialsGrantStorage ¶
type MockResourceOwnerPasswordCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
Mock of ResourceOwnerPasswordCredentialsGrantStorage interface
func NewMockResourceOwnerPasswordCredentialsGrantStorage ¶
func NewMockResourceOwnerPasswordCredentialsGrantStorage(ctrl *gomock.Controller) *MockResourceOwnerPasswordCredentialsGrantStorage
func (*MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate ¶
func (*MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession ¶
func (*MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession ¶
func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error
func (*MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT ¶
func (_m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *_MockResourceOwnerPasswordCredentialsGrantStorageRecorder
func (*MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession ¶
type MockResponseWriter ¶
type MockResponseWriter struct {
// contains filtered or unexported fields
}
Mock of ResponseWriter interface
func NewMockResponseWriter ¶
func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter
func (*MockResponseWriter) EXPECT ¶
func (_m *MockResponseWriter) EXPECT() *_MockResponseWriterRecorder
func (*MockResponseWriter) Header ¶
func (_m *MockResponseWriter) Header() http.Header
func (*MockResponseWriter) WriteHeader ¶
func (_m *MockResponseWriter) WriteHeader(_param0 int)
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
Mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
func (*MockStorage) EXPECT ¶
func (_m *MockStorage) EXPECT() *_MockStorageRecorder
type MockTokenEndpointHandler ¶
type MockTokenEndpointHandler struct {
// contains filtered or unexported fields
}
Mock of TokenEndpointHandler interface
func NewMockTokenEndpointHandler ¶
func NewMockTokenEndpointHandler(ctrl *gomock.Controller) *MockTokenEndpointHandler
func (*MockTokenEndpointHandler) EXPECT ¶
func (_m *MockTokenEndpointHandler) EXPECT() *_MockTokenEndpointHandlerRecorder
func (*MockTokenEndpointHandler) HandleTokenEndpointRequest ¶
func (_m *MockTokenEndpointHandler) HandleTokenEndpointRequest(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester) error
func (*MockTokenEndpointHandler) PopulateTokenEndpointResponse ¶
func (_m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester, _param3 fosite.AccessResponder) error
Source Files ¶
- access_request.go
- access_response.go
- access_token_storage.go
- access_token_strategy.go
- authorize_code_storage.go
- authorize_code_strategy.go
- authorize_handler.go
- authorize_request.go
- authorize_response.go
- client.go
- core_client_storage.go
- core_explicit_storage.go
- core_implicit_storage.go
- core_owner_storage.go
- core_refresh_storage.go
- hash.go
- id_token_strategy.go
- key.go
- oidc_id_token_storage.go
- refresh_token_strategy.go
- request.go
- rw.go
- storage.go
- token_handler.go
- validator.go