Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAccessRequester
- func (m *MockAccessRequester) AppendRequestedScope(scope string)
- func (m *MockAccessRequester) EXPECT() *MockAccessRequesterMockRecorder
- func (m *MockAccessRequester) GetClient() oauth2.Client
- func (m *MockAccessRequester) GetGrantTypes() oauth2.Arguments
- func (m *MockAccessRequester) GetGrantedAudience() oauth2.Arguments
- func (m *MockAccessRequester) GetGrantedScopes() oauth2.Arguments
- func (m *MockAccessRequester) GetID() string
- func (m *MockAccessRequester) GetRequestForm() url.Values
- func (m *MockAccessRequester) GetRequestedAt() time.Time
- func (m *MockAccessRequester) GetRequestedAudience() oauth2.Arguments
- func (m *MockAccessRequester) GetRequestedScopes() oauth2.Arguments
- func (m *MockAccessRequester) GetSession() oauth2.Session
- func (m *MockAccessRequester) GrantAudience(audience string)
- func (m *MockAccessRequester) GrantScope(scope string)
- func (m *MockAccessRequester) Merge(requester oauth2.Requester)
- func (m *MockAccessRequester) Sanitize(allowedParameters []string) oauth2.Requester
- func (m *MockAccessRequester) SetID(id string)
- func (m *MockAccessRequester) SetRequestedAudience(audience oauth2.Arguments)
- func (m *MockAccessRequester) SetRequestedScopes(scopes oauth2.Arguments)
- func (m *MockAccessRequester) SetSession(session oauth2.Session)
- type MockAccessRequesterMockRecorder
- func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetClient() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetGrantTypes() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetGrantedAudience() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetGrantedScopes() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetID() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetRequestForm() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetRequestedAt() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetRequestedAudience() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetRequestedScopes() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GetSession() *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GrantScope(scope any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) Merge(requester any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetID(id any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetSession(session any) *gomock.Call
- type MockAccessResponder
- func (m *MockAccessResponder) EXPECT() *MockAccessResponderMockRecorder
- func (m *MockAccessResponder) GetAccessToken() string
- func (m *MockAccessResponder) GetExtra(key string) any
- func (m *MockAccessResponder) GetTokenType() string
- func (m *MockAccessResponder) SetAccessToken(token string)
- func (m *MockAccessResponder) SetExpiresIn(arg0 time.Duration)
- func (m *MockAccessResponder) SetExtra(key string, value any)
- func (m *MockAccessResponder) SetScopes(scopes oauth2.Arguments)
- func (m *MockAccessResponder) SetTokenType(tokenType string)
- func (m *MockAccessResponder) ToMap() map[string]any
- type MockAccessResponderMockRecorder
- func (mr *MockAccessResponderMockRecorder) GetAccessToken() *gomock.Call
- func (mr *MockAccessResponderMockRecorder) GetExtra(key any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) GetTokenType() *gomock.Call
- func (mr *MockAccessResponderMockRecorder) SetAccessToken(token any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) SetExpiresIn(arg0 any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) SetExtra(key, value any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) SetScopes(scopes any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) SetTokenType(tokenType any) *gomock.Call
- func (mr *MockAccessResponderMockRecorder) ToMap() *gomock.Call
- type MockAccessTokenStorage
- func (m *MockAccessTokenStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockAccessTokenStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (m *MockAccessTokenStorage) EXPECT() *MockAccessTokenStorageMockRecorder
- func (m *MockAccessTokenStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- type MockAccessTokenStorageMockRecorder
- func (mr *MockAccessTokenStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockAccessTokenStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
- type MockAccessTokenStrategy
- func (m *MockAccessTokenStrategy) AccessTokenSignature(ctx context.Context, token string) string
- func (m *MockAccessTokenStrategy) EXPECT() *MockAccessTokenStrategyMockRecorder
- func (m *MockAccessTokenStrategy) GenerateAccessToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockAccessTokenStrategy) ValidateAccessToken(ctx context.Context, requester oauth2.Requester, token string) error
- type MockAccessTokenStrategyMockRecorder
- func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(ctx, token any) *gomock.Call
- func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(ctx, requester any) *gomock.Call
- func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(ctx, requester, token any) *gomock.Call
- type MockAuthorizeCodeStorage
- func (m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(ctx context.Context, code string, request oauth2.Requester) error
- func (m *MockAuthorizeCodeStorage) EXPECT() *MockAuthorizeCodeStorageMockRecorder
- func (m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(ctx context.Context, code string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockAuthorizeCodeStorage) InvalidateAuthorizeCodeSession(ctx context.Context, code string) error
- type MockAuthorizeCodeStorageMockRecorder
- func (mr *MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession(ctx, code, request any) *gomock.Call
- func (mr *MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession(ctx, code, session any) *gomock.Call
- func (mr *MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession(ctx, code any) *gomock.Call
- type MockAuthorizeCodeStrategy
- func (m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string
- func (m *MockAuthorizeCodeStrategy) EXPECT() *MockAuthorizeCodeStrategyMockRecorder
- func (m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(ctx context.Context, requester oauth2.Requester, token string) error
- type MockAuthorizeCodeStrategyMockRecorder
- func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(ctx, token any) *gomock.Call
- func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(ctx, requester any) *gomock.Call
- func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(ctx, requester, token any) *gomock.Call
- type MockAuthorizeEndpointHandler
- type MockAuthorizeEndpointHandlerMockRecorder
- type MockAuthorizeRequester
- func (m *MockAuthorizeRequester) AppendRequestedScope(scope string)
- func (m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool
- func (m *MockAuthorizeRequester) EXPECT() *MockAuthorizeRequesterMockRecorder
- func (m *MockAuthorizeRequester) GetClient() oauth2.Client
- func (m *MockAuthorizeRequester) GetDefaultResponseMode() oauth2.ResponseModeType
- func (m *MockAuthorizeRequester) GetGrantedAudience() oauth2.Arguments
- func (m *MockAuthorizeRequester) GetGrantedScopes() oauth2.Arguments
- func (m *MockAuthorizeRequester) GetID() string
- func (m *MockAuthorizeRequester) GetRedirectURI() *url.URL
- func (m *MockAuthorizeRequester) GetRequestForm() url.Values
- func (m *MockAuthorizeRequester) GetRequestedAt() time.Time
- func (m *MockAuthorizeRequester) GetRequestedAudience() oauth2.Arguments
- func (m *MockAuthorizeRequester) GetRequestedScopes() oauth2.Arguments
- func (m *MockAuthorizeRequester) GetResponseMode() oauth2.ResponseModeType
- func (m *MockAuthorizeRequester) GetResponseTypes() oauth2.Arguments
- func (m *MockAuthorizeRequester) GetSession() oauth2.Session
- func (m *MockAuthorizeRequester) GetState() string
- func (m *MockAuthorizeRequester) GrantAudience(audience string)
- func (m *MockAuthorizeRequester) GrantScope(scope string)
- func (m *MockAuthorizeRequester) IsRedirectURIValid() bool
- func (m *MockAuthorizeRequester) Merge(requester oauth2.Requester)
- func (m *MockAuthorizeRequester) Sanitize(allowedParameters []string) oauth2.Requester
- func (m *MockAuthorizeRequester) SetDefaultResponseMode(responseMode oauth2.ResponseModeType)
- func (m *MockAuthorizeRequester) SetID(id string)
- func (m *MockAuthorizeRequester) SetRequestedAudience(audience oauth2.Arguments)
- func (m *MockAuthorizeRequester) SetRequestedScopes(scopes oauth2.Arguments)
- func (m *MockAuthorizeRequester) SetResponseTypeHandled(responseType string)
- func (m *MockAuthorizeRequester) SetSession(session oauth2.Session)
- type MockAuthorizeRequesterMockRecorder
- func (mr *MockAuthorizeRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) DidHandleAllResponseTypes() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetClient() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetDefaultResponseMode() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedAudience() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedScopes() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetID() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetRedirectURI() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetRequestForm() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAt() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAudience() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedScopes() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetResponseMode() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetResponseTypes() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetSession() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GetState() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) GrantScope(scope any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) IsRedirectURIValid() *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) Merge(requester any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode(responseMode any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetID(id any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled(responseType any) *gomock.Call
- func (mr *MockAuthorizeRequesterMockRecorder) SetSession(session any) *gomock.Call
- type MockAuthorizeResponder
- func (m *MockAuthorizeResponder) AddHeader(key, value string)
- func (m *MockAuthorizeResponder) AddParameter(key, value string)
- func (m *MockAuthorizeResponder) EXPECT() *MockAuthorizeResponderMockRecorder
- func (m *MockAuthorizeResponder) GetCode() string
- func (m *MockAuthorizeResponder) GetHeader() http.Header
- func (m *MockAuthorizeResponder) GetParameters() url.Values
- type MockAuthorizeResponderMockRecorder
- func (mr *MockAuthorizeResponderMockRecorder) AddHeader(key, value any) *gomock.Call
- func (mr *MockAuthorizeResponderMockRecorder) AddParameter(key, value any) *gomock.Call
- func (mr *MockAuthorizeResponderMockRecorder) GetCode() *gomock.Call
- func (mr *MockAuthorizeResponderMockRecorder) GetHeader() *gomock.Call
- func (mr *MockAuthorizeResponderMockRecorder) GetParameters() *gomock.Call
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAudience() oauth2.Arguments
- func (m *MockClient) GetClientSecret() oauth2.ClientSecret
- func (m *MockClient) GetGrantTypes() oauth2.Arguments
- func (m *MockClient) GetID() string
- func (m *MockClient) GetRedirectURIs() []string
- func (m *MockClient) GetResponseTypes() oauth2.Arguments
- func (m *MockClient) GetScopes() oauth2.Arguments
- func (m *MockClient) IsPublic() bool
- type MockClientCredentialsGrantStorage
- func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder
- func (m *MockClientCredentialsGrantStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- type MockClientCredentialsGrantStorageMockRecorder
- func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) GetAudience() *gomock.Call
- func (mr *MockClientMockRecorder) GetClientSecret() *gomock.Call
- func (mr *MockClientMockRecorder) GetGrantTypes() *gomock.Call
- func (mr *MockClientMockRecorder) GetID() *gomock.Call
- func (mr *MockClientMockRecorder) GetRedirectURIs() *gomock.Call
- func (mr *MockClientMockRecorder) GetResponseTypes() *gomock.Call
- func (mr *MockClientMockRecorder) GetScopes() *gomock.Call
- func (mr *MockClientMockRecorder) IsPublic() *gomock.Call
- type MockClientSecret
- type MockClientSecretMockRecorder
- type MockCodeTokenEndpointHandler
- func (m *MockCodeTokenEndpointHandler) CanHandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) bool
- func (m *MockCodeTokenEndpointHandler) CanSkipClientAuth(ctx context.Context, requester oauth2.AccessRequester) bool
- func (m *MockCodeTokenEndpointHandler) DeviceCodeSignature(ctx context.Context, code string) (string, error)
- func (m *MockCodeTokenEndpointHandler) EXPECT() *MockCodeTokenEndpointHandlerMockRecorder
- func (m *MockCodeTokenEndpointHandler) GetCodeAndSession(ctx context.Context, request oauth2.AccessRequester) (string, string, oauth2.Requester, error)
- func (m *MockCodeTokenEndpointHandler) InvalidateSession(ctx context.Context, signature string, authorizeRequest oauth2.Requester) error
- func (m *MockCodeTokenEndpointHandler) UpdateLastChecked(ctx context.Context, request oauth2.AccessRequester, ...) error
- func (m *MockCodeTokenEndpointHandler) ValidateCodeAndSession(ctx context.Context, request oauth2.AccessRequester, ...) error
- func (m *MockCodeTokenEndpointHandler) ValidateGrantTypes(ctx context.Context, requester oauth2.AccessRequester) error
- type MockCodeTokenEndpointHandlerMockRecorder
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(ctx, requester any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) CanSkipClientAuth(ctx, requester any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) DeviceCodeSignature(ctx, code any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) GetCodeAndSession(ctx, request any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) InvalidateSession(ctx, signature, authorizeRequest any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) UpdateLastChecked(ctx, request, authorizeRequest any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) ValidateCodeAndSession(ctx, request, authorizeRequest, code any) *gomock.Call
- func (mr *MockCodeTokenEndpointHandlerMockRecorder) ValidateGrantTypes(ctx, requester any) *gomock.Call
- type MockCoreStorage
- func (m *MockCoreStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockCoreStorage) CreateAuthorizeCodeSession(ctx context.Context, code string, request oauth2.Requester) error
- func (m *MockCoreStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockCoreStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (m *MockCoreStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
- func (m *MockCoreStorage) EXPECT() *MockCoreStorageMockRecorder
- func (m *MockCoreStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockCoreStorage) GetAuthorizeCodeSession(ctx context.Context, code string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockCoreStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockCoreStorage) InvalidateAuthorizeCodeSession(ctx context.Context, code string) error
- type MockCoreStorageMockRecorder
- func (mr *MockCoreStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) CreateAuthorizeCodeSession(ctx, code, request any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) GetAuthorizeCodeSession(ctx, code, session any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
- func (mr *MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession(ctx, code any) *gomock.Call
- type MockCoreStrategy
- func (m *MockCoreStrategy) AccessTokenSignature(ctx context.Context, token string) string
- func (m *MockCoreStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string
- func (m *MockCoreStrategy) EXPECT() *MockCoreStrategyMockRecorder
- func (m *MockCoreStrategy) GenerateAccessToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockCoreStrategy) GenerateAuthorizeCode(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockCoreStrategy) GenerateRFC8628DeviceCode(ctx context.Context) (string, string, error)
- func (m *MockCoreStrategy) GenerateRFC8628UserCode(ctx context.Context) (string, string, error)
- func (m *MockCoreStrategy) GenerateRefreshToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockCoreStrategy) RFC8628DeviceCodeSignature(ctx context.Context, code string) (string, error)
- func (m *MockCoreStrategy) RFC8628UserCodeSignature(ctx context.Context, code string) (string, error)
- func (m *MockCoreStrategy) RefreshTokenSignature(ctx context.Context, token string) string
- func (m *MockCoreStrategy) ValidateAccessToken(ctx context.Context, requester oauth2.Requester, token string) error
- func (m *MockCoreStrategy) ValidateAuthorizeCode(ctx context.Context, requester oauth2.Requester, token string) error
- func (m *MockCoreStrategy) ValidateRFC8628DeviceCode(ctx context.Context, r oauth2.Requester, code string) error
- func (m *MockCoreStrategy) ValidateRFC8628UserCode(ctx context.Context, r oauth2.Requester, code string) error
- func (m *MockCoreStrategy) ValidateRefreshToken(ctx context.Context, requester oauth2.Requester, token string) error
- type MockCoreStrategyMockRecorder
- func (mr *MockCoreStrategyMockRecorder) AccessTokenSignature(ctx, token any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) AuthorizeCodeSignature(ctx, token any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) GenerateAccessToken(ctx, requester any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) GenerateAuthorizeCode(ctx, requester any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) GenerateRFC8628DeviceCode(ctx any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) GenerateRFC8628UserCode(ctx any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) GenerateRefreshToken(ctx, requester any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) RFC8628DeviceCodeSignature(ctx, code any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) RFC8628UserCodeSignature(ctx, code any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) RefreshTokenSignature(ctx, token any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) ValidateAccessToken(ctx, requester, token any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) ValidateAuthorizeCode(ctx, requester, token any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) ValidateRFC8628DeviceCode(ctx, r, code any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) ValidateRFC8628UserCode(ctx, r, code any) *gomock.Call
- func (mr *MockCoreStrategyMockRecorder) ValidateRefreshToken(ctx, requester, token any) *gomock.Call
- type MockDeviceAuthorizeRequester
- func (m *MockDeviceAuthorizeRequester) AppendRequestedScope(scope string)
- func (m *MockDeviceAuthorizeRequester) EXPECT() *MockDeviceAuthorizeRequesterMockRecorder
- func (m *MockDeviceAuthorizeRequester) GetClient() oauth2.Client
- func (m *MockDeviceAuthorizeRequester) GetDeviceCodeSignature() string
- func (m *MockDeviceAuthorizeRequester) GetGrantedAudience() oauth2.Arguments
- func (m *MockDeviceAuthorizeRequester) GetGrantedScopes() oauth2.Arguments
- func (m *MockDeviceAuthorizeRequester) GetID() string
- func (m *MockDeviceAuthorizeRequester) GetLastChecked() time.Time
- func (m *MockDeviceAuthorizeRequester) GetRequestForm() url.Values
- func (m *MockDeviceAuthorizeRequester) GetRequestedAt() time.Time
- func (m *MockDeviceAuthorizeRequester) GetRequestedAudience() oauth2.Arguments
- func (m *MockDeviceAuthorizeRequester) GetRequestedScopes() oauth2.Arguments
- func (m *MockDeviceAuthorizeRequester) GetSession() oauth2.Session
- func (m *MockDeviceAuthorizeRequester) GetStatus() oauth2.DeviceAuthorizeStatus
- func (m *MockDeviceAuthorizeRequester) GetUserCodeSignature() string
- func (m *MockDeviceAuthorizeRequester) GrantAudience(audience string)
- func (m *MockDeviceAuthorizeRequester) GrantScope(scope string)
- func (m *MockDeviceAuthorizeRequester) Merge(requester oauth2.Requester)
- func (m *MockDeviceAuthorizeRequester) Sanitize(allowedParameters []string) oauth2.Requester
- func (m *MockDeviceAuthorizeRequester) SetDeviceCodeSignature(signature string)
- func (m *MockDeviceAuthorizeRequester) SetID(id string)
- func (m *MockDeviceAuthorizeRequester) SetLastChecked(lastChecked time.Time)
- func (m *MockDeviceAuthorizeRequester) SetRequestedAudience(audience oauth2.Arguments)
- func (m *MockDeviceAuthorizeRequester) SetRequestedScopes(scopes oauth2.Arguments)
- func (m *MockDeviceAuthorizeRequester) SetSession(session oauth2.Session)
- func (m *MockDeviceAuthorizeRequester) SetStatus(status oauth2.DeviceAuthorizeStatus)
- func (m *MockDeviceAuthorizeRequester) SetUserCodeSignature(signature string)
- type MockDeviceAuthorizeRequesterMockRecorder
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetClient() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetDeviceCodeSignature() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetGrantedAudience() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetGrantedScopes() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetID() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetLastChecked() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestForm() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAt() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAudience() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedScopes() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetSession() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetStatus() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetUserCodeSignature() *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) GrantScope(scope any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) Merge(requester any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetDeviceCodeSignature(signature any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetID(id any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetLastChecked(lastChecked any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetSession(session any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetStatus(status any) *gomock.Call
- func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetUserCodeSignature(signature any) *gomock.Call
- type MockOpenIDConnectRequestStorage
- func (m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(ctx context.Context, authorizeCode string, requester oauth2.Requester) error
- func (m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(ctx context.Context, authorizeCode string) error
- func (m *MockOpenIDConnectRequestStorage) EXPECT() *MockOpenIDConnectRequestStorageMockRecorder
- func (m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(ctx context.Context, authorizeCode string, requester oauth2.Requester) (oauth2.Requester, error)
- type MockOpenIDConnectRequestStorageMockRecorder
- func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(ctx, authorizeCode, requester any) *gomock.Call
- func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(ctx, authorizeCode any) *gomock.Call
- func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(ctx, authorizeCode, requester any) *gomock.Call
- type MockOpenIDConnectTokenStrategy
- type MockOpenIDConnectTokenStrategyMockRecorder
- type MockPKCERequestStorage
- func (m *MockPKCERequestStorage) CreatePKCERequestSession(ctx context.Context, signature string, requester oauth2.Requester) error
- func (m *MockPKCERequestStorage) DeletePKCERequestSession(ctx context.Context, signature string) error
- func (m *MockPKCERequestStorage) EXPECT() *MockPKCERequestStorageMockRecorder
- func (m *MockPKCERequestStorage) GetPKCERequestSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- type MockPKCERequestStorageMockRecorder
- func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(ctx, signature, requester any) *gomock.Call
- func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(ctx, signature any) *gomock.Call
- func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(ctx, signature, session any) *gomock.Call
- type MockPushedAuthorizeEndpointHandler
- type MockPushedAuthorizeEndpointHandlerMockRecorder
- type MockRFC7523KeyStorage
- func (m *MockRFC7523KeyStorage) EXPECT() *MockRFC7523KeyStorageMockRecorder
- func (m *MockRFC7523KeyStorage) GetPublicKey(ctx context.Context, issuer, subject, keyId string) (*jose.JSONWebKey, error)
- func (m *MockRFC7523KeyStorage) GetPublicKeyScopes(ctx context.Context, issuer, subject, keyId string) ([]string, error)
- func (m *MockRFC7523KeyStorage) GetPublicKeys(ctx context.Context, issuer, subject string) (*jose.JSONWebKeySet, error)
- func (m *MockRFC7523KeyStorage) IsJWTUsed(ctx context.Context, jti string) (bool, error)
- func (m *MockRFC7523KeyStorage) MarkJWTUsedForTime(ctx context.Context, jti string, exp time.Time) error
- type MockRFC7523KeyStorageMockRecorder
- func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKey(ctx, issuer, subject, keyId any) *gomock.Call
- func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes(ctx, issuer, subject, keyId any) *gomock.Call
- func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeys(ctx, issuer, subject any) *gomock.Call
- func (mr *MockRFC7523KeyStorageMockRecorder) IsJWTUsed(ctx, jti any) *gomock.Call
- func (mr *MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime(ctx, jti, exp any) *gomock.Call
- type MockRFC8628DeviceAuthorizeEndpointHandler
- type MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder
- type MockRFC8628Storage
- func (m *MockRFC8628Storage) CreateDeviceCodeSession(ctx context.Context, signature string, request oauth2.DeviceAuthorizeRequester) error
- func (m *MockRFC8628Storage) EXPECT() *MockRFC8628StorageMockRecorder
- func (m *MockRFC8628Storage) GetDeviceCodeSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.DeviceAuthorizeRequester, error)
- func (m *MockRFC8628Storage) GetDeviceCodeSessionByUserCode(ctx context.Context, signature string, session oauth2.Session) (oauth2.DeviceAuthorizeRequester, error)
- func (m *MockRFC8628Storage) InvalidateDeviceCodeSession(ctx context.Context, signature string) error
- func (m *MockRFC8628Storage) UpdateDeviceCodeSession(ctx context.Context, signature string, request oauth2.DeviceAuthorizeRequester) error
- type MockRFC8628StorageMockRecorder
- func (mr *MockRFC8628StorageMockRecorder) CreateDeviceCodeSession(ctx, signature, request any) *gomock.Call
- func (mr *MockRFC8628StorageMockRecorder) GetDeviceCodeSession(ctx, signature, session any) *gomock.Call
- func (mr *MockRFC8628StorageMockRecorder) GetDeviceCodeSessionByUserCode(ctx, signature, session any) *gomock.Call
- func (mr *MockRFC8628StorageMockRecorder) InvalidateDeviceCodeSession(ctx, signature any) *gomock.Call
- func (mr *MockRFC8628StorageMockRecorder) UpdateDeviceCodeSession(ctx, signature, request any) *gomock.Call
- type MockRFC8628UserAuthorizeEndpointHandler
- func (m *MockRFC8628UserAuthorizeEndpointHandler) EXPECT() *MockRFC8628UserAuthorizeEndpointHandlerMockRecorder
- func (m *MockRFC8628UserAuthorizeEndpointHandler) HandleRFC8628UserAuthorizeEndpointRequest(ctx context.Context, request oauth2.DeviceAuthorizeRequester) error
- func (m *MockRFC8628UserAuthorizeEndpointHandler) PopulateRFC8628UserAuthorizeEndpointResponse(ctx context.Context, requester oauth2.DeviceAuthorizeRequester, ...) error
- type MockRFC8628UserAuthorizeEndpointHandlerMockRecorder
- type MockRefreshTokenStorage
- func (m *MockRefreshTokenStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockRefreshTokenStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
- func (m *MockRefreshTokenStorage) EXPECT() *MockRefreshTokenStorageMockRecorder
- func (m *MockRefreshTokenStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- type MockRefreshTokenStorageMockRecorder
- func (mr *MockRefreshTokenStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockRefreshTokenStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockRefreshTokenStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
- type MockRefreshTokenStrategy
- func (m *MockRefreshTokenStrategy) EXPECT() *MockRefreshTokenStrategyMockRecorder
- func (m *MockRefreshTokenStrategy) GenerateRefreshToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
- func (m *MockRefreshTokenStrategy) RefreshTokenSignature(ctx context.Context, token string) string
- func (m *MockRefreshTokenStrategy) ValidateRefreshToken(ctx context.Context, requester oauth2.Requester, token string) error
- type MockRefreshTokenStrategyMockRecorder
- func (mr *MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken(ctx, requester any) *gomock.Call
- func (mr *MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature(ctx, token any) *gomock.Call
- func (mr *MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken(ctx, requester, token any) *gomock.Call
- type MockRequester
- func (m *MockRequester) AppendRequestedScope(scope string)
- func (m *MockRequester) EXPECT() *MockRequesterMockRecorder
- func (m *MockRequester) GetClient() oauth2.Client
- func (m *MockRequester) GetGrantedAudience() oauth2.Arguments
- func (m *MockRequester) GetGrantedScopes() oauth2.Arguments
- func (m *MockRequester) GetID() string
- func (m *MockRequester) GetRequestForm() url.Values
- func (m *MockRequester) GetRequestedAt() time.Time
- func (m *MockRequester) GetRequestedAudience() oauth2.Arguments
- func (m *MockRequester) GetRequestedScopes() oauth2.Arguments
- func (m *MockRequester) GetSession() oauth2.Session
- func (m *MockRequester) GrantAudience(audience string)
- func (m *MockRequester) GrantScope(scope string)
- func (m *MockRequester) Merge(requester oauth2.Requester)
- func (m *MockRequester) Sanitize(allowedParameters []string) oauth2.Requester
- func (m *MockRequester) SetID(id string)
- func (m *MockRequester) SetRequestedAudience(audience oauth2.Arguments)
- func (m *MockRequester) SetRequestedScopes(scopes oauth2.Arguments)
- func (m *MockRequester) SetSession(session oauth2.Session)
- type MockRequesterMockRecorder
- func (mr *MockRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
- func (mr *MockRequesterMockRecorder) GetClient() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetGrantedAudience() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetGrantedScopes() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetID() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetRequestForm() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetRequestedAt() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetRequestedAudience() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetRequestedScopes() *gomock.Call
- func (mr *MockRequesterMockRecorder) GetSession() *gomock.Call
- func (mr *MockRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
- func (mr *MockRequesterMockRecorder) GrantScope(scope any) *gomock.Call
- func (mr *MockRequesterMockRecorder) Merge(requester any) *gomock.Call
- func (mr *MockRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
- func (mr *MockRequesterMockRecorder) SetID(id any) *gomock.Call
- func (mr *MockRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
- func (mr *MockRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
- func (mr *MockRequesterMockRecorder) SetSession(session any) *gomock.Call
- type MockResourceOwnerPasswordCredentialsGrantStorage
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(ctx context.Context, name, secret string) error
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(ctx, name, secret any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
- func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
- type MockResponseWriter
- type MockResponseWriterMockRecorder
- type MockRevocationHandler
- type MockRevocationHandlerMockRecorder
- type MockStorage
- func (m *MockStorage) ClientAssertionJWTValid(ctx context.Context, jti string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetClient(ctx context.Context, id string) (oauth2.Client, error)
- func (m *MockStorage) SetClientAssertionJWT(ctx context.Context, jti string, exp time.Time) error
- type MockStorageMockRecorder
- type MockTokenEndpointHandler
- func (m *MockTokenEndpointHandler) CanHandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) bool
- func (m *MockTokenEndpointHandler) CanSkipClientAuth(ctx context.Context, requester oauth2.AccessRequester) bool
- func (m *MockTokenEndpointHandler) EXPECT() *MockTokenEndpointHandlerMockRecorder
- func (m *MockTokenEndpointHandler) HandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) error
- func (m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(ctx context.Context, requester oauth2.AccessRequester, ...) error
- type MockTokenEndpointHandlerMockRecorder
- func (mr *MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(ctx, requester any) *gomock.Call
- func (mr *MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth(ctx, requester any) *gomock.Call
- func (mr *MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest(ctx, requester any) *gomock.Call
- func (mr *MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse(ctx, requester, responder any) *gomock.Call
- type MockTokenIntrospector
- type MockTokenIntrospectorMockRecorder
- type MockTokenRevocationStorage
- func (m *MockTokenRevocationStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
- func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
- func (m *MockTokenRevocationStorage) EXPECT() *MockTokenRevocationStorageMockRecorder
- func (m *MockTokenRevocationStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockTokenRevocationStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
- func (m *MockTokenRevocationStorage) RevokeAccessToken(ctx context.Context, requestID string) error
- func (m *MockTokenRevocationStorage) RevokeRefreshToken(ctx context.Context, requestID string) error
- func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(ctx context.Context, requestID, signature string) error
- type MockTokenRevocationStorageMockRecorder
- func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(ctx, requestID any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(ctx, requestID any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(ctx, requestID, signature any) *gomock.Call
- type MockTransactional
- type MockTransactionalMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccessRequester ¶
type MockAccessRequester struct {
// contains filtered or unexported fields
}
MockAccessRequester is a mock of AccessRequester interface.
func NewMockAccessRequester ¶
func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester
NewMockAccessRequester creates a new mock instance.
func (*MockAccessRequester) AppendRequestedScope ¶
func (m *MockAccessRequester) AppendRequestedScope(scope string)
AppendRequestedScope mocks base method.
func (*MockAccessRequester) EXPECT ¶
func (m *MockAccessRequester) EXPECT() *MockAccessRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessRequester) GetClient ¶
func (m *MockAccessRequester) GetClient() oauth2.Client
GetClient mocks base method.
func (*MockAccessRequester) GetGrantTypes ¶
func (m *MockAccessRequester) GetGrantTypes() oauth2.Arguments
GetGrantTypes mocks base method.
func (*MockAccessRequester) GetGrantedAudience ¶
func (m *MockAccessRequester) GetGrantedAudience() oauth2.Arguments
GetGrantedAudience mocks base method.
func (*MockAccessRequester) GetGrantedScopes ¶
func (m *MockAccessRequester) GetGrantedScopes() oauth2.Arguments
GetGrantedScopes mocks base method.
func (*MockAccessRequester) GetID ¶
func (m *MockAccessRequester) GetID() string
GetID mocks base method.
func (*MockAccessRequester) GetRequestForm ¶
func (m *MockAccessRequester) GetRequestForm() url.Values
GetRequestForm mocks base method.
func (*MockAccessRequester) GetRequestedAt ¶
func (m *MockAccessRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method.
func (*MockAccessRequester) GetRequestedAudience ¶
func (m *MockAccessRequester) GetRequestedAudience() oauth2.Arguments
GetRequestedAudience mocks base method.
func (*MockAccessRequester) GetRequestedScopes ¶
func (m *MockAccessRequester) GetRequestedScopes() oauth2.Arguments
GetRequestedScopes mocks base method.
func (*MockAccessRequester) GetSession ¶
func (m *MockAccessRequester) GetSession() oauth2.Session
GetSession mocks base method.
func (*MockAccessRequester) GrantAudience ¶
func (m *MockAccessRequester) GrantAudience(audience string)
GrantAudience mocks base method.
func (*MockAccessRequester) GrantScope ¶
func (m *MockAccessRequester) GrantScope(scope string)
GrantScope mocks base method.
func (*MockAccessRequester) Merge ¶
func (m *MockAccessRequester) Merge(requester oauth2.Requester)
Merge mocks base method.
func (*MockAccessRequester) Sanitize ¶
func (m *MockAccessRequester) Sanitize(allowedParameters []string) oauth2.Requester
Sanitize mocks base method.
func (*MockAccessRequester) SetID ¶
func (m *MockAccessRequester) SetID(id string)
SetID mocks base method.
func (*MockAccessRequester) SetRequestedAudience ¶
func (m *MockAccessRequester) SetRequestedAudience(audience oauth2.Arguments)
SetRequestedAudience mocks base method.
func (*MockAccessRequester) SetRequestedScopes ¶
func (m *MockAccessRequester) SetRequestedScopes(scopes oauth2.Arguments)
SetRequestedScopes mocks base method.
func (*MockAccessRequester) SetSession ¶
func (m *MockAccessRequester) SetSession(session oauth2.Session)
SetSession mocks base method.
type MockAccessRequesterMockRecorder ¶
type MockAccessRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessRequesterMockRecorder is the mock recorder for MockAccessRequester.
func (*MockAccessRequesterMockRecorder) AppendRequestedScope ¶
func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope.
func (*MockAccessRequesterMockRecorder) GetClient ¶
func (mr *MockAccessRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockAccessRequesterMockRecorder) GetGrantTypes ¶
func (mr *MockAccessRequesterMockRecorder) GetGrantTypes() *gomock.Call
GetGrantTypes indicates an expected call of GetGrantTypes.
func (*MockAccessRequesterMockRecorder) GetGrantedAudience ¶
func (mr *MockAccessRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience.
func (*MockAccessRequesterMockRecorder) GetGrantedScopes ¶
func (mr *MockAccessRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes.
func (*MockAccessRequesterMockRecorder) GetID ¶
func (mr *MockAccessRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockAccessRequesterMockRecorder) GetRequestForm ¶
func (mr *MockAccessRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm.
func (*MockAccessRequesterMockRecorder) GetRequestedAt ¶
func (mr *MockAccessRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt.
func (*MockAccessRequesterMockRecorder) GetRequestedAudience ¶
func (mr *MockAccessRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience.
func (*MockAccessRequesterMockRecorder) GetRequestedScopes ¶
func (mr *MockAccessRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes.
func (*MockAccessRequesterMockRecorder) GetSession ¶
func (mr *MockAccessRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockAccessRequesterMockRecorder) GrantAudience ¶
func (mr *MockAccessRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
GrantAudience indicates an expected call of GrantAudience.
func (*MockAccessRequesterMockRecorder) GrantScope ¶
func (mr *MockAccessRequesterMockRecorder) GrantScope(scope any) *gomock.Call
GrantScope indicates an expected call of GrantScope.
func (*MockAccessRequesterMockRecorder) Merge ¶
func (mr *MockAccessRequesterMockRecorder) Merge(requester any) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockAccessRequesterMockRecorder) Sanitize ¶
func (mr *MockAccessRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
Sanitize indicates an expected call of Sanitize.
func (*MockAccessRequesterMockRecorder) SetID ¶
func (mr *MockAccessRequesterMockRecorder) SetID(id any) *gomock.Call
SetID indicates an expected call of SetID.
func (*MockAccessRequesterMockRecorder) SetRequestedAudience ¶
func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience.
func (*MockAccessRequesterMockRecorder) SetRequestedScopes ¶
func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes.
func (*MockAccessRequesterMockRecorder) SetSession ¶
func (mr *MockAccessRequesterMockRecorder) SetSession(session any) *gomock.Call
SetSession indicates an expected call of SetSession.
type MockAccessResponder ¶
type MockAccessResponder struct {
// contains filtered or unexported fields
}
MockAccessResponder is a mock of AccessResponder interface.
func NewMockAccessResponder ¶
func NewMockAccessResponder(ctrl *gomock.Controller) *MockAccessResponder
NewMockAccessResponder creates a new mock instance.
func (*MockAccessResponder) EXPECT ¶
func (m *MockAccessResponder) EXPECT() *MockAccessResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessResponder) GetAccessToken ¶
func (m *MockAccessResponder) GetAccessToken() string
GetAccessToken mocks base method.
func (*MockAccessResponder) GetExtra ¶
func (m *MockAccessResponder) GetExtra(key string) any
GetExtra mocks base method.
func (*MockAccessResponder) GetTokenType ¶
func (m *MockAccessResponder) GetTokenType() string
GetTokenType mocks base method.
func (*MockAccessResponder) SetAccessToken ¶
func (m *MockAccessResponder) SetAccessToken(token string)
SetAccessToken mocks base method.
func (*MockAccessResponder) SetExpiresIn ¶
func (m *MockAccessResponder) SetExpiresIn(arg0 time.Duration)
SetExpiresIn mocks base method.
func (*MockAccessResponder) SetExtra ¶
func (m *MockAccessResponder) SetExtra(key string, value any)
SetExtra mocks base method.
func (*MockAccessResponder) SetScopes ¶
func (m *MockAccessResponder) SetScopes(scopes oauth2.Arguments)
SetScopes mocks base method.
func (*MockAccessResponder) SetTokenType ¶
func (m *MockAccessResponder) SetTokenType(tokenType string)
SetTokenType mocks base method.
func (*MockAccessResponder) ToMap ¶
func (m *MockAccessResponder) ToMap() map[string]any
ToMap mocks base method.
type MockAccessResponderMockRecorder ¶
type MockAccessResponderMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessResponderMockRecorder is the mock recorder for MockAccessResponder.
func (*MockAccessResponderMockRecorder) GetAccessToken ¶
func (mr *MockAccessResponderMockRecorder) GetAccessToken() *gomock.Call
GetAccessToken indicates an expected call of GetAccessToken.
func (*MockAccessResponderMockRecorder) GetExtra ¶
func (mr *MockAccessResponderMockRecorder) GetExtra(key any) *gomock.Call
GetExtra indicates an expected call of GetExtra.
func (*MockAccessResponderMockRecorder) GetTokenType ¶
func (mr *MockAccessResponderMockRecorder) GetTokenType() *gomock.Call
GetTokenType indicates an expected call of GetTokenType.
func (*MockAccessResponderMockRecorder) SetAccessToken ¶
func (mr *MockAccessResponderMockRecorder) SetAccessToken(token any) *gomock.Call
SetAccessToken indicates an expected call of SetAccessToken.
func (*MockAccessResponderMockRecorder) SetExpiresIn ¶
func (mr *MockAccessResponderMockRecorder) SetExpiresIn(arg0 any) *gomock.Call
SetExpiresIn indicates an expected call of SetExpiresIn.
func (*MockAccessResponderMockRecorder) SetExtra ¶
func (mr *MockAccessResponderMockRecorder) SetExtra(key, value any) *gomock.Call
SetExtra indicates an expected call of SetExtra.
func (*MockAccessResponderMockRecorder) SetScopes ¶
func (mr *MockAccessResponderMockRecorder) SetScopes(scopes any) *gomock.Call
SetScopes indicates an expected call of SetScopes.
func (*MockAccessResponderMockRecorder) SetTokenType ¶
func (mr *MockAccessResponderMockRecorder) SetTokenType(tokenType any) *gomock.Call
SetTokenType indicates an expected call of SetTokenType.
func (*MockAccessResponderMockRecorder) ToMap ¶
func (mr *MockAccessResponderMockRecorder) ToMap() *gomock.Call
ToMap indicates an expected call of ToMap.
type MockAccessTokenStorage ¶
type MockAccessTokenStorage struct {
// contains filtered or unexported fields
}
MockAccessTokenStorage is a mock of AccessTokenStorage interface.
func NewMockAccessTokenStorage ¶
func NewMockAccessTokenStorage(ctrl *gomock.Controller) *MockAccessTokenStorage
NewMockAccessTokenStorage creates a new mock instance.
func (*MockAccessTokenStorage) CreateAccessTokenSession ¶
func (m *MockAccessTokenStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockAccessTokenStorage) DeleteAccessTokenSession ¶
func (m *MockAccessTokenStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
DeleteAccessTokenSession mocks base method.
func (*MockAccessTokenStorage) EXPECT ¶
func (m *MockAccessTokenStorage) EXPECT() *MockAccessTokenStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAccessTokenStorageMockRecorder ¶
type MockAccessTokenStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessTokenStorageMockRecorder is the mock recorder for MockAccessTokenStorage.
func (*MockAccessTokenStorageMockRecorder) CreateAccessTokenSession ¶
func (mr *MockAccessTokenStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession ¶
func (mr *MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockAccessTokenStorageMockRecorder) GetAccessTokenSession ¶
func (mr *MockAccessTokenStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
type MockAccessTokenStrategy ¶
type MockAccessTokenStrategy struct {
// contains filtered or unexported fields
}
MockAccessTokenStrategy is a mock of AccessTokenStrategy interface.
func NewMockAccessTokenStrategy ¶
func NewMockAccessTokenStrategy(ctrl *gomock.Controller) *MockAccessTokenStrategy
NewMockAccessTokenStrategy creates a new mock instance.
func (*MockAccessTokenStrategy) AccessTokenSignature ¶
func (m *MockAccessTokenStrategy) AccessTokenSignature(ctx context.Context, token string) string
AccessTokenSignature mocks base method.
func (*MockAccessTokenStrategy) EXPECT ¶
func (m *MockAccessTokenStrategy) EXPECT() *MockAccessTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessTokenStrategy) GenerateAccessToken ¶
func (m *MockAccessTokenStrategy) GenerateAccessToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateAccessToken mocks base method.
func (*MockAccessTokenStrategy) ValidateAccessToken ¶
func (m *MockAccessTokenStrategy) ValidateAccessToken(ctx context.Context, requester oauth2.Requester, token string) error
ValidateAccessToken mocks base method.
type MockAccessTokenStrategyMockRecorder ¶
type MockAccessTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessTokenStrategyMockRecorder is the mock recorder for MockAccessTokenStrategy.
func (*MockAccessTokenStrategyMockRecorder) AccessTokenSignature ¶
func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(ctx, token any) *gomock.Call
AccessTokenSignature indicates an expected call of AccessTokenSignature.
func (*MockAccessTokenStrategyMockRecorder) GenerateAccessToken ¶
func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(ctx, requester any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
func (*MockAccessTokenStrategyMockRecorder) ValidateAccessToken ¶
func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(ctx, requester, token any) *gomock.Call
ValidateAccessToken indicates an expected call of ValidateAccessToken.
type MockAuthorizeCodeStorage ¶
type MockAuthorizeCodeStorage struct {
// contains filtered or unexported fields
}
MockAuthorizeCodeStorage is a mock of AuthorizeCodeStorage interface.
func NewMockAuthorizeCodeStorage ¶
func NewMockAuthorizeCodeStorage(ctrl *gomock.Controller) *MockAuthorizeCodeStorage
NewMockAuthorizeCodeStorage creates a new mock instance.
func (*MockAuthorizeCodeStorage) CreateAuthorizeCodeSession ¶
func (m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(ctx context.Context, code string, request oauth2.Requester) error
CreateAuthorizeCodeSession mocks base method.
func (*MockAuthorizeCodeStorage) EXPECT ¶
func (m *MockAuthorizeCodeStorage) EXPECT() *MockAuthorizeCodeStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizeCodeStorage) GetAuthorizeCodeSession ¶
func (m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(ctx context.Context, code string, session oauth2.Session) (oauth2.Requester, error)
GetAuthorizeCodeSession mocks base method.
func (*MockAuthorizeCodeStorage) InvalidateAuthorizeCodeSession ¶
func (m *MockAuthorizeCodeStorage) InvalidateAuthorizeCodeSession(ctx context.Context, code string) error
InvalidateAuthorizeCodeSession mocks base method.
type MockAuthorizeCodeStorageMockRecorder ¶
type MockAuthorizeCodeStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizeCodeStorageMockRecorder is the mock recorder for MockAuthorizeCodeStorage.
func (*MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession ¶
func (mr *MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession(ctx, code, request any) *gomock.Call
CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession.
func (*MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession ¶
func (mr *MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession(ctx, code, session any) *gomock.Call
GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession.
func (*MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession ¶
func (mr *MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession(ctx, code any) *gomock.Call
InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession.
type MockAuthorizeCodeStrategy ¶
type MockAuthorizeCodeStrategy struct {
// contains filtered or unexported fields
}
MockAuthorizeCodeStrategy is a mock of AuthorizeCodeStrategy interface.
func NewMockAuthorizeCodeStrategy ¶
func NewMockAuthorizeCodeStrategy(ctrl *gomock.Controller) *MockAuthorizeCodeStrategy
NewMockAuthorizeCodeStrategy creates a new mock instance.
func (*MockAuthorizeCodeStrategy) AuthorizeCodeSignature ¶
func (m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string
AuthorizeCodeSignature mocks base method.
func (*MockAuthorizeCodeStrategy) EXPECT ¶
func (m *MockAuthorizeCodeStrategy) EXPECT() *MockAuthorizeCodeStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizeCodeStrategy) GenerateAuthorizeCode ¶
func (m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateAuthorizeCode mocks base method.
func (*MockAuthorizeCodeStrategy) ValidateAuthorizeCode ¶
func (m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(ctx context.Context, requester oauth2.Requester, token string) error
ValidateAuthorizeCode mocks base method.
type MockAuthorizeCodeStrategyMockRecorder ¶
type MockAuthorizeCodeStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizeCodeStrategyMockRecorder is the mock recorder for MockAuthorizeCodeStrategy.
func (*MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature ¶
func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(ctx, token any) *gomock.Call
AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature.
func (*MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode ¶
func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(ctx, requester any) *gomock.Call
GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode.
func (*MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode ¶
func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(ctx, requester, token any) *gomock.Call
ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode.
type MockAuthorizeEndpointHandler ¶
type MockAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
MockAuthorizeEndpointHandler is a mock of AuthorizeEndpointHandler interface.
func NewMockAuthorizeEndpointHandler ¶
func NewMockAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockAuthorizeEndpointHandler
NewMockAuthorizeEndpointHandler creates a new mock instance.
func (*MockAuthorizeEndpointHandler) EXPECT ¶
func (m *MockAuthorizeEndpointHandler) EXPECT() *MockAuthorizeEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest ¶
func (m *MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest(ctx context.Context, requester oauth2.AuthorizeRequester, responder oauth2.AuthorizeResponder) error
HandleAuthorizeEndpointRequest mocks base method.
type MockAuthorizeEndpointHandlerMockRecorder ¶
type MockAuthorizeEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizeEndpointHandlerMockRecorder is the mock recorder for MockAuthorizeEndpointHandler.
func (*MockAuthorizeEndpointHandlerMockRecorder) HandleAuthorizeEndpointRequest ¶
func (mr *MockAuthorizeEndpointHandlerMockRecorder) HandleAuthorizeEndpointRequest(ctx, requester, responder any) *gomock.Call
HandleAuthorizeEndpointRequest indicates an expected call of HandleAuthorizeEndpointRequest.
type MockAuthorizeRequester ¶
type MockAuthorizeRequester struct {
// contains filtered or unexported fields
}
MockAuthorizeRequester is a mock of AuthorizeRequester interface.
func NewMockAuthorizeRequester ¶
func NewMockAuthorizeRequester(ctrl *gomock.Controller) *MockAuthorizeRequester
NewMockAuthorizeRequester creates a new mock instance.
func (*MockAuthorizeRequester) AppendRequestedScope ¶
func (m *MockAuthorizeRequester) AppendRequestedScope(scope string)
AppendRequestedScope mocks base method.
func (*MockAuthorizeRequester) DidHandleAllResponseTypes ¶
func (m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool
DidHandleAllResponseTypes mocks base method.
func (*MockAuthorizeRequester) EXPECT ¶
func (m *MockAuthorizeRequester) EXPECT() *MockAuthorizeRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizeRequester) GetClient ¶
func (m *MockAuthorizeRequester) GetClient() oauth2.Client
GetClient mocks base method.
func (*MockAuthorizeRequester) GetDefaultResponseMode ¶
func (m *MockAuthorizeRequester) GetDefaultResponseMode() oauth2.ResponseModeType
GetDefaultResponseMode mocks base method.
func (*MockAuthorizeRequester) GetGrantedAudience ¶
func (m *MockAuthorizeRequester) GetGrantedAudience() oauth2.Arguments
GetGrantedAudience mocks base method.
func (*MockAuthorizeRequester) GetGrantedScopes ¶
func (m *MockAuthorizeRequester) GetGrantedScopes() oauth2.Arguments
GetGrantedScopes mocks base method.
func (*MockAuthorizeRequester) GetID ¶
func (m *MockAuthorizeRequester) GetID() string
GetID mocks base method.
func (*MockAuthorizeRequester) GetRedirectURI ¶
func (m *MockAuthorizeRequester) GetRedirectURI() *url.URL
GetRedirectURI mocks base method.
func (*MockAuthorizeRequester) GetRequestForm ¶
func (m *MockAuthorizeRequester) GetRequestForm() url.Values
GetRequestForm mocks base method.
func (*MockAuthorizeRequester) GetRequestedAt ¶
func (m *MockAuthorizeRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method.
func (*MockAuthorizeRequester) GetRequestedAudience ¶
func (m *MockAuthorizeRequester) GetRequestedAudience() oauth2.Arguments
GetRequestedAudience mocks base method.
func (*MockAuthorizeRequester) GetRequestedScopes ¶
func (m *MockAuthorizeRequester) GetRequestedScopes() oauth2.Arguments
GetRequestedScopes mocks base method.
func (*MockAuthorizeRequester) GetResponseMode ¶
func (m *MockAuthorizeRequester) GetResponseMode() oauth2.ResponseModeType
GetResponseMode mocks base method.
func (*MockAuthorizeRequester) GetResponseTypes ¶
func (m *MockAuthorizeRequester) GetResponseTypes() oauth2.Arguments
GetResponseTypes mocks base method.
func (*MockAuthorizeRequester) GetSession ¶
func (m *MockAuthorizeRequester) GetSession() oauth2.Session
GetSession mocks base method.
func (*MockAuthorizeRequester) GetState ¶
func (m *MockAuthorizeRequester) GetState() string
GetState mocks base method.
func (*MockAuthorizeRequester) GrantAudience ¶
func (m *MockAuthorizeRequester) GrantAudience(audience string)
GrantAudience mocks base method.
func (*MockAuthorizeRequester) GrantScope ¶
func (m *MockAuthorizeRequester) GrantScope(scope string)
GrantScope mocks base method.
func (*MockAuthorizeRequester) IsRedirectURIValid ¶
func (m *MockAuthorizeRequester) IsRedirectURIValid() bool
IsRedirectURIValid mocks base method.
func (*MockAuthorizeRequester) Merge ¶
func (m *MockAuthorizeRequester) Merge(requester oauth2.Requester)
Merge mocks base method.
func (*MockAuthorizeRequester) Sanitize ¶
func (m *MockAuthorizeRequester) Sanitize(allowedParameters []string) oauth2.Requester
Sanitize mocks base method.
func (*MockAuthorizeRequester) SetDefaultResponseMode ¶
func (m *MockAuthorizeRequester) SetDefaultResponseMode(responseMode oauth2.ResponseModeType)
SetDefaultResponseMode mocks base method.
func (*MockAuthorizeRequester) SetID ¶
func (m *MockAuthorizeRequester) SetID(id string)
SetID mocks base method.
func (*MockAuthorizeRequester) SetRequestedAudience ¶
func (m *MockAuthorizeRequester) SetRequestedAudience(audience oauth2.Arguments)
SetRequestedAudience mocks base method.
func (*MockAuthorizeRequester) SetRequestedScopes ¶
func (m *MockAuthorizeRequester) SetRequestedScopes(scopes oauth2.Arguments)
SetRequestedScopes mocks base method.
func (*MockAuthorizeRequester) SetResponseTypeHandled ¶
func (m *MockAuthorizeRequester) SetResponseTypeHandled(responseType string)
SetResponseTypeHandled mocks base method.
func (*MockAuthorizeRequester) SetSession ¶
func (m *MockAuthorizeRequester) SetSession(session oauth2.Session)
SetSession mocks base method.
type MockAuthorizeRequesterMockRecorder ¶
type MockAuthorizeRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizeRequesterMockRecorder is the mock recorder for MockAuthorizeRequester.
func (*MockAuthorizeRequesterMockRecorder) AppendRequestedScope ¶
func (mr *MockAuthorizeRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope.
func (*MockAuthorizeRequesterMockRecorder) DidHandleAllResponseTypes ¶
func (mr *MockAuthorizeRequesterMockRecorder) DidHandleAllResponseTypes() *gomock.Call
DidHandleAllResponseTypes indicates an expected call of DidHandleAllResponseTypes.
func (*MockAuthorizeRequesterMockRecorder) GetClient ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockAuthorizeRequesterMockRecorder) GetDefaultResponseMode ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetDefaultResponseMode() *gomock.Call
GetDefaultResponseMode indicates an expected call of GetDefaultResponseMode.
func (*MockAuthorizeRequesterMockRecorder) GetGrantedAudience ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience.
func (*MockAuthorizeRequesterMockRecorder) GetGrantedScopes ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes.
func (*MockAuthorizeRequesterMockRecorder) GetID ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockAuthorizeRequesterMockRecorder) GetRedirectURI ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetRedirectURI() *gomock.Call
GetRedirectURI indicates an expected call of GetRedirectURI.
func (*MockAuthorizeRequesterMockRecorder) GetRequestForm ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm.
func (*MockAuthorizeRequesterMockRecorder) GetRequestedAt ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt.
func (*MockAuthorizeRequesterMockRecorder) GetRequestedAudience ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience.
func (*MockAuthorizeRequesterMockRecorder) GetRequestedScopes ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes.
func (*MockAuthorizeRequesterMockRecorder) GetResponseMode ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetResponseMode() *gomock.Call
GetResponseMode indicates an expected call of GetResponseMode.
func (*MockAuthorizeRequesterMockRecorder) GetResponseTypes ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetResponseTypes() *gomock.Call
GetResponseTypes indicates an expected call of GetResponseTypes.
func (*MockAuthorizeRequesterMockRecorder) GetSession ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockAuthorizeRequesterMockRecorder) GetState ¶
func (mr *MockAuthorizeRequesterMockRecorder) GetState() *gomock.Call
GetState indicates an expected call of GetState.
func (*MockAuthorizeRequesterMockRecorder) GrantAudience ¶
func (mr *MockAuthorizeRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
GrantAudience indicates an expected call of GrantAudience.
func (*MockAuthorizeRequesterMockRecorder) GrantScope ¶
func (mr *MockAuthorizeRequesterMockRecorder) GrantScope(scope any) *gomock.Call
GrantScope indicates an expected call of GrantScope.
func (*MockAuthorizeRequesterMockRecorder) IsRedirectURIValid ¶
func (mr *MockAuthorizeRequesterMockRecorder) IsRedirectURIValid() *gomock.Call
IsRedirectURIValid indicates an expected call of IsRedirectURIValid.
func (*MockAuthorizeRequesterMockRecorder) Merge ¶
func (mr *MockAuthorizeRequesterMockRecorder) Merge(requester any) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockAuthorizeRequesterMockRecorder) Sanitize ¶
func (mr *MockAuthorizeRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
Sanitize indicates an expected call of Sanitize.
func (*MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode(responseMode any) *gomock.Call
SetDefaultResponseMode indicates an expected call of SetDefaultResponseMode.
func (*MockAuthorizeRequesterMockRecorder) SetID ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetID(id any) *gomock.Call
SetID indicates an expected call of SetID.
func (*MockAuthorizeRequesterMockRecorder) SetRequestedAudience ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience.
func (*MockAuthorizeRequesterMockRecorder) SetRequestedScopes ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes.
func (*MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled(responseType any) *gomock.Call
SetResponseTypeHandled indicates an expected call of SetResponseTypeHandled.
func (*MockAuthorizeRequesterMockRecorder) SetSession ¶
func (mr *MockAuthorizeRequesterMockRecorder) SetSession(session any) *gomock.Call
SetSession indicates an expected call of SetSession.
type MockAuthorizeResponder ¶
type MockAuthorizeResponder struct {
// contains filtered or unexported fields
}
MockAuthorizeResponder is a mock of AuthorizeResponder interface.
func NewMockAuthorizeResponder ¶
func NewMockAuthorizeResponder(ctrl *gomock.Controller) *MockAuthorizeResponder
NewMockAuthorizeResponder creates a new mock instance.
func (*MockAuthorizeResponder) AddHeader ¶
func (m *MockAuthorizeResponder) AddHeader(key, value string)
AddHeader mocks base method.
func (*MockAuthorizeResponder) AddParameter ¶
func (m *MockAuthorizeResponder) AddParameter(key, value string)
AddParameter mocks base method.
func (*MockAuthorizeResponder) EXPECT ¶
func (m *MockAuthorizeResponder) EXPECT() *MockAuthorizeResponderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizeResponder) GetCode ¶
func (m *MockAuthorizeResponder) GetCode() string
GetCode mocks base method.
func (*MockAuthorizeResponder) GetHeader ¶
func (m *MockAuthorizeResponder) GetHeader() http.Header
GetHeader mocks base method.
func (*MockAuthorizeResponder) GetParameters ¶
func (m *MockAuthorizeResponder) GetParameters() url.Values
GetParameters mocks base method.
type MockAuthorizeResponderMockRecorder ¶
type MockAuthorizeResponderMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizeResponderMockRecorder is the mock recorder for MockAuthorizeResponder.
func (*MockAuthorizeResponderMockRecorder) AddHeader ¶
func (mr *MockAuthorizeResponderMockRecorder) AddHeader(key, value any) *gomock.Call
AddHeader indicates an expected call of AddHeader.
func (*MockAuthorizeResponderMockRecorder) AddParameter ¶
func (mr *MockAuthorizeResponderMockRecorder) AddParameter(key, value any) *gomock.Call
AddParameter indicates an expected call of AddParameter.
func (*MockAuthorizeResponderMockRecorder) GetCode ¶
func (mr *MockAuthorizeResponderMockRecorder) GetCode() *gomock.Call
GetCode indicates an expected call of GetCode.
func (*MockAuthorizeResponderMockRecorder) GetHeader ¶
func (mr *MockAuthorizeResponderMockRecorder) GetHeader() *gomock.Call
GetHeader indicates an expected call of GetHeader.
func (*MockAuthorizeResponderMockRecorder) GetParameters ¶
func (mr *MockAuthorizeResponderMockRecorder) GetParameters() *gomock.Call
GetParameters indicates an expected call of GetParameters.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetAudience ¶
func (m *MockClient) GetAudience() oauth2.Arguments
GetAudience mocks base method.
func (*MockClient) GetClientSecret ¶
func (m *MockClient) GetClientSecret() oauth2.ClientSecret
GetClientSecret mocks base method.
func (*MockClient) GetGrantTypes ¶
func (m *MockClient) GetGrantTypes() oauth2.Arguments
GetGrantTypes mocks base method.
func (*MockClient) GetRedirectURIs ¶
func (m *MockClient) GetRedirectURIs() []string
GetRedirectURIs mocks base method.
func (*MockClient) GetResponseTypes ¶
func (m *MockClient) GetResponseTypes() oauth2.Arguments
GetResponseTypes mocks base method.
func (*MockClient) GetScopes ¶
func (m *MockClient) GetScopes() oauth2.Arguments
GetScopes mocks base method.
type MockClientCredentialsGrantStorage ¶
type MockClientCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
MockClientCredentialsGrantStorage is a mock of ClientCredentialsGrantStorage interface.
func NewMockClientCredentialsGrantStorage ¶
func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage
NewMockClientCredentialsGrantStorage creates a new mock instance.
func (*MockClientCredentialsGrantStorage) CreateAccessTokenSession ¶
func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockClientCredentialsGrantStorage) DeleteAccessTokenSession ¶
func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
DeleteAccessTokenSession mocks base method.
func (*MockClientCredentialsGrantStorage) EXPECT ¶
func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientCredentialsGrantStorageMockRecorder ¶
type MockClientCredentialsGrantStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockClientCredentialsGrantStorageMockRecorder is the mock recorder for MockClientCredentialsGrantStorage.
func (*MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession ¶
func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession ¶
func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession ¶
func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) GetAudience ¶
func (mr *MockClientMockRecorder) GetAudience() *gomock.Call
GetAudience indicates an expected call of GetAudience.
func (*MockClientMockRecorder) GetClientSecret ¶
func (mr *MockClientMockRecorder) GetClientSecret() *gomock.Call
GetClientSecret indicates an expected call of GetClientSecret.
func (*MockClientMockRecorder) GetGrantTypes ¶
func (mr *MockClientMockRecorder) GetGrantTypes() *gomock.Call
GetGrantTypes indicates an expected call of GetGrantTypes.
func (*MockClientMockRecorder) GetID ¶
func (mr *MockClientMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockClientMockRecorder) GetRedirectURIs ¶
func (mr *MockClientMockRecorder) GetRedirectURIs() *gomock.Call
GetRedirectURIs indicates an expected call of GetRedirectURIs.
func (*MockClientMockRecorder) GetResponseTypes ¶
func (mr *MockClientMockRecorder) GetResponseTypes() *gomock.Call
GetResponseTypes indicates an expected call of GetResponseTypes.
func (*MockClientMockRecorder) GetScopes ¶
func (mr *MockClientMockRecorder) GetScopes() *gomock.Call
GetScopes indicates an expected call of GetScopes.
func (*MockClientMockRecorder) IsPublic ¶
func (mr *MockClientMockRecorder) IsPublic() *gomock.Call
IsPublic indicates an expected call of IsPublic.
type MockClientSecret ¶
type MockClientSecret struct {
// contains filtered or unexported fields
}
MockClientSecret is a mock of ClientSecret interface.
func NewMockClientSecret ¶
func NewMockClientSecret(ctrl *gomock.Controller) *MockClientSecret
NewMockClientSecret creates a new mock instance.
func (*MockClientSecret) Compare ¶
func (m *MockClientSecret) Compare(ctx context.Context, secret []byte) error
Compare mocks base method.
func (*MockClientSecret) EXPECT ¶
func (m *MockClientSecret) EXPECT() *MockClientSecretMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientSecret) GetPlainTextValue ¶
func (m *MockClientSecret) GetPlainTextValue() ([]byte, error)
GetPlainTextValue mocks base method.
func (*MockClientSecret) IsPlainText ¶
func (m *MockClientSecret) IsPlainText() bool
IsPlainText mocks base method.
func (*MockClientSecret) Valid ¶ added in v0.1.10
func (m *MockClientSecret) Valid() bool
Valid mocks base method.
type MockClientSecretMockRecorder ¶
type MockClientSecretMockRecorder struct {
// contains filtered or unexported fields
}
MockClientSecretMockRecorder is the mock recorder for MockClientSecret.
func (*MockClientSecretMockRecorder) Compare ¶
func (mr *MockClientSecretMockRecorder) Compare(ctx, secret any) *gomock.Call
Compare indicates an expected call of Compare.
func (*MockClientSecretMockRecorder) GetPlainTextValue ¶
func (mr *MockClientSecretMockRecorder) GetPlainTextValue() *gomock.Call
GetPlainTextValue indicates an expected call of GetPlainTextValue.
func (*MockClientSecretMockRecorder) IsPlainText ¶
func (mr *MockClientSecretMockRecorder) IsPlainText() *gomock.Call
IsPlainText indicates an expected call of IsPlainText.
func (*MockClientSecretMockRecorder) Valid ¶ added in v0.1.10
func (mr *MockClientSecretMockRecorder) Valid() *gomock.Call
Valid indicates an expected call of Valid.
type MockCodeTokenEndpointHandler ¶
type MockCodeTokenEndpointHandler struct {
// contains filtered or unexported fields
}
MockCodeTokenEndpointHandler is a mock of CodeTokenEndpointHandler interface.
func NewMockCodeTokenEndpointHandler ¶
func NewMockCodeTokenEndpointHandler(ctrl *gomock.Controller) *MockCodeTokenEndpointHandler
NewMockCodeTokenEndpointHandler creates a new mock instance.
func (*MockCodeTokenEndpointHandler) CanHandleTokenEndpointRequest ¶
func (m *MockCodeTokenEndpointHandler) CanHandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) bool
CanHandleTokenEndpointRequest mocks base method.
func (*MockCodeTokenEndpointHandler) CanSkipClientAuth ¶
func (m *MockCodeTokenEndpointHandler) CanSkipClientAuth(ctx context.Context, requester oauth2.AccessRequester) bool
CanSkipClientAuth mocks base method.
func (*MockCodeTokenEndpointHandler) DeviceCodeSignature ¶
func (m *MockCodeTokenEndpointHandler) DeviceCodeSignature(ctx context.Context, code string) (string, error)
DeviceCodeSignature mocks base method.
func (*MockCodeTokenEndpointHandler) EXPECT ¶
func (m *MockCodeTokenEndpointHandler) EXPECT() *MockCodeTokenEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCodeTokenEndpointHandler) GetCodeAndSession ¶
func (m *MockCodeTokenEndpointHandler) GetCodeAndSession(ctx context.Context, request oauth2.AccessRequester) (string, string, oauth2.Requester, error)
GetCodeAndSession mocks base method.
func (*MockCodeTokenEndpointHandler) InvalidateSession ¶
func (m *MockCodeTokenEndpointHandler) InvalidateSession(ctx context.Context, signature string, authorizeRequest oauth2.Requester) error
InvalidateSession mocks base method.
func (*MockCodeTokenEndpointHandler) UpdateLastChecked ¶
func (m *MockCodeTokenEndpointHandler) UpdateLastChecked(ctx context.Context, request oauth2.AccessRequester, authorizeRequest oauth2.Requester) error
UpdateLastChecked mocks base method.
func (*MockCodeTokenEndpointHandler) ValidateCodeAndSession ¶
func (m *MockCodeTokenEndpointHandler) ValidateCodeAndSession(ctx context.Context, request oauth2.AccessRequester, authorizeRequest oauth2.Requester, code string) error
ValidateCodeAndSession mocks base method.
func (*MockCodeTokenEndpointHandler) ValidateGrantTypes ¶
func (m *MockCodeTokenEndpointHandler) ValidateGrantTypes(ctx context.Context, requester oauth2.AccessRequester) error
ValidateGrantTypes mocks base method.
type MockCodeTokenEndpointHandlerMockRecorder ¶
type MockCodeTokenEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockCodeTokenEndpointHandlerMockRecorder is the mock recorder for MockCodeTokenEndpointHandler.
func (*MockCodeTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(ctx, requester any) *gomock.Call
CanHandleTokenEndpointRequest indicates an expected call of CanHandleTokenEndpointRequest.
func (*MockCodeTokenEndpointHandlerMockRecorder) CanSkipClientAuth ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) CanSkipClientAuth(ctx, requester any) *gomock.Call
CanSkipClientAuth indicates an expected call of CanSkipClientAuth.
func (*MockCodeTokenEndpointHandlerMockRecorder) DeviceCodeSignature ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) DeviceCodeSignature(ctx, code any) *gomock.Call
DeviceCodeSignature indicates an expected call of DeviceCodeSignature.
func (*MockCodeTokenEndpointHandlerMockRecorder) GetCodeAndSession ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) GetCodeAndSession(ctx, request any) *gomock.Call
GetCodeAndSession indicates an expected call of GetCodeAndSession.
func (*MockCodeTokenEndpointHandlerMockRecorder) InvalidateSession ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) InvalidateSession(ctx, signature, authorizeRequest any) *gomock.Call
InvalidateSession indicates an expected call of InvalidateSession.
func (*MockCodeTokenEndpointHandlerMockRecorder) UpdateLastChecked ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) UpdateLastChecked(ctx, request, authorizeRequest any) *gomock.Call
UpdateLastChecked indicates an expected call of UpdateLastChecked.
func (*MockCodeTokenEndpointHandlerMockRecorder) ValidateCodeAndSession ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) ValidateCodeAndSession(ctx, request, authorizeRequest, code any) *gomock.Call
ValidateCodeAndSession indicates an expected call of ValidateCodeAndSession.
func (*MockCodeTokenEndpointHandlerMockRecorder) ValidateGrantTypes ¶
func (mr *MockCodeTokenEndpointHandlerMockRecorder) ValidateGrantTypes(ctx, requester any) *gomock.Call
ValidateGrantTypes indicates an expected call of ValidateGrantTypes.
type MockCoreStorage ¶
type MockCoreStorage struct {
// contains filtered or unexported fields
}
MockCoreStorage is a mock of CoreStorage interface.
func NewMockCoreStorage ¶
func NewMockCoreStorage(ctrl *gomock.Controller) *MockCoreStorage
NewMockCoreStorage creates a new mock instance.
func (*MockCoreStorage) CreateAccessTokenSession ¶
func (m *MockCoreStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockCoreStorage) CreateAuthorizeCodeSession ¶
func (m *MockCoreStorage) CreateAuthorizeCodeSession(ctx context.Context, code string, request oauth2.Requester) error
CreateAuthorizeCodeSession mocks base method.
func (*MockCoreStorage) CreateRefreshTokenSession ¶
func (m *MockCoreStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateRefreshTokenSession mocks base method.
func (*MockCoreStorage) DeleteAccessTokenSession ¶
func (m *MockCoreStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
DeleteAccessTokenSession mocks base method.
func (*MockCoreStorage) DeleteRefreshTokenSession ¶
func (m *MockCoreStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
DeleteRefreshTokenSession mocks base method.
func (*MockCoreStorage) EXPECT ¶
func (m *MockCoreStorage) EXPECT() *MockCoreStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreStorage) GetAccessTokenSession ¶
func (m *MockCoreStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
GetAccessTokenSession mocks base method.
func (*MockCoreStorage) GetAuthorizeCodeSession ¶
func (m *MockCoreStorage) GetAuthorizeCodeSession(ctx context.Context, code string, session oauth2.Session) (oauth2.Requester, error)
GetAuthorizeCodeSession mocks base method.
func (*MockCoreStorage) GetRefreshTokenSession ¶
func (m *MockCoreStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
GetRefreshTokenSession mocks base method.
func (*MockCoreStorage) InvalidateAuthorizeCodeSession ¶
func (m *MockCoreStorage) InvalidateAuthorizeCodeSession(ctx context.Context, code string) error
InvalidateAuthorizeCodeSession mocks base method.
type MockCoreStorageMockRecorder ¶
type MockCoreStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreStorageMockRecorder is the mock recorder for MockCoreStorage.
func (*MockCoreStorageMockRecorder) CreateAccessTokenSession ¶
func (mr *MockCoreStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockCoreStorageMockRecorder) CreateAuthorizeCodeSession ¶
func (mr *MockCoreStorageMockRecorder) CreateAuthorizeCodeSession(ctx, code, request any) *gomock.Call
CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession.
func (*MockCoreStorageMockRecorder) CreateRefreshTokenSession ¶
func (mr *MockCoreStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
func (*MockCoreStorageMockRecorder) DeleteAccessTokenSession ¶
func (mr *MockCoreStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockCoreStorageMockRecorder) DeleteRefreshTokenSession ¶
func (mr *MockCoreStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
func (*MockCoreStorageMockRecorder) GetAccessTokenSession ¶
func (mr *MockCoreStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
func (*MockCoreStorageMockRecorder) GetAuthorizeCodeSession ¶
func (mr *MockCoreStorageMockRecorder) GetAuthorizeCodeSession(ctx, code, session any) *gomock.Call
GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession.
func (*MockCoreStorageMockRecorder) GetRefreshTokenSession ¶
func (mr *MockCoreStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
func (*MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession ¶
func (mr *MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession(ctx, code any) *gomock.Call
InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession.
type MockCoreStrategy ¶
type MockCoreStrategy struct {
// contains filtered or unexported fields
}
MockCoreStrategy is a mock of CoreStrategy interface.
func NewMockCoreStrategy ¶
func NewMockCoreStrategy(ctrl *gomock.Controller) *MockCoreStrategy
NewMockCoreStrategy creates a new mock instance.
func (*MockCoreStrategy) AccessTokenSignature ¶
func (m *MockCoreStrategy) AccessTokenSignature(ctx context.Context, token string) string
AccessTokenSignature mocks base method.
func (*MockCoreStrategy) AuthorizeCodeSignature ¶
func (m *MockCoreStrategy) AuthorizeCodeSignature(ctx context.Context, token string) string
AuthorizeCodeSignature mocks base method.
func (*MockCoreStrategy) EXPECT ¶
func (m *MockCoreStrategy) EXPECT() *MockCoreStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreStrategy) GenerateAccessToken ¶
func (m *MockCoreStrategy) GenerateAccessToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateAccessToken mocks base method.
func (*MockCoreStrategy) GenerateAuthorizeCode ¶
func (m *MockCoreStrategy) GenerateAuthorizeCode(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateAuthorizeCode mocks base method.
func (*MockCoreStrategy) GenerateRFC8628DeviceCode ¶
GenerateRFC8628DeviceCode mocks base method.
func (*MockCoreStrategy) GenerateRFC8628UserCode ¶
GenerateRFC8628UserCode mocks base method.
func (*MockCoreStrategy) GenerateRefreshToken ¶
func (m *MockCoreStrategy) GenerateRefreshToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateRefreshToken mocks base method.
func (*MockCoreStrategy) RFC8628DeviceCodeSignature ¶
func (m *MockCoreStrategy) RFC8628DeviceCodeSignature(ctx context.Context, code string) (string, error)
RFC8628DeviceCodeSignature mocks base method.
func (*MockCoreStrategy) RFC8628UserCodeSignature ¶
func (m *MockCoreStrategy) RFC8628UserCodeSignature(ctx context.Context, code string) (string, error)
RFC8628UserCodeSignature mocks base method.
func (*MockCoreStrategy) RefreshTokenSignature ¶
func (m *MockCoreStrategy) RefreshTokenSignature(ctx context.Context, token string) string
RefreshTokenSignature mocks base method.
func (*MockCoreStrategy) ValidateAccessToken ¶
func (m *MockCoreStrategy) ValidateAccessToken(ctx context.Context, requester oauth2.Requester, token string) error
ValidateAccessToken mocks base method.
func (*MockCoreStrategy) ValidateAuthorizeCode ¶
func (m *MockCoreStrategy) ValidateAuthorizeCode(ctx context.Context, requester oauth2.Requester, token string) error
ValidateAuthorizeCode mocks base method.
func (*MockCoreStrategy) ValidateRFC8628DeviceCode ¶
func (m *MockCoreStrategy) ValidateRFC8628DeviceCode(ctx context.Context, r oauth2.Requester, code string) error
ValidateRFC8628DeviceCode mocks base method.
func (*MockCoreStrategy) ValidateRFC8628UserCode ¶
func (m *MockCoreStrategy) ValidateRFC8628UserCode(ctx context.Context, r oauth2.Requester, code string) error
ValidateRFC8628UserCode mocks base method.
func (*MockCoreStrategy) ValidateRefreshToken ¶
func (m *MockCoreStrategy) ValidateRefreshToken(ctx context.Context, requester oauth2.Requester, token string) error
ValidateRefreshToken mocks base method.
type MockCoreStrategyMockRecorder ¶
type MockCoreStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreStrategyMockRecorder is the mock recorder for MockCoreStrategy.
func (*MockCoreStrategyMockRecorder) AccessTokenSignature ¶
func (mr *MockCoreStrategyMockRecorder) AccessTokenSignature(ctx, token any) *gomock.Call
AccessTokenSignature indicates an expected call of AccessTokenSignature.
func (*MockCoreStrategyMockRecorder) AuthorizeCodeSignature ¶
func (mr *MockCoreStrategyMockRecorder) AuthorizeCodeSignature(ctx, token any) *gomock.Call
AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature.
func (*MockCoreStrategyMockRecorder) GenerateAccessToken ¶
func (mr *MockCoreStrategyMockRecorder) GenerateAccessToken(ctx, requester any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
func (*MockCoreStrategyMockRecorder) GenerateAuthorizeCode ¶
func (mr *MockCoreStrategyMockRecorder) GenerateAuthorizeCode(ctx, requester any) *gomock.Call
GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode.
func (*MockCoreStrategyMockRecorder) GenerateRFC8628DeviceCode ¶
func (mr *MockCoreStrategyMockRecorder) GenerateRFC8628DeviceCode(ctx any) *gomock.Call
GenerateRFC8628DeviceCode indicates an expected call of GenerateRFC8628DeviceCode.
func (*MockCoreStrategyMockRecorder) GenerateRFC8628UserCode ¶
func (mr *MockCoreStrategyMockRecorder) GenerateRFC8628UserCode(ctx any) *gomock.Call
GenerateRFC8628UserCode indicates an expected call of GenerateRFC8628UserCode.
func (*MockCoreStrategyMockRecorder) GenerateRefreshToken ¶
func (mr *MockCoreStrategyMockRecorder) GenerateRefreshToken(ctx, requester any) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken.
func (*MockCoreStrategyMockRecorder) RFC8628DeviceCodeSignature ¶
func (mr *MockCoreStrategyMockRecorder) RFC8628DeviceCodeSignature(ctx, code any) *gomock.Call
RFC8628DeviceCodeSignature indicates an expected call of RFC8628DeviceCodeSignature.
func (*MockCoreStrategyMockRecorder) RFC8628UserCodeSignature ¶
func (mr *MockCoreStrategyMockRecorder) RFC8628UserCodeSignature(ctx, code any) *gomock.Call
RFC8628UserCodeSignature indicates an expected call of RFC8628UserCodeSignature.
func (*MockCoreStrategyMockRecorder) RefreshTokenSignature ¶
func (mr *MockCoreStrategyMockRecorder) RefreshTokenSignature(ctx, token any) *gomock.Call
RefreshTokenSignature indicates an expected call of RefreshTokenSignature.
func (*MockCoreStrategyMockRecorder) ValidateAccessToken ¶
func (mr *MockCoreStrategyMockRecorder) ValidateAccessToken(ctx, requester, token any) *gomock.Call
ValidateAccessToken indicates an expected call of ValidateAccessToken.
func (*MockCoreStrategyMockRecorder) ValidateAuthorizeCode ¶
func (mr *MockCoreStrategyMockRecorder) ValidateAuthorizeCode(ctx, requester, token any) *gomock.Call
ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode.
func (*MockCoreStrategyMockRecorder) ValidateRFC8628DeviceCode ¶
func (mr *MockCoreStrategyMockRecorder) ValidateRFC8628DeviceCode(ctx, r, code any) *gomock.Call
ValidateRFC8628DeviceCode indicates an expected call of ValidateRFC8628DeviceCode.
func (*MockCoreStrategyMockRecorder) ValidateRFC8628UserCode ¶
func (mr *MockCoreStrategyMockRecorder) ValidateRFC8628UserCode(ctx, r, code any) *gomock.Call
ValidateRFC8628UserCode indicates an expected call of ValidateRFC8628UserCode.
func (*MockCoreStrategyMockRecorder) ValidateRefreshToken ¶
func (mr *MockCoreStrategyMockRecorder) ValidateRefreshToken(ctx, requester, token any) *gomock.Call
ValidateRefreshToken indicates an expected call of ValidateRefreshToken.
type MockDeviceAuthorizeRequester ¶
type MockDeviceAuthorizeRequester struct {
// contains filtered or unexported fields
}
MockDeviceAuthorizeRequester is a mock of DeviceAuthorizeRequester interface.
func NewMockDeviceAuthorizeRequester ¶
func NewMockDeviceAuthorizeRequester(ctrl *gomock.Controller) *MockDeviceAuthorizeRequester
NewMockDeviceAuthorizeRequester creates a new mock instance.
func (*MockDeviceAuthorizeRequester) AppendRequestedScope ¶
func (m *MockDeviceAuthorizeRequester) AppendRequestedScope(scope string)
AppendRequestedScope mocks base method.
func (*MockDeviceAuthorizeRequester) EXPECT ¶
func (m *MockDeviceAuthorizeRequester) EXPECT() *MockDeviceAuthorizeRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeviceAuthorizeRequester) GetClient ¶
func (m *MockDeviceAuthorizeRequester) GetClient() oauth2.Client
GetClient mocks base method.
func (*MockDeviceAuthorizeRequester) GetDeviceCodeSignature ¶
func (m *MockDeviceAuthorizeRequester) GetDeviceCodeSignature() string
GetDeviceCodeSignature mocks base method.
func (*MockDeviceAuthorizeRequester) GetGrantedAudience ¶
func (m *MockDeviceAuthorizeRequester) GetGrantedAudience() oauth2.Arguments
GetGrantedAudience mocks base method.
func (*MockDeviceAuthorizeRequester) GetGrantedScopes ¶
func (m *MockDeviceAuthorizeRequester) GetGrantedScopes() oauth2.Arguments
GetGrantedScopes mocks base method.
func (*MockDeviceAuthorizeRequester) GetID ¶
func (m *MockDeviceAuthorizeRequester) GetID() string
GetID mocks base method.
func (*MockDeviceAuthorizeRequester) GetLastChecked ¶
func (m *MockDeviceAuthorizeRequester) GetLastChecked() time.Time
GetLastChecked mocks base method.
func (*MockDeviceAuthorizeRequester) GetRequestForm ¶
func (m *MockDeviceAuthorizeRequester) GetRequestForm() url.Values
GetRequestForm mocks base method.
func (*MockDeviceAuthorizeRequester) GetRequestedAt ¶
func (m *MockDeviceAuthorizeRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method.
func (*MockDeviceAuthorizeRequester) GetRequestedAudience ¶
func (m *MockDeviceAuthorizeRequester) GetRequestedAudience() oauth2.Arguments
GetRequestedAudience mocks base method.
func (*MockDeviceAuthorizeRequester) GetRequestedScopes ¶
func (m *MockDeviceAuthorizeRequester) GetRequestedScopes() oauth2.Arguments
GetRequestedScopes mocks base method.
func (*MockDeviceAuthorizeRequester) GetSession ¶
func (m *MockDeviceAuthorizeRequester) GetSession() oauth2.Session
GetSession mocks base method.
func (*MockDeviceAuthorizeRequester) GetStatus ¶
func (m *MockDeviceAuthorizeRequester) GetStatus() oauth2.DeviceAuthorizeStatus
GetStatus mocks base method.
func (*MockDeviceAuthorizeRequester) GetUserCodeSignature ¶
func (m *MockDeviceAuthorizeRequester) GetUserCodeSignature() string
GetUserCodeSignature mocks base method.
func (*MockDeviceAuthorizeRequester) GrantAudience ¶
func (m *MockDeviceAuthorizeRequester) GrantAudience(audience string)
GrantAudience mocks base method.
func (*MockDeviceAuthorizeRequester) GrantScope ¶
func (m *MockDeviceAuthorizeRequester) GrantScope(scope string)
GrantScope mocks base method.
func (*MockDeviceAuthorizeRequester) Merge ¶
func (m *MockDeviceAuthorizeRequester) Merge(requester oauth2.Requester)
Merge mocks base method.
func (*MockDeviceAuthorizeRequester) Sanitize ¶
func (m *MockDeviceAuthorizeRequester) Sanitize(allowedParameters []string) oauth2.Requester
Sanitize mocks base method.
func (*MockDeviceAuthorizeRequester) SetDeviceCodeSignature ¶
func (m *MockDeviceAuthorizeRequester) SetDeviceCodeSignature(signature string)
SetDeviceCodeSignature mocks base method.
func (*MockDeviceAuthorizeRequester) SetID ¶
func (m *MockDeviceAuthorizeRequester) SetID(id string)
SetID mocks base method.
func (*MockDeviceAuthorizeRequester) SetLastChecked ¶
func (m *MockDeviceAuthorizeRequester) SetLastChecked(lastChecked time.Time)
SetLastChecked mocks base method.
func (*MockDeviceAuthorizeRequester) SetRequestedAudience ¶
func (m *MockDeviceAuthorizeRequester) SetRequestedAudience(audience oauth2.Arguments)
SetRequestedAudience mocks base method.
func (*MockDeviceAuthorizeRequester) SetRequestedScopes ¶
func (m *MockDeviceAuthorizeRequester) SetRequestedScopes(scopes oauth2.Arguments)
SetRequestedScopes mocks base method.
func (*MockDeviceAuthorizeRequester) SetSession ¶
func (m *MockDeviceAuthorizeRequester) SetSession(session oauth2.Session)
SetSession mocks base method.
func (*MockDeviceAuthorizeRequester) SetStatus ¶
func (m *MockDeviceAuthorizeRequester) SetStatus(status oauth2.DeviceAuthorizeStatus)
SetStatus mocks base method.
func (*MockDeviceAuthorizeRequester) SetUserCodeSignature ¶
func (m *MockDeviceAuthorizeRequester) SetUserCodeSignature(signature string)
SetUserCodeSignature mocks base method.
type MockDeviceAuthorizeRequesterMockRecorder ¶
type MockDeviceAuthorizeRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceAuthorizeRequesterMockRecorder is the mock recorder for MockDeviceAuthorizeRequester.
func (*MockDeviceAuthorizeRequesterMockRecorder) AppendRequestedScope ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetClient ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetDeviceCodeSignature ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetDeviceCodeSignature() *gomock.Call
GetDeviceCodeSignature indicates an expected call of GetDeviceCodeSignature.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetGrantedAudience ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetGrantedScopes ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetID ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetLastChecked ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetLastChecked() *gomock.Call
GetLastChecked indicates an expected call of GetLastChecked.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetRequestForm ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAt ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAudience ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetRequestedScopes ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetSession ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetStatus ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockDeviceAuthorizeRequesterMockRecorder) GetUserCodeSignature ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GetUserCodeSignature() *gomock.Call
GetUserCodeSignature indicates an expected call of GetUserCodeSignature.
func (*MockDeviceAuthorizeRequesterMockRecorder) GrantAudience ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
GrantAudience indicates an expected call of GrantAudience.
func (*MockDeviceAuthorizeRequesterMockRecorder) GrantScope ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) GrantScope(scope any) *gomock.Call
GrantScope indicates an expected call of GrantScope.
func (*MockDeviceAuthorizeRequesterMockRecorder) Merge ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) Merge(requester any) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockDeviceAuthorizeRequesterMockRecorder) Sanitize ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
Sanitize indicates an expected call of Sanitize.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetDeviceCodeSignature ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetDeviceCodeSignature(signature any) *gomock.Call
SetDeviceCodeSignature indicates an expected call of SetDeviceCodeSignature.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetID ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetID(id any) *gomock.Call
SetID indicates an expected call of SetID.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetLastChecked ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetLastChecked(lastChecked any) *gomock.Call
SetLastChecked indicates an expected call of SetLastChecked.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetRequestedAudience ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetRequestedScopes ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetSession ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetSession(session any) *gomock.Call
SetSession indicates an expected call of SetSession.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetStatus ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetStatus(status any) *gomock.Call
SetStatus indicates an expected call of SetStatus.
func (*MockDeviceAuthorizeRequesterMockRecorder) SetUserCodeSignature ¶
func (mr *MockDeviceAuthorizeRequesterMockRecorder) SetUserCodeSignature(signature any) *gomock.Call
SetUserCodeSignature indicates an expected call of SetUserCodeSignature.
type MockOpenIDConnectRequestStorage ¶
type MockOpenIDConnectRequestStorage struct {
// contains filtered or unexported fields
}
MockOpenIDConnectRequestStorage is a mock of OpenIDConnectRequestStorage interface.
func NewMockOpenIDConnectRequestStorage ¶
func NewMockOpenIDConnectRequestStorage(ctrl *gomock.Controller) *MockOpenIDConnectRequestStorage
NewMockOpenIDConnectRequestStorage creates a new mock instance.
func (*MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession ¶
func (m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(ctx context.Context, authorizeCode string, requester oauth2.Requester) error
CreateOpenIDConnectSession mocks base method.
func (*MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession ¶
func (m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(ctx context.Context, authorizeCode string) error
DeleteOpenIDConnectSession mocks base method.
func (*MockOpenIDConnectRequestStorage) EXPECT ¶
func (m *MockOpenIDConnectRequestStorage) EXPECT() *MockOpenIDConnectRequestStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOpenIDConnectRequestStorageMockRecorder ¶
type MockOpenIDConnectRequestStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenIDConnectRequestStorageMockRecorder is the mock recorder for MockOpenIDConnectRequestStorage.
func (*MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession ¶
func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(ctx, authorizeCode, requester any) *gomock.Call
CreateOpenIDConnectSession indicates an expected call of CreateOpenIDConnectSession.
func (*MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession ¶
func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(ctx, authorizeCode any) *gomock.Call
DeleteOpenIDConnectSession indicates an expected call of DeleteOpenIDConnectSession.
func (*MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession ¶
func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(ctx, authorizeCode, requester any) *gomock.Call
GetOpenIDConnectSession indicates an expected call of GetOpenIDConnectSession.
type MockOpenIDConnectTokenStrategy ¶
type MockOpenIDConnectTokenStrategy struct {
// contains filtered or unexported fields
}
MockOpenIDConnectTokenStrategy is a mock of OpenIDConnectTokenStrategy interface.
func NewMockOpenIDConnectTokenStrategy ¶
func NewMockOpenIDConnectTokenStrategy(ctrl *gomock.Controller) *MockOpenIDConnectTokenStrategy
NewMockOpenIDConnectTokenStrategy creates a new mock instance.
func (*MockOpenIDConnectTokenStrategy) EXPECT ¶
func (m *MockOpenIDConnectTokenStrategy) EXPECT() *MockOpenIDConnectTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOpenIDConnectTokenStrategyMockRecorder ¶
type MockOpenIDConnectTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenIDConnectTokenStrategyMockRecorder is the mock recorder for MockOpenIDConnectTokenStrategy.
func (*MockOpenIDConnectTokenStrategyMockRecorder) GenerateIDToken ¶
func (mr *MockOpenIDConnectTokenStrategyMockRecorder) GenerateIDToken(ctx, lifespan, requester any) *gomock.Call
GenerateIDToken indicates an expected call of GenerateIDToken.
type MockPKCERequestStorage ¶
type MockPKCERequestStorage struct {
// contains filtered or unexported fields
}
MockPKCERequestStorage is a mock of Storage interface.
func NewMockPKCERequestStorage ¶
func NewMockPKCERequestStorage(ctrl *gomock.Controller) *MockPKCERequestStorage
NewMockPKCERequestStorage creates a new mock instance.
func (*MockPKCERequestStorage) CreatePKCERequestSession ¶
func (m *MockPKCERequestStorage) CreatePKCERequestSession(ctx context.Context, signature string, requester oauth2.Requester) error
CreatePKCERequestSession mocks base method.
func (*MockPKCERequestStorage) DeletePKCERequestSession ¶
func (m *MockPKCERequestStorage) DeletePKCERequestSession(ctx context.Context, signature string) error
DeletePKCERequestSession mocks base method.
func (*MockPKCERequestStorage) EXPECT ¶
func (m *MockPKCERequestStorage) EXPECT() *MockPKCERequestStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPKCERequestStorageMockRecorder ¶
type MockPKCERequestStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockPKCERequestStorageMockRecorder is the mock recorder for MockPKCERequestStorage.
func (*MockPKCERequestStorageMockRecorder) CreatePKCERequestSession ¶
func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(ctx, signature, requester any) *gomock.Call
CreatePKCERequestSession indicates an expected call of CreatePKCERequestSession.
func (*MockPKCERequestStorageMockRecorder) DeletePKCERequestSession ¶
func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(ctx, signature any) *gomock.Call
DeletePKCERequestSession indicates an expected call of DeletePKCERequestSession.
func (*MockPKCERequestStorageMockRecorder) GetPKCERequestSession ¶
func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(ctx, signature, session any) *gomock.Call
GetPKCERequestSession indicates an expected call of GetPKCERequestSession.
type MockPushedAuthorizeEndpointHandler ¶
type MockPushedAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
MockPushedAuthorizeEndpointHandler is a mock of PushedAuthorizeEndpointHandler interface.
func NewMockPushedAuthorizeEndpointHandler ¶
func NewMockPushedAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockPushedAuthorizeEndpointHandler
NewMockPushedAuthorizeEndpointHandler creates a new mock instance.
func (*MockPushedAuthorizeEndpointHandler) EXPECT ¶
func (m *MockPushedAuthorizeEndpointHandler) EXPECT() *MockPushedAuthorizeEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPushedAuthorizeEndpointHandler) HandlePushedAuthorizeEndpointRequest ¶
func (m *MockPushedAuthorizeEndpointHandler) HandlePushedAuthorizeEndpointRequest(ctx context.Context, requester oauth2.AuthorizeRequester, responder oauth2.PushedAuthorizeResponder) error
HandlePushedAuthorizeEndpointRequest mocks base method.
type MockPushedAuthorizeEndpointHandlerMockRecorder ¶
type MockPushedAuthorizeEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockPushedAuthorizeEndpointHandlerMockRecorder is the mock recorder for MockPushedAuthorizeEndpointHandler.
func (*MockPushedAuthorizeEndpointHandlerMockRecorder) HandlePushedAuthorizeEndpointRequest ¶
func (mr *MockPushedAuthorizeEndpointHandlerMockRecorder) HandlePushedAuthorizeEndpointRequest(ctx, requester, responder any) *gomock.Call
HandlePushedAuthorizeEndpointRequest indicates an expected call of HandlePushedAuthorizeEndpointRequest.
type MockRFC7523KeyStorage ¶
type MockRFC7523KeyStorage struct {
// contains filtered or unexported fields
}
MockRFC7523KeyStorage is a mock of RFC7523KeyStorage interface.
func NewMockRFC7523KeyStorage ¶
func NewMockRFC7523KeyStorage(ctrl *gomock.Controller) *MockRFC7523KeyStorage
NewMockRFC7523KeyStorage creates a new mock instance.
func (*MockRFC7523KeyStorage) EXPECT ¶
func (m *MockRFC7523KeyStorage) EXPECT() *MockRFC7523KeyStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRFC7523KeyStorage) GetPublicKey ¶
func (m *MockRFC7523KeyStorage) GetPublicKey(ctx context.Context, issuer, subject, keyId string) (*jose.JSONWebKey, error)
GetPublicKey mocks base method.
func (*MockRFC7523KeyStorage) GetPublicKeyScopes ¶
func (m *MockRFC7523KeyStorage) GetPublicKeyScopes(ctx context.Context, issuer, subject, keyId string) ([]string, error)
GetPublicKeyScopes mocks base method.
func (*MockRFC7523KeyStorage) GetPublicKeys ¶
func (m *MockRFC7523KeyStorage) GetPublicKeys(ctx context.Context, issuer, subject string) (*jose.JSONWebKeySet, error)
GetPublicKeys mocks base method.
func (*MockRFC7523KeyStorage) MarkJWTUsedForTime ¶
func (m *MockRFC7523KeyStorage) MarkJWTUsedForTime(ctx context.Context, jti string, exp time.Time) error
MarkJWTUsedForTime mocks base method.
type MockRFC7523KeyStorageMockRecorder ¶
type MockRFC7523KeyStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockRFC7523KeyStorageMockRecorder is the mock recorder for MockRFC7523KeyStorage.
func (*MockRFC7523KeyStorageMockRecorder) GetPublicKey ¶
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKey(ctx, issuer, subject, keyId any) *gomock.Call
GetPublicKey indicates an expected call of GetPublicKey.
func (*MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes ¶
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes(ctx, issuer, subject, keyId any) *gomock.Call
GetPublicKeyScopes indicates an expected call of GetPublicKeyScopes.
func (*MockRFC7523KeyStorageMockRecorder) GetPublicKeys ¶
func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeys(ctx, issuer, subject any) *gomock.Call
GetPublicKeys indicates an expected call of GetPublicKeys.
func (*MockRFC7523KeyStorageMockRecorder) IsJWTUsed ¶
func (mr *MockRFC7523KeyStorageMockRecorder) IsJWTUsed(ctx, jti any) *gomock.Call
IsJWTUsed indicates an expected call of IsJWTUsed.
func (*MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime ¶
func (mr *MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime(ctx, jti, exp any) *gomock.Call
MarkJWTUsedForTime indicates an expected call of MarkJWTUsedForTime.
type MockRFC8628DeviceAuthorizeEndpointHandler ¶
type MockRFC8628DeviceAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
MockRFC8628DeviceAuthorizeEndpointHandler is a mock of RFC8628DeviceAuthorizeEndpointHandler interface.
func NewMockRFC8628DeviceAuthorizeEndpointHandler ¶
func NewMockRFC8628DeviceAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockRFC8628DeviceAuthorizeEndpointHandler
NewMockRFC8628DeviceAuthorizeEndpointHandler creates a new mock instance.
func (*MockRFC8628DeviceAuthorizeEndpointHandler) EXPECT ¶
func (m *MockRFC8628DeviceAuthorizeEndpointHandler) EXPECT() *MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRFC8628DeviceAuthorizeEndpointHandler) HandleRFC8628DeviceAuthorizeEndpointRequest ¶
func (m *MockRFC8628DeviceAuthorizeEndpointHandler) HandleRFC8628DeviceAuthorizeEndpointRequest(ctx context.Context, requester oauth2.DeviceAuthorizeRequester, responder oauth2.DeviceAuthorizeResponder) error
HandleRFC8628DeviceAuthorizeEndpointRequest mocks base method.
type MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder ¶
type MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder is the mock recorder for MockRFC8628DeviceAuthorizeEndpointHandler.
func (*MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder) HandleRFC8628DeviceAuthorizeEndpointRequest ¶
func (mr *MockRFC8628DeviceAuthorizeEndpointHandlerMockRecorder) HandleRFC8628DeviceAuthorizeEndpointRequest(ctx, requester, responder any) *gomock.Call
HandleRFC8628DeviceAuthorizeEndpointRequest indicates an expected call of HandleRFC8628DeviceAuthorizeEndpointRequest.
type MockRFC8628Storage ¶
type MockRFC8628Storage struct {
// contains filtered or unexported fields
}
MockRFC8628Storage is a mock of Storage interface.
func NewMockRFC8628Storage ¶
func NewMockRFC8628Storage(ctrl *gomock.Controller) *MockRFC8628Storage
NewMockRFC8628Storage creates a new mock instance.
func (*MockRFC8628Storage) CreateDeviceCodeSession ¶
func (m *MockRFC8628Storage) CreateDeviceCodeSession(ctx context.Context, signature string, request oauth2.DeviceAuthorizeRequester) error
CreateDeviceCodeSession mocks base method.
func (*MockRFC8628Storage) EXPECT ¶
func (m *MockRFC8628Storage) EXPECT() *MockRFC8628StorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRFC8628Storage) GetDeviceCodeSession ¶
func (m *MockRFC8628Storage) GetDeviceCodeSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.DeviceAuthorizeRequester, error)
GetDeviceCodeSession mocks base method.
func (*MockRFC8628Storage) GetDeviceCodeSessionByUserCode ¶ added in v0.1.10
func (m *MockRFC8628Storage) GetDeviceCodeSessionByUserCode(ctx context.Context, signature string, session oauth2.Session) (oauth2.DeviceAuthorizeRequester, error)
GetDeviceCodeSessionByUserCode mocks base method.
func (*MockRFC8628Storage) InvalidateDeviceCodeSession ¶
func (m *MockRFC8628Storage) InvalidateDeviceCodeSession(ctx context.Context, signature string) error
InvalidateDeviceCodeSession mocks base method.
func (*MockRFC8628Storage) UpdateDeviceCodeSession ¶
func (m *MockRFC8628Storage) UpdateDeviceCodeSession(ctx context.Context, signature string, request oauth2.DeviceAuthorizeRequester) error
UpdateDeviceCodeSession mocks base method.
type MockRFC8628StorageMockRecorder ¶
type MockRFC8628StorageMockRecorder struct {
// contains filtered or unexported fields
}
MockRFC8628StorageMockRecorder is the mock recorder for MockRFC8628Storage.
func (*MockRFC8628StorageMockRecorder) CreateDeviceCodeSession ¶
func (mr *MockRFC8628StorageMockRecorder) CreateDeviceCodeSession(ctx, signature, request any) *gomock.Call
CreateDeviceCodeSession indicates an expected call of CreateDeviceCodeSession.
func (*MockRFC8628StorageMockRecorder) GetDeviceCodeSession ¶
func (mr *MockRFC8628StorageMockRecorder) GetDeviceCodeSession(ctx, signature, session any) *gomock.Call
GetDeviceCodeSession indicates an expected call of GetDeviceCodeSession.
func (*MockRFC8628StorageMockRecorder) GetDeviceCodeSessionByUserCode ¶ added in v0.1.10
func (mr *MockRFC8628StorageMockRecorder) GetDeviceCodeSessionByUserCode(ctx, signature, session any) *gomock.Call
GetDeviceCodeSessionByUserCode indicates an expected call of GetDeviceCodeSessionByUserCode.
func (*MockRFC8628StorageMockRecorder) InvalidateDeviceCodeSession ¶
func (mr *MockRFC8628StorageMockRecorder) InvalidateDeviceCodeSession(ctx, signature any) *gomock.Call
InvalidateDeviceCodeSession indicates an expected call of InvalidateDeviceCodeSession.
func (*MockRFC8628StorageMockRecorder) UpdateDeviceCodeSession ¶
func (mr *MockRFC8628StorageMockRecorder) UpdateDeviceCodeSession(ctx, signature, request any) *gomock.Call
UpdateDeviceCodeSession indicates an expected call of UpdateDeviceCodeSession.
type MockRFC8628UserAuthorizeEndpointHandler ¶
type MockRFC8628UserAuthorizeEndpointHandler struct {
// contains filtered or unexported fields
}
MockRFC8628UserAuthorizeEndpointHandler is a mock of RFC8628UserAuthorizeEndpointHandler interface.
func NewMockRFC8628UserAuthorizeEndpointHandler ¶
func NewMockRFC8628UserAuthorizeEndpointHandler(ctrl *gomock.Controller) *MockRFC8628UserAuthorizeEndpointHandler
NewMockRFC8628UserAuthorizeEndpointHandler creates a new mock instance.
func (*MockRFC8628UserAuthorizeEndpointHandler) EXPECT ¶
func (m *MockRFC8628UserAuthorizeEndpointHandler) EXPECT() *MockRFC8628UserAuthorizeEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRFC8628UserAuthorizeEndpointHandler) HandleRFC8628UserAuthorizeEndpointRequest ¶
func (m *MockRFC8628UserAuthorizeEndpointHandler) HandleRFC8628UserAuthorizeEndpointRequest(ctx context.Context, request oauth2.DeviceAuthorizeRequester) error
HandleRFC8628UserAuthorizeEndpointRequest mocks base method.
func (*MockRFC8628UserAuthorizeEndpointHandler) PopulateRFC8628UserAuthorizeEndpointResponse ¶
func (m *MockRFC8628UserAuthorizeEndpointHandler) PopulateRFC8628UserAuthorizeEndpointResponse(ctx context.Context, requester oauth2.DeviceAuthorizeRequester, responder oauth2.DeviceUserAuthorizeResponder) error
PopulateRFC8628UserAuthorizeEndpointResponse mocks base method.
type MockRFC8628UserAuthorizeEndpointHandlerMockRecorder ¶
type MockRFC8628UserAuthorizeEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockRFC8628UserAuthorizeEndpointHandlerMockRecorder is the mock recorder for MockRFC8628UserAuthorizeEndpointHandler.
func (*MockRFC8628UserAuthorizeEndpointHandlerMockRecorder) HandleRFC8628UserAuthorizeEndpointRequest ¶
func (mr *MockRFC8628UserAuthorizeEndpointHandlerMockRecorder) HandleRFC8628UserAuthorizeEndpointRequest(ctx, request any) *gomock.Call
HandleRFC8628UserAuthorizeEndpointRequest indicates an expected call of HandleRFC8628UserAuthorizeEndpointRequest.
func (*MockRFC8628UserAuthorizeEndpointHandlerMockRecorder) PopulateRFC8628UserAuthorizeEndpointResponse ¶
func (mr *MockRFC8628UserAuthorizeEndpointHandlerMockRecorder) PopulateRFC8628UserAuthorizeEndpointResponse(ctx, requester, responder any) *gomock.Call
PopulateRFC8628UserAuthorizeEndpointResponse indicates an expected call of PopulateRFC8628UserAuthorizeEndpointResponse.
type MockRefreshTokenStorage ¶
type MockRefreshTokenStorage struct {
// contains filtered or unexported fields
}
MockRefreshTokenStorage is a mock of RefreshTokenStorage interface.
func NewMockRefreshTokenStorage ¶
func NewMockRefreshTokenStorage(ctrl *gomock.Controller) *MockRefreshTokenStorage
NewMockRefreshTokenStorage creates a new mock instance.
func (*MockRefreshTokenStorage) CreateRefreshTokenSession ¶
func (m *MockRefreshTokenStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateRefreshTokenSession mocks base method.
func (*MockRefreshTokenStorage) DeleteRefreshTokenSession ¶
func (m *MockRefreshTokenStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
DeleteRefreshTokenSession mocks base method.
func (*MockRefreshTokenStorage) EXPECT ¶
func (m *MockRefreshTokenStorage) EXPECT() *MockRefreshTokenStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRefreshTokenStorageMockRecorder ¶
type MockRefreshTokenStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockRefreshTokenStorageMockRecorder is the mock recorder for MockRefreshTokenStorage.
func (*MockRefreshTokenStorageMockRecorder) CreateRefreshTokenSession ¶
func (mr *MockRefreshTokenStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
func (*MockRefreshTokenStorageMockRecorder) DeleteRefreshTokenSession ¶
func (mr *MockRefreshTokenStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
func (*MockRefreshTokenStorageMockRecorder) GetRefreshTokenSession ¶
func (mr *MockRefreshTokenStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
type MockRefreshTokenStrategy ¶
type MockRefreshTokenStrategy struct {
// contains filtered or unexported fields
}
MockRefreshTokenStrategy is a mock of RefreshTokenStrategy interface.
func NewMockRefreshTokenStrategy ¶
func NewMockRefreshTokenStrategy(ctrl *gomock.Controller) *MockRefreshTokenStrategy
NewMockRefreshTokenStrategy creates a new mock instance.
func (*MockRefreshTokenStrategy) EXPECT ¶
func (m *MockRefreshTokenStrategy) EXPECT() *MockRefreshTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRefreshTokenStrategy) GenerateRefreshToken ¶
func (m *MockRefreshTokenStrategy) GenerateRefreshToken(ctx context.Context, requester oauth2.Requester) (string, string, error)
GenerateRefreshToken mocks base method.
func (*MockRefreshTokenStrategy) RefreshTokenSignature ¶
func (m *MockRefreshTokenStrategy) RefreshTokenSignature(ctx context.Context, token string) string
RefreshTokenSignature mocks base method.
func (*MockRefreshTokenStrategy) ValidateRefreshToken ¶
func (m *MockRefreshTokenStrategy) ValidateRefreshToken(ctx context.Context, requester oauth2.Requester, token string) error
ValidateRefreshToken mocks base method.
type MockRefreshTokenStrategyMockRecorder ¶
type MockRefreshTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockRefreshTokenStrategyMockRecorder is the mock recorder for MockRefreshTokenStrategy.
func (*MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken ¶
func (mr *MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken(ctx, requester any) *gomock.Call
GenerateRefreshToken indicates an expected call of GenerateRefreshToken.
func (*MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature ¶
func (mr *MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature(ctx, token any) *gomock.Call
RefreshTokenSignature indicates an expected call of RefreshTokenSignature.
func (*MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken ¶
func (mr *MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken(ctx, requester, token any) *gomock.Call
ValidateRefreshToken indicates an expected call of ValidateRefreshToken.
type MockRequester ¶
type MockRequester struct {
// contains filtered or unexported fields
}
MockRequester is a mock of Requester interface.
func NewMockRequester ¶
func NewMockRequester(ctrl *gomock.Controller) *MockRequester
NewMockRequester creates a new mock instance.
func (*MockRequester) AppendRequestedScope ¶
func (m *MockRequester) AppendRequestedScope(scope string)
AppendRequestedScope mocks base method.
func (*MockRequester) EXPECT ¶
func (m *MockRequester) EXPECT() *MockRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRequester) GetClient ¶
func (m *MockRequester) GetClient() oauth2.Client
GetClient mocks base method.
func (*MockRequester) GetGrantedAudience ¶
func (m *MockRequester) GetGrantedAudience() oauth2.Arguments
GetGrantedAudience mocks base method.
func (*MockRequester) GetGrantedScopes ¶
func (m *MockRequester) GetGrantedScopes() oauth2.Arguments
GetGrantedScopes mocks base method.
func (*MockRequester) GetRequestForm ¶
func (m *MockRequester) GetRequestForm() url.Values
GetRequestForm mocks base method.
func (*MockRequester) GetRequestedAt ¶
func (m *MockRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method.
func (*MockRequester) GetRequestedAudience ¶
func (m *MockRequester) GetRequestedAudience() oauth2.Arguments
GetRequestedAudience mocks base method.
func (*MockRequester) GetRequestedScopes ¶
func (m *MockRequester) GetRequestedScopes() oauth2.Arguments
GetRequestedScopes mocks base method.
func (*MockRequester) GetSession ¶
func (m *MockRequester) GetSession() oauth2.Session
GetSession mocks base method.
func (*MockRequester) GrantAudience ¶
func (m *MockRequester) GrantAudience(audience string)
GrantAudience mocks base method.
func (*MockRequester) GrantScope ¶
func (m *MockRequester) GrantScope(scope string)
GrantScope mocks base method.
func (*MockRequester) Merge ¶
func (m *MockRequester) Merge(requester oauth2.Requester)
Merge mocks base method.
func (*MockRequester) Sanitize ¶
func (m *MockRequester) Sanitize(allowedParameters []string) oauth2.Requester
Sanitize mocks base method.
func (*MockRequester) SetRequestedAudience ¶
func (m *MockRequester) SetRequestedAudience(audience oauth2.Arguments)
SetRequestedAudience mocks base method.
func (*MockRequester) SetRequestedScopes ¶
func (m *MockRequester) SetRequestedScopes(scopes oauth2.Arguments)
SetRequestedScopes mocks base method.
func (*MockRequester) SetSession ¶
func (m *MockRequester) SetSession(session oauth2.Session)
SetSession mocks base method.
type MockRequesterMockRecorder ¶
type MockRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockRequesterMockRecorder is the mock recorder for MockRequester.
func (*MockRequesterMockRecorder) AppendRequestedScope ¶
func (mr *MockRequesterMockRecorder) AppendRequestedScope(scope any) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope.
func (*MockRequesterMockRecorder) GetClient ¶
func (mr *MockRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockRequesterMockRecorder) GetGrantedAudience ¶
func (mr *MockRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience.
func (*MockRequesterMockRecorder) GetGrantedScopes ¶
func (mr *MockRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes.
func (*MockRequesterMockRecorder) GetID ¶
func (mr *MockRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockRequesterMockRecorder) GetRequestForm ¶
func (mr *MockRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm.
func (*MockRequesterMockRecorder) GetRequestedAt ¶
func (mr *MockRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt.
func (*MockRequesterMockRecorder) GetRequestedAudience ¶
func (mr *MockRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience.
func (*MockRequesterMockRecorder) GetRequestedScopes ¶
func (mr *MockRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes.
func (*MockRequesterMockRecorder) GetSession ¶
func (mr *MockRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockRequesterMockRecorder) GrantAudience ¶
func (mr *MockRequesterMockRecorder) GrantAudience(audience any) *gomock.Call
GrantAudience indicates an expected call of GrantAudience.
func (*MockRequesterMockRecorder) GrantScope ¶
func (mr *MockRequesterMockRecorder) GrantScope(scope any) *gomock.Call
GrantScope indicates an expected call of GrantScope.
func (*MockRequesterMockRecorder) Merge ¶
func (mr *MockRequesterMockRecorder) Merge(requester any) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockRequesterMockRecorder) Sanitize ¶
func (mr *MockRequesterMockRecorder) Sanitize(allowedParameters any) *gomock.Call
Sanitize indicates an expected call of Sanitize.
func (*MockRequesterMockRecorder) SetID ¶
func (mr *MockRequesterMockRecorder) SetID(id any) *gomock.Call
SetID indicates an expected call of SetID.
func (*MockRequesterMockRecorder) SetRequestedAudience ¶
func (mr *MockRequesterMockRecorder) SetRequestedAudience(audience any) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience.
func (*MockRequesterMockRecorder) SetRequestedScopes ¶
func (mr *MockRequesterMockRecorder) SetRequestedScopes(scopes any) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes.
func (*MockRequesterMockRecorder) SetSession ¶
func (mr *MockRequesterMockRecorder) SetSession(session any) *gomock.Call
SetSession indicates an expected call of SetSession.
type MockResourceOwnerPasswordCredentialsGrantStorage ¶
type MockResourceOwnerPasswordCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
MockResourceOwnerPasswordCredentialsGrantStorage is a mock of ResourceOwnerPasswordCredentialsGrantStorage interface.
func NewMockResourceOwnerPasswordCredentialsGrantStorage ¶
func NewMockResourceOwnerPasswordCredentialsGrantStorage(ctrl *gomock.Controller) *MockResourceOwnerPasswordCredentialsGrantStorage
NewMockResourceOwnerPasswordCredentialsGrantStorage creates a new mock instance.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(ctx context.Context, name, secret string) error
Authenticate mocks base method.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateRefreshTokenSession mocks base method.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
DeleteAccessTokenSession mocks base method.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
DeleteRefreshTokenSession mocks base method.
func (*MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT ¶
func (m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder ¶
type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder is the mock recorder for MockResourceOwnerPasswordCredentialsGrantStorage.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(ctx, name, secret any) *gomock.Call
Authenticate indicates an expected call of Authenticate.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
func (*MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession ¶
func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
type MockResponseWriter ¶
type MockResponseWriter struct {
// contains filtered or unexported fields
}
MockResponseWriter is a mock of ResponseWriter interface.
func NewMockResponseWriter ¶
func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter
NewMockResponseWriter creates a new mock instance.
func (*MockResponseWriter) EXPECT ¶
func (m *MockResponseWriter) EXPECT() *MockResponseWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResponseWriter) Header ¶
func (m *MockResponseWriter) Header() http.Header
Header mocks base method.
func (*MockResponseWriter) Write ¶
func (m *MockResponseWriter) Write(arg0 []byte) (int, error)
Write mocks base method.
func (*MockResponseWriter) WriteHeader ¶
func (m *MockResponseWriter) WriteHeader(statusCode int)
WriteHeader mocks base method.
type MockResponseWriterMockRecorder ¶
type MockResponseWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockResponseWriterMockRecorder is the mock recorder for MockResponseWriter.
func (*MockResponseWriterMockRecorder) Header ¶
func (mr *MockResponseWriterMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockResponseWriterMockRecorder) Write ¶
func (mr *MockResponseWriterMockRecorder) Write(arg0 any) *gomock.Call
Write indicates an expected call of Write.
func (*MockResponseWriterMockRecorder) WriteHeader ¶
func (mr *MockResponseWriterMockRecorder) WriteHeader(statusCode any) *gomock.Call
WriteHeader indicates an expected call of WriteHeader.
type MockRevocationHandler ¶
type MockRevocationHandler struct {
// contains filtered or unexported fields
}
MockRevocationHandler is a mock of RevocationHandler interface.
func NewMockRevocationHandler ¶
func NewMockRevocationHandler(ctrl *gomock.Controller) *MockRevocationHandler
NewMockRevocationHandler creates a new mock instance.
func (*MockRevocationHandler) EXPECT ¶
func (m *MockRevocationHandler) EXPECT() *MockRevocationHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRevocationHandlerMockRecorder ¶
type MockRevocationHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockRevocationHandlerMockRecorder is the mock recorder for MockRevocationHandler.
func (*MockRevocationHandlerMockRecorder) RevokeToken ¶
func (mr *MockRevocationHandlerMockRecorder) RevokeToken(ctx, token, tokenType, client any) *gomock.Call
RevokeToken indicates an expected call of RevokeToken.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) ClientAssertionJWTValid ¶
func (m *MockStorage) ClientAssertionJWTValid(ctx context.Context, jti string) error
ClientAssertionJWTValid mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) SetClientAssertionJWT ¶
SetClientAssertionJWT mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) ClientAssertionJWTValid ¶
func (mr *MockStorageMockRecorder) ClientAssertionJWTValid(ctx, jti any) *gomock.Call
ClientAssertionJWTValid indicates an expected call of ClientAssertionJWTValid.
func (*MockStorageMockRecorder) GetClient ¶
func (mr *MockStorageMockRecorder) GetClient(ctx, id any) *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockStorageMockRecorder) SetClientAssertionJWT ¶
func (mr *MockStorageMockRecorder) SetClientAssertionJWT(ctx, jti, exp any) *gomock.Call
SetClientAssertionJWT indicates an expected call of SetClientAssertionJWT.
type MockTokenEndpointHandler ¶
type MockTokenEndpointHandler struct {
// contains filtered or unexported fields
}
MockTokenEndpointHandler is a mock of TokenEndpointHandler interface.
func NewMockTokenEndpointHandler ¶
func NewMockTokenEndpointHandler(ctrl *gomock.Controller) *MockTokenEndpointHandler
NewMockTokenEndpointHandler creates a new mock instance.
func (*MockTokenEndpointHandler) CanHandleTokenEndpointRequest ¶
func (m *MockTokenEndpointHandler) CanHandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) bool
CanHandleTokenEndpointRequest mocks base method.
func (*MockTokenEndpointHandler) CanSkipClientAuth ¶
func (m *MockTokenEndpointHandler) CanSkipClientAuth(ctx context.Context, requester oauth2.AccessRequester) bool
CanSkipClientAuth mocks base method.
func (*MockTokenEndpointHandler) EXPECT ¶
func (m *MockTokenEndpointHandler) EXPECT() *MockTokenEndpointHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenEndpointHandler) HandleTokenEndpointRequest ¶
func (m *MockTokenEndpointHandler) HandleTokenEndpointRequest(ctx context.Context, requester oauth2.AccessRequester) error
HandleTokenEndpointRequest mocks base method.
func (*MockTokenEndpointHandler) PopulateTokenEndpointResponse ¶
func (m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(ctx context.Context, requester oauth2.AccessRequester, responder oauth2.AccessResponder) error
PopulateTokenEndpointResponse mocks base method.
type MockTokenEndpointHandlerMockRecorder ¶
type MockTokenEndpointHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenEndpointHandlerMockRecorder is the mock recorder for MockTokenEndpointHandler.
func (*MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest ¶
func (mr *MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(ctx, requester any) *gomock.Call
CanHandleTokenEndpointRequest indicates an expected call of CanHandleTokenEndpointRequest.
func (*MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth ¶
func (mr *MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth(ctx, requester any) *gomock.Call
CanSkipClientAuth indicates an expected call of CanSkipClientAuth.
func (*MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest ¶
func (mr *MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest(ctx, requester any) *gomock.Call
HandleTokenEndpointRequest indicates an expected call of HandleTokenEndpointRequest.
func (*MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse ¶
func (mr *MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse(ctx, requester, responder any) *gomock.Call
PopulateTokenEndpointResponse indicates an expected call of PopulateTokenEndpointResponse.
type MockTokenIntrospector ¶
type MockTokenIntrospector struct {
// contains filtered or unexported fields
}
MockTokenIntrospector is a mock of TokenIntrospector interface.
func NewMockTokenIntrospector ¶
func NewMockTokenIntrospector(ctrl *gomock.Controller) *MockTokenIntrospector
NewMockTokenIntrospector creates a new mock instance.
func (*MockTokenIntrospector) EXPECT ¶
func (m *MockTokenIntrospector) EXPECT() *MockTokenIntrospectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenIntrospector) IntrospectToken ¶
func (m *MockTokenIntrospector) IntrospectToken(ctx context.Context, token string, tokenUse oauth2.TokenType, accessRequest oauth2.AccessRequester, scopes []string) (oauth2.TokenType, error)
IntrospectToken mocks base method.
type MockTokenIntrospectorMockRecorder ¶
type MockTokenIntrospectorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenIntrospectorMockRecorder is the mock recorder for MockTokenIntrospector.
func (*MockTokenIntrospectorMockRecorder) IntrospectToken ¶
func (mr *MockTokenIntrospectorMockRecorder) IntrospectToken(ctx, token, tokenUse, accessRequest, scopes any) *gomock.Call
IntrospectToken indicates an expected call of IntrospectToken.
type MockTokenRevocationStorage ¶
type MockTokenRevocationStorage struct {
// contains filtered or unexported fields
}
MockTokenRevocationStorage is a mock of TokenRevocationStorage interface.
func NewMockTokenRevocationStorage ¶
func NewMockTokenRevocationStorage(ctrl *gomock.Controller) *MockTokenRevocationStorage
NewMockTokenRevocationStorage creates a new mock instance.
func (*MockTokenRevocationStorage) CreateAccessTokenSession ¶
func (m *MockTokenRevocationStorage) CreateAccessTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) CreateRefreshTokenSession ¶
func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(ctx context.Context, signature string, request oauth2.Requester) error
CreateRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) DeleteAccessTokenSession ¶
func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(ctx context.Context, signature string) error
DeleteAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) DeleteRefreshTokenSession ¶
func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(ctx context.Context, signature string) error
DeleteRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) EXPECT ¶
func (m *MockTokenRevocationStorage) EXPECT() *MockTokenRevocationStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenRevocationStorage) GetAccessTokenSession ¶
func (m *MockTokenRevocationStorage) GetAccessTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
GetAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) GetRefreshTokenSession ¶
func (m *MockTokenRevocationStorage) GetRefreshTokenSession(ctx context.Context, signature string, session oauth2.Session) (oauth2.Requester, error)
GetRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) RevokeAccessToken ¶
func (m *MockTokenRevocationStorage) RevokeAccessToken(ctx context.Context, requestID string) error
RevokeAccessToken mocks base method.
func (*MockTokenRevocationStorage) RevokeRefreshToken ¶
func (m *MockTokenRevocationStorage) RevokeRefreshToken(ctx context.Context, requestID string) error
RevokeRefreshToken mocks base method.
func (*MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod ¶
func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(ctx context.Context, requestID, signature string) error
RevokeRefreshTokenMaybeGracePeriod mocks base method.
type MockTokenRevocationStorageMockRecorder ¶
type MockTokenRevocationStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenRevocationStorageMockRecorder is the mock recorder for MockTokenRevocationStorage.
func (*MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(ctx, signature, request any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(ctx, signature, request any) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(ctx, signature any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(ctx, signature any) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) GetAccessTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(ctx, signature, session any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession ¶
func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(ctx, signature, session any) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) RevokeAccessToken ¶
func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(ctx, requestID any) *gomock.Call
RevokeAccessToken indicates an expected call of RevokeAccessToken.
func (*MockTokenRevocationStorageMockRecorder) RevokeRefreshToken ¶
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(ctx, requestID any) *gomock.Call
RevokeRefreshToken indicates an expected call of RevokeRefreshToken.
func (*MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod ¶
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(ctx, requestID, signature any) *gomock.Call
RevokeRefreshTokenMaybeGracePeriod indicates an expected call of RevokeRefreshTokenMaybeGracePeriod.
type MockTransactional ¶
type MockTransactional struct {
// contains filtered or unexported fields
}
MockTransactional is a mock of Transactional interface.
func NewMockTransactional ¶
func NewMockTransactional(ctrl *gomock.Controller) *MockTransactional
NewMockTransactional creates a new mock instance.
func (*MockTransactional) Commit ¶
func (m *MockTransactional) Commit(ctx context.Context) error
Commit mocks base method.
func (*MockTransactional) EXPECT ¶
func (m *MockTransactional) EXPECT() *MockTransactionalMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTransactionalMockRecorder ¶
type MockTransactionalMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionalMockRecorder is the mock recorder for MockTransactional.
func (*MockTransactionalMockRecorder) BeginTX ¶
func (mr *MockTransactionalMockRecorder) BeginTX(ctx any) *gomock.Call
BeginTX indicates an expected call of BeginTX.
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
- client_secret.go
- device_authorization_request.go
- device_handler.go
- device_oauth2_handler.go
- id_token_strategy.go
- introspector.go
- oauth2_auth_jwt_storage.go
- oauth2_client_storage.go
- oauth2_device_auth_storage.go
- oauth2_owner_storage.go
- oauth2_revoke_storage.go
- oauth2_storage.go
- oauth2_strategy.go
- openid_id_token_storage.go
- pkce_storage.go
- pushed_authorize_handler.go
- refresh_token_storage.go
- refresh_token_strategy.go
- request.go
- revoke_handler.go
- rw.go
- storage.go
- token_handler.go
- transactional.go