Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.AuthResponse, error)
- func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values, ...) (*duo.Response, error)
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.PreAuthResponse, error)
- type MockAPIMockRecorder
- type MockAccessRequester
- func (m *MockAccessRequester) AppendRequestedScope(arg0 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(arg0 string)
- func (m *MockAccessRequester) GrantScope(arg0 string)
- func (m *MockAccessRequester) Merge(arg0 oauth2.Requester)
- func (m *MockAccessRequester) Sanitize(arg0 []string) oauth2.Requester
- func (m *MockAccessRequester) SetID(arg0 string)
- func (m *MockAccessRequester) SetRequestedAudience(arg0 oauth2.Arguments)
- func (m *MockAccessRequester) SetRequestedScopes(arg0 oauth2.Arguments)
- func (m *MockAccessRequester) SetSession(arg0 oauth2.Session)
- type MockAccessRequesterMockRecorder
- func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(arg0 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(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) GrantScope(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) Merge(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) Sanitize(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetID(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(arg0 any) *gomock.Call
- func (mr *MockAccessRequesterMockRecorder) SetSession(arg0 any) *gomock.Call
- type MockAccessTokenStrategy
- func (m *MockAccessTokenStrategy) AccessTokenSignature(arg0 context.Context, arg1 string) string
- func (m *MockAccessTokenStrategy) EXPECT() *MockAccessTokenStrategyMockRecorder
- func (m *MockAccessTokenStrategy) GenerateAccessToken(arg0 context.Context, arg1 oauth2.Requester) (string, string, error)
- func (m *MockAccessTokenStrategy) ValidateAccessToken(arg0 context.Context, arg1 oauth2.Requester, arg2 string) error
- type MockAccessTokenStrategyMockRecorder
- type MockAutheliaCtx
- func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string)
- func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{})
- func (m *MockAutheliaCtx) Assert401KO(t *testing.T, message string)
- func (m *MockAutheliaCtx) Assert403KO(t *testing.T, message string)
- func (m *MockAutheliaCtx) Assert404KO(t *testing.T, message string)
- func (m *MockAutheliaCtx) Assert500KO(t *testing.T, message string)
- func (m *MockAutheliaCtx) AssertKO(t *testing.T, message string, code int)
- func (m *MockAutheliaCtx) Close()
- func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{})
- func (m *MockAutheliaCtx) GetResponseError(t *testing.T) (errResponse middlewares.ErrorResponse)
- func (m *MockAutheliaCtx) SetRequestBody(t *testing.T, body interface{})
- type MockClientCredentialsGrantStorage
- func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
- func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
- func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder
- func (m *MockClientCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
- type MockClientCredentialsGrantStorageMockRecorder
- func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call
- func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
- type MockNotifier
- type MockNotifierMockRecorder
- type MockOAuth2Storage
- func (m *MockOAuth2Storage) ClientAssertionJWTValid(arg0 context.Context, arg1 string) error
- func (m *MockOAuth2Storage) EXPECT() *MockOAuth2StorageMockRecorder
- func (m *MockOAuth2Storage) GetClient(arg0 context.Context, arg1 string) (oauth2.Client, error)
- func (m *MockOAuth2Storage) SetClientAssertionJWT(arg0 context.Context, arg1 string, arg2 time.Time) error
- type MockOAuth2StorageMockRecorder
- type MockPKCERequestStorage
- func (m *MockPKCERequestStorage) CreatePKCERequestSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
- func (m *MockPKCERequestStorage) DeletePKCERequestSession(arg0 context.Context, arg1 string) error
- func (m *MockPKCERequestStorage) EXPECT() *MockPKCERequestStorageMockRecorder
- func (m *MockPKCERequestStorage) GetPKCERequestSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
- type MockPKCERequestStorageMockRecorder
- func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(arg0, arg1 any) *gomock.Call
- func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(arg0, arg1, arg2 any) *gomock.Call
- type MockRandom
- func (m *MockRandom) Bytes() []byte
- func (m *MockRandom) BytesCustom(arg0 int, arg1 []byte) []byte
- func (m *MockRandom) BytesCustomErr(arg0 int, arg1 []byte) ([]byte, error)
- func (m *MockRandom) BytesErr() ([]byte, error)
- func (m *MockRandom) EXPECT() *MockRandomMockRecorder
- func (m *MockRandom) Int(arg0 *big.Int) *big.Int
- func (m *MockRandom) IntErr(arg0 *big.Int) (*big.Int, error)
- func (m *MockRandom) Intn(arg0 int) int
- func (m *MockRandom) IntnErr(arg0 int) (int, error)
- func (m *MockRandom) Prime(arg0 int) (*big.Int, error)
- func (m *MockRandom) Read(arg0 []byte) (int, error)
- func (m *MockRandom) StringCustom(arg0 int, arg1 string) string
- func (m *MockRandom) StringCustomErr(arg0 int, arg1 string) (string, error)
- type MockRandomMockRecorder
- func (mr *MockRandomMockRecorder) Bytes() *gomock.Call
- func (mr *MockRandomMockRecorder) BytesCustom(arg0, arg1 any) *gomock.Call
- func (mr *MockRandomMockRecorder) BytesCustomErr(arg0, arg1 any) *gomock.Call
- func (mr *MockRandomMockRecorder) BytesErr() *gomock.Call
- func (mr *MockRandomMockRecorder) Int(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) IntErr(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) Intn(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) IntnErr(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) Prime(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) Read(arg0 any) *gomock.Call
- func (mr *MockRandomMockRecorder) StringCustom(arg0, arg1 any) *gomock.Call
- func (mr *MockRandomMockRecorder) StringCustomErr(arg0, arg1 any) *gomock.Call
- type MockStorage
- func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 model.AuthenticationAttempt) error
- func (m *MockStorage) BeginTX(arg0 context.Context) (context.Context, error)
- func (m *MockStorage) Close() error
- func (m *MockStorage) Commit(arg0 context.Context) error
- func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 string, arg2 model.NullIP) error
- func (m *MockStorage) ConsumeOneTimeCode(arg0 context.Context, arg1 *model.OneTimeCode) error
- func (m *MockStorage) DeactivateOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
- func (m *MockStorage) DeactivateOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
- func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string) error
- func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error
- func (m *MockStorage) DeleteWebAuthnCredential(arg0 context.Context, arg1 string) error
- func (m *MockStorage) DeleteWebAuthnCredentialByUsername(arg0 context.Context, arg1, arg2 string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) ExistsTOTPHistory(arg0 context.Context, arg1 string, arg2 uint64) (bool, error)
- func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]model.AuthenticationAttempt, error)
- func (m *MockStorage) LoadIdentityVerification(arg0 context.Context, arg1 string) (*model.IdentityVerification, error)
- func (m *MockStorage) LoadOAuth2BlacklistedJTI(arg0 context.Context, arg1 string) (*model.OAuth2BlacklistedJTI, error)
- func (m *MockStorage) LoadOAuth2ConsentPreConfigurations(arg0 context.Context, arg1 string, arg2 uuid.UUID) (*storage.ConsentPreConfigRows, error)
- func (m *MockStorage) LoadOAuth2ConsentSessionByChallengeID(arg0 context.Context, arg1 uuid.UUID) (*model.OAuth2ConsentSession, error)
- func (m *MockStorage) LoadOAuth2PARContext(arg0 context.Context, arg1 string) (*model.OAuth2PARContext, error)
- func (m *MockStorage) LoadOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) (*model.OAuth2Session, error)
- func (m *MockStorage) LoadOneTimeCode(arg0 context.Context, arg1, arg2, arg3 string) (*model.OneTimeCode, error)
- func (m *MockStorage) LoadOneTimeCodeByID(arg0 context.Context, arg1 int) (*model.OneTimeCode, error)
- func (m *MockStorage) LoadOneTimeCodeByPublicID(arg0 context.Context, arg1 uuid.UUID) (*model.OneTimeCode, error)
- func (m *MockStorage) LoadOneTimeCodeBySignature(arg0 context.Context, arg1 string) (*model.OneTimeCode, error)
- func (m *MockStorage) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error)
- func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string) (*model.DuoDevice, error)
- func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*model.TOTPConfiguration, error)
- func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]model.TOTPConfiguration, error)
- func (m *MockStorage) LoadUserInfo(arg0 context.Context, arg1 string) (model.UserInfo, error)
- func (m *MockStorage) LoadUserOpaqueIdentifier(arg0 context.Context, arg1 uuid.UUID) (*model.UserOpaqueIdentifier, error)
- func (m *MockStorage) LoadUserOpaqueIdentifierBySignature(arg0 context.Context, arg1, arg2, arg3 string) (*model.UserOpaqueIdentifier, error)
- func (m *MockStorage) LoadUserOpaqueIdentifiers(arg0 context.Context) ([]model.UserOpaqueIdentifier, error)
- func (m *MockStorage) LoadWebAuthnCredentialByID(arg0 context.Context, arg1 int) (*model.WebAuthnCredential, error)
- func (m *MockStorage) LoadWebAuthnCredentials(arg0 context.Context, arg1, arg2 int) ([]model.WebAuthnCredential, error)
- func (m *MockStorage) LoadWebAuthnCredentialsByUsername(arg0 context.Context, arg1, arg2 string) ([]model.WebAuthnCredential, error)
- func (m *MockStorage) LoadWebAuthnUser(arg0 context.Context, arg1, arg2 string) (*model.WebAuthnUser, error)
- func (m *MockStorage) RevokeIdentityVerification(arg0 context.Context, arg1 string, arg2 model.NullIP) error
- func (m *MockStorage) RevokeOAuth2PARContext(arg0 context.Context, arg1 string) error
- func (m *MockStorage) RevokeOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
- func (m *MockStorage) RevokeOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
- func (m *MockStorage) RevokeOneTimeCode(arg0 context.Context, arg1 uuid.UUID, arg2 model.IP) error
- func (m *MockStorage) Rollback(arg0 context.Context) error
- func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 model.IdentityVerification) error
- func (m *MockStorage) SaveOAuth2BlacklistedJTI(arg0 context.Context, arg1 model.OAuth2BlacklistedJTI) error
- func (m *MockStorage) SaveOAuth2ConsentPreConfiguration(arg0 context.Context, arg1 model.OAuth2ConsentPreConfig) (int64, error)
- func (m *MockStorage) SaveOAuth2ConsentSession(arg0 context.Context, arg1 model.OAuth2ConsentSession) error
- func (m *MockStorage) SaveOAuth2ConsentSessionGranted(arg0 context.Context, arg1 int) error
- func (m *MockStorage) SaveOAuth2ConsentSessionResponse(arg0 context.Context, arg1 model.OAuth2ConsentSession, arg2 bool) error
- func (m *MockStorage) SaveOAuth2ConsentSessionSubject(arg0 context.Context, arg1 model.OAuth2ConsentSession) error
- func (m *MockStorage) SaveOAuth2PARContext(arg0 context.Context, arg1 model.OAuth2PARContext) error
- func (m *MockStorage) SaveOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 model.OAuth2Session) error
- func (m *MockStorage) SaveOneTimeCode(arg0 context.Context, arg1 model.OneTimeCode) (string, error)
- func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error
- func (m *MockStorage) SavePreferredDuoDevice(arg0 context.Context, arg1 model.DuoDevice) error
- func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 model.TOTPConfiguration) error
- func (m *MockStorage) SaveTOTPHistory(arg0 context.Context, arg1 string, arg2 uint64) error
- func (m *MockStorage) SaveUserOpaqueIdentifier(arg0 context.Context, arg1 model.UserOpaqueIdentifier) error
- func (m *MockStorage) SaveWebAuthnCredential(arg0 context.Context, arg1 model.WebAuthnCredential) error
- func (m *MockStorage) SaveWebAuthnUser(arg0 context.Context, arg1 model.WebAuthnUser) error
- func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error
- func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) (storage.EncryptionValidationResult, error)
- func (m *MockStorage) SchemaLatestVersion() (int, error)
- func (m *MockStorage) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error
- func (m *MockStorage) SchemaMigrationHistory(arg0 context.Context) ([]model.Migration, error)
- func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)
- func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)
- func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error)
- func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error)
- func (m *MockStorage) StartupCheck() error
- func (m *MockStorage) UpdateOAuth2PARContext(arg0 context.Context, arg1 model.OAuth2PARContext) error
- func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 int, arg2 sql.NullTime) error
- func (m *MockStorage) UpdateWebAuthnCredentialDescription(arg0 context.Context, arg1 string, arg2 int, arg3 string) error
- func (m *MockStorage) UpdateWebAuthnCredentialSignIn(arg0 context.Context, arg1 model.WebAuthnCredential) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) BeginTX(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) Close() *gomock.Call
- func (mr *MockStorageMockRecorder) Commit(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) ConsumeOneTimeCode(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeactivateOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteWebAuthnCredential(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteWebAuthnCredentialByUsername(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) ExistsTOTPHistory(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadIdentityVerification(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOAuth2ConsentPreConfigurations(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOAuth2PARContext(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOneTimeCode(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOneTimeCodeByID(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOneTimeCodeByPublicID(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadOneTimeCodeBySignature(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifiers(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialByID(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadWebAuthnCredentials(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialsByUsername(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) LoadWebAuthnUser(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) RevokeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) RevokeOAuth2PARContext(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) RevokeOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) RevokeOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) RevokeOneTimeCode(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) Rollback(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2ConsentPreConfiguration(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionSubject(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2PARContext(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveOneTimeCode(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveTOTPHistory(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveWebAuthnCredential(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveWebAuthnUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaLatestVersion() *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaTables(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) SchemaVersion(arg0 any) *gomock.Call
- func (mr *MockStorageMockRecorder) StartupCheck() *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateOAuth2PARContext(arg0, arg1 any) *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialDescription(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialSignIn(arg0, arg1 any) *gomock.Call
- type MockTOTP
- func (m *MockTOTP) EXPECT() *MockTOTPMockRecorder
- func (m *MockTOTP) Generate(arg0 totp.Context, arg1 string) (*model.TOTPConfiguration, error)
- func (m *MockTOTP) GenerateCustom(arg0 totp.Context, arg1, arg2, arg3 string, arg4, arg5, arg6 uint) (*model.TOTPConfiguration, error)
- func (m *MockTOTP) Options() model.TOTPOptions
- func (m *MockTOTP) Validate(arg0 totp.Context, arg1 string, arg2 *model.TOTPConfiguration) (bool, uint64, error)
- type MockTOTPMockRecorder
- func (mr *MockTOTPMockRecorder) Generate(arg0, arg1 any) *gomock.Call
- func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call
- func (mr *MockTOTPMockRecorder) Options() *gomock.Call
- func (mr *MockTOTPMockRecorder) Validate(arg0, arg1, arg2 any) *gomock.Call
- type MockTokenIntrospector
- type MockTokenIntrospectorMockRecorder
- type MockTokenRevocationStorage
- func (m *MockTokenRevocationStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
- func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
- func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
- func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error
- func (m *MockTokenRevocationStorage) EXPECT() *MockTokenRevocationStorageMockRecorder
- func (m *MockTokenRevocationStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
- func (m *MockTokenRevocationStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
- func (m *MockTokenRevocationStorage) RevokeAccessToken(arg0 context.Context, arg1 string) error
- func (m *MockTokenRevocationStorage) RevokeRefreshToken(arg0 context.Context, arg1 string) error
- func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(arg0 context.Context, arg1, arg2 string) error
- type MockTokenRevocationStorageMockRecorder
- func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(arg0, arg1 any) *gomock.Call
- func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(arg0, arg1, arg2 any) *gomock.Call
- type MockTransactional
- type MockTransactionalMockRecorder
- type MockUserProvider
- func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error)
- func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder
- func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error)
- func (m *MockUserProvider) StartupCheck() error
- func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error
- type MockUserProviderMockRecorder
- func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 any) *gomock.Call
- func (mr *MockUserProviderMockRecorder) GetDetails(arg0 any) *gomock.Call
- func (mr *MockUserProviderMockRecorder) StartupCheck() *gomock.Call
- func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) AuthCall ¶ added in v4.33.0
func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.AuthResponse, error)
AuthCall mocks base method.
func (*MockAPI) Call ¶
func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values, arg3, arg4 string) (*duo.Response, error)
Call mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) PreAuthCall ¶ added in v4.33.0
func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.PreAuthResponse, error)
PreAuthCall mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) AuthCall ¶ added in v4.33.0
func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1, arg2 any) *gomock.Call
AuthCall indicates an expected call of AuthCall.
func (*MockAPIMockRecorder) Call ¶
func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
Call indicates an expected call of Call.
func (*MockAPIMockRecorder) PreAuthCall ¶ added in v4.33.0
func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1, arg2 any) *gomock.Call
PreAuthCall indicates an expected call of PreAuthCall.
type MockAccessRequester ¶ added in v4.38.0
type MockAccessRequester struct {
// contains filtered or unexported fields
}
MockAccessRequester is a mock of AccessRequester interface.
func NewMockAccessRequester ¶ added in v4.38.0
func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester
NewMockAccessRequester creates a new mock instance.
func (*MockAccessRequester) AppendRequestedScope ¶ added in v4.38.0
func (m *MockAccessRequester) AppendRequestedScope(arg0 string)
AppendRequestedScope mocks base method.
func (*MockAccessRequester) EXPECT ¶ added in v4.38.0
func (m *MockAccessRequester) EXPECT() *MockAccessRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessRequester) GetClient ¶ added in v4.38.0
func (m *MockAccessRequester) GetClient() oauth2.Client
GetClient mocks base method.
func (*MockAccessRequester) GetGrantTypes ¶ added in v4.38.0
func (m *MockAccessRequester) GetGrantTypes() oauth2.Arguments
GetGrantTypes mocks base method.
func (*MockAccessRequester) GetGrantedAudience ¶ added in v4.38.0
func (m *MockAccessRequester) GetGrantedAudience() oauth2.Arguments
GetGrantedAudience mocks base method.
func (*MockAccessRequester) GetGrantedScopes ¶ added in v4.38.0
func (m *MockAccessRequester) GetGrantedScopes() oauth2.Arguments
GetGrantedScopes mocks base method.
func (*MockAccessRequester) GetID ¶ added in v4.38.0
func (m *MockAccessRequester) GetID() string
GetID mocks base method.
func (*MockAccessRequester) GetRequestForm ¶ added in v4.38.0
func (m *MockAccessRequester) GetRequestForm() url.Values
GetRequestForm mocks base method.
func (*MockAccessRequester) GetRequestedAt ¶ added in v4.38.0
func (m *MockAccessRequester) GetRequestedAt() time.Time
GetRequestedAt mocks base method.
func (*MockAccessRequester) GetRequestedAudience ¶ added in v4.38.0
func (m *MockAccessRequester) GetRequestedAudience() oauth2.Arguments
GetRequestedAudience mocks base method.
func (*MockAccessRequester) GetRequestedScopes ¶ added in v4.38.0
func (m *MockAccessRequester) GetRequestedScopes() oauth2.Arguments
GetRequestedScopes mocks base method.
func (*MockAccessRequester) GetSession ¶ added in v4.38.0
func (m *MockAccessRequester) GetSession() oauth2.Session
GetSession mocks base method.
func (*MockAccessRequester) GrantAudience ¶ added in v4.38.0
func (m *MockAccessRequester) GrantAudience(arg0 string)
GrantAudience mocks base method.
func (*MockAccessRequester) GrantScope ¶ added in v4.38.0
func (m *MockAccessRequester) GrantScope(arg0 string)
GrantScope mocks base method.
func (*MockAccessRequester) Merge ¶ added in v4.38.0
func (m *MockAccessRequester) Merge(arg0 oauth2.Requester)
Merge mocks base method.
func (*MockAccessRequester) Sanitize ¶ added in v4.38.0
func (m *MockAccessRequester) Sanitize(arg0 []string) oauth2.Requester
Sanitize mocks base method.
func (*MockAccessRequester) SetID ¶ added in v4.38.0
func (m *MockAccessRequester) SetID(arg0 string)
SetID mocks base method.
func (*MockAccessRequester) SetRequestedAudience ¶ added in v4.38.0
func (m *MockAccessRequester) SetRequestedAudience(arg0 oauth2.Arguments)
SetRequestedAudience mocks base method.
func (*MockAccessRequester) SetRequestedScopes ¶ added in v4.38.0
func (m *MockAccessRequester) SetRequestedScopes(arg0 oauth2.Arguments)
SetRequestedScopes mocks base method.
func (*MockAccessRequester) SetSession ¶ added in v4.38.0
func (m *MockAccessRequester) SetSession(arg0 oauth2.Session)
SetSession mocks base method.
type MockAccessRequesterMockRecorder ¶ added in v4.38.0
type MockAccessRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessRequesterMockRecorder is the mock recorder for MockAccessRequester.
func (*MockAccessRequesterMockRecorder) AppendRequestedScope ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(arg0 any) *gomock.Call
AppendRequestedScope indicates an expected call of AppendRequestedScope.
func (*MockAccessRequesterMockRecorder) GetClient ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetClient() *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockAccessRequesterMockRecorder) GetGrantTypes ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetGrantTypes() *gomock.Call
GetGrantTypes indicates an expected call of GetGrantTypes.
func (*MockAccessRequesterMockRecorder) GetGrantedAudience ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetGrantedAudience() *gomock.Call
GetGrantedAudience indicates an expected call of GetGrantedAudience.
func (*MockAccessRequesterMockRecorder) GetGrantedScopes ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetGrantedScopes() *gomock.Call
GetGrantedScopes indicates an expected call of GetGrantedScopes.
func (*MockAccessRequesterMockRecorder) GetID ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockAccessRequesterMockRecorder) GetRequestForm ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetRequestForm() *gomock.Call
GetRequestForm indicates an expected call of GetRequestForm.
func (*MockAccessRequesterMockRecorder) GetRequestedAt ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetRequestedAt() *gomock.Call
GetRequestedAt indicates an expected call of GetRequestedAt.
func (*MockAccessRequesterMockRecorder) GetRequestedAudience ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetRequestedAudience() *gomock.Call
GetRequestedAudience indicates an expected call of GetRequestedAudience.
func (*MockAccessRequesterMockRecorder) GetRequestedScopes ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetRequestedScopes() *gomock.Call
GetRequestedScopes indicates an expected call of GetRequestedScopes.
func (*MockAccessRequesterMockRecorder) GetSession ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockAccessRequesterMockRecorder) GrantAudience ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GrantAudience(arg0 any) *gomock.Call
GrantAudience indicates an expected call of GrantAudience.
func (*MockAccessRequesterMockRecorder) GrantScope ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) GrantScope(arg0 any) *gomock.Call
GrantScope indicates an expected call of GrantScope.
func (*MockAccessRequesterMockRecorder) Merge ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) Merge(arg0 any) *gomock.Call
Merge indicates an expected call of Merge.
func (*MockAccessRequesterMockRecorder) Sanitize ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) Sanitize(arg0 any) *gomock.Call
Sanitize indicates an expected call of Sanitize.
func (*MockAccessRequesterMockRecorder) SetID ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) SetID(arg0 any) *gomock.Call
SetID indicates an expected call of SetID.
func (*MockAccessRequesterMockRecorder) SetRequestedAudience ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(arg0 any) *gomock.Call
SetRequestedAudience indicates an expected call of SetRequestedAudience.
func (*MockAccessRequesterMockRecorder) SetRequestedScopes ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(arg0 any) *gomock.Call
SetRequestedScopes indicates an expected call of SetRequestedScopes.
func (*MockAccessRequesterMockRecorder) SetSession ¶ added in v4.38.0
func (mr *MockAccessRequesterMockRecorder) SetSession(arg0 any) *gomock.Call
SetSession indicates an expected call of SetSession.
type MockAccessTokenStrategy ¶ added in v4.38.0
type MockAccessTokenStrategy struct {
// contains filtered or unexported fields
}
MockAccessTokenStrategy is a mock of AccessTokenStrategy interface.
func NewMockAccessTokenStrategy ¶ added in v4.38.0
func NewMockAccessTokenStrategy(ctrl *gomock.Controller) *MockAccessTokenStrategy
NewMockAccessTokenStrategy creates a new mock instance.
func (*MockAccessTokenStrategy) AccessTokenSignature ¶ added in v4.38.0
func (m *MockAccessTokenStrategy) AccessTokenSignature(arg0 context.Context, arg1 string) string
AccessTokenSignature mocks base method.
func (*MockAccessTokenStrategy) EXPECT ¶ added in v4.38.0
func (m *MockAccessTokenStrategy) EXPECT() *MockAccessTokenStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccessTokenStrategy) GenerateAccessToken ¶ added in v4.38.0
func (m *MockAccessTokenStrategy) GenerateAccessToken(arg0 context.Context, arg1 oauth2.Requester) (string, string, error)
GenerateAccessToken mocks base method.
func (*MockAccessTokenStrategy) ValidateAccessToken ¶ added in v4.38.0
func (m *MockAccessTokenStrategy) ValidateAccessToken(arg0 context.Context, arg1 oauth2.Requester, arg2 string) error
ValidateAccessToken mocks base method.
type MockAccessTokenStrategyMockRecorder ¶ added in v4.38.0
type MockAccessTokenStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockAccessTokenStrategyMockRecorder is the mock recorder for MockAccessTokenStrategy.
func (*MockAccessTokenStrategyMockRecorder) AccessTokenSignature ¶ added in v4.38.0
func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(arg0, arg1 any) *gomock.Call
AccessTokenSignature indicates an expected call of AccessTokenSignature.
func (*MockAccessTokenStrategyMockRecorder) GenerateAccessToken ¶ added in v4.38.0
func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(arg0, arg1 any) *gomock.Call
GenerateAccessToken indicates an expected call of GenerateAccessToken.
func (*MockAccessTokenStrategyMockRecorder) ValidateAccessToken ¶ added in v4.38.0
func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 any) *gomock.Call
ValidateAccessToken indicates an expected call of ValidateAccessToken.
type MockAutheliaCtx ¶
type MockAutheliaCtx struct { // Logger hook. Hook *test.Hook Ctx *middlewares.AutheliaCtx Ctrl *gomock.Controller // Providers. UserProviderMock *MockUserProvider StorageMock *MockStorage NotifierMock *MockNotifier TOTPMock *MockTOTP RandomMock *MockRandom Clock clock.Fixed }
MockAutheliaCtx a mock of AutheliaCtx.
func NewMockAutheliaCtx ¶
func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx
NewMockAutheliaCtx create an instance of AutheliaCtx mock.
func NewMockAutheliaCtxWithUserSession ¶
func NewMockAutheliaCtxWithUserSession(t *testing.T, userSession session.UserSession) *MockAutheliaCtx
NewMockAutheliaCtxWithUserSession create an instance of AutheliaCtx mock with predefined user session.
func (*MockAutheliaCtx) Assert200KO ¶
func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string)
Assert200KO assert an error response from the service.
func (*MockAutheliaCtx) Assert200OK ¶
func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{})
Assert200OK assert a successful response from the service.
func (*MockAutheliaCtx) Assert401KO ¶
func (m *MockAutheliaCtx) Assert401KO(t *testing.T, message string)
Assert401KO assert an error response from the service.
func (*MockAutheliaCtx) Assert403KO ¶ added in v4.38.0
func (m *MockAutheliaCtx) Assert403KO(t *testing.T, message string)
Assert403KO assert an error response from the service.
func (*MockAutheliaCtx) Assert404KO ¶ added in v4.38.0
func (m *MockAutheliaCtx) Assert404KO(t *testing.T, message string)
Assert404KO assert an error response from the service.
func (*MockAutheliaCtx) Assert500KO ¶ added in v4.38.0
func (m *MockAutheliaCtx) Assert500KO(t *testing.T, message string)
Assert500KO assert an error response from the service.
func (*MockAutheliaCtx) AssertKO ¶ added in v4.38.0
func (m *MockAutheliaCtx) AssertKO(t *testing.T, message string, code int)
AssertKO assert an error response from the service.
func (*MockAutheliaCtx) GetResponseData ¶
func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{})
GetResponseData retrieves a response from the service.
func (*MockAutheliaCtx) GetResponseError ¶ added in v4.33.0
func (m *MockAutheliaCtx) GetResponseError(t *testing.T) (errResponse middlewares.ErrorResponse)
GetResponseError retrieves an error response from the service.
func (*MockAutheliaCtx) SetRequestBody ¶
func (m *MockAutheliaCtx) SetRequestBody(t *testing.T, body interface{})
SetRequestBody set the request body from a struct with json tags.
type MockClientCredentialsGrantStorage ¶ added in v4.38.0
type MockClientCredentialsGrantStorage struct {
// contains filtered or unexported fields
}
MockClientCredentialsGrantStorage is a mock of ClientCredentialsGrantStorage interface.
func NewMockClientCredentialsGrantStorage ¶ added in v4.38.0
func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage
NewMockClientCredentialsGrantStorage creates a new mock instance.
func (*MockClientCredentialsGrantStorage) CreateAccessTokenSession ¶ added in v4.38.0
func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockClientCredentialsGrantStorage) DeleteAccessTokenSession ¶ added in v4.38.0
func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method.
func (*MockClientCredentialsGrantStorage) EXPECT ¶ added in v4.38.0
func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientCredentialsGrantStorageMockRecorder ¶ added in v4.38.0
type MockClientCredentialsGrantStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockClientCredentialsGrantStorageMockRecorder is the mock recorder for MockClientCredentialsGrantStorage.
func (*MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession ¶ added in v4.38.0
func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession ¶ added in v4.38.0
func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession ¶ added in v4.38.0
func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
type MockNotifier ¶
type MockNotifier struct {
// contains filtered or unexported fields
}
MockNotifier is a mock of Notifier interface.
func NewMockNotifier ¶
func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier
NewMockNotifier creates a new mock instance.
func (*MockNotifier) EXPECT ¶
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNotifier) Send ¶
func (m *MockNotifier) Send(arg0 context.Context, arg1 mail.Address, arg2 string, arg3 *templates.EmailTemplate, arg4 any) error
Send mocks base method.
func (*MockNotifier) StartupCheck ¶
func (m *MockNotifier) StartupCheck() error
StartupCheck mocks base method.
type MockNotifierMockRecorder ¶
type MockNotifierMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifierMockRecorder is the mock recorder for MockNotifier.
func (*MockNotifierMockRecorder) Send ¶
func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockNotifierMockRecorder) StartupCheck ¶
func (mr *MockNotifierMockRecorder) StartupCheck() *gomock.Call
StartupCheck indicates an expected call of StartupCheck.
type MockOAuth2Storage ¶ added in v4.38.0
type MockOAuth2Storage struct {
// contains filtered or unexported fields
}
MockOAuth2Storage is a mock of Storage interface.
func NewMockOAuth2Storage ¶ added in v4.38.0
func NewMockOAuth2Storage(ctrl *gomock.Controller) *MockOAuth2Storage
NewMockOAuth2Storage creates a new mock instance.
func (*MockOAuth2Storage) ClientAssertionJWTValid ¶ added in v4.38.0
func (m *MockOAuth2Storage) ClientAssertionJWTValid(arg0 context.Context, arg1 string) error
ClientAssertionJWTValid mocks base method.
func (*MockOAuth2Storage) EXPECT ¶ added in v4.38.0
func (m *MockOAuth2Storage) EXPECT() *MockOAuth2StorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOAuth2Storage) SetClientAssertionJWT ¶ added in v4.38.0
func (m *MockOAuth2Storage) SetClientAssertionJWT(arg0 context.Context, arg1 string, arg2 time.Time) error
SetClientAssertionJWT mocks base method.
type MockOAuth2StorageMockRecorder ¶ added in v4.38.0
type MockOAuth2StorageMockRecorder struct {
// contains filtered or unexported fields
}
MockOAuth2StorageMockRecorder is the mock recorder for MockOAuth2Storage.
func (*MockOAuth2StorageMockRecorder) ClientAssertionJWTValid ¶ added in v4.38.0
func (mr *MockOAuth2StorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 any) *gomock.Call
ClientAssertionJWTValid indicates an expected call of ClientAssertionJWTValid.
func (*MockOAuth2StorageMockRecorder) GetClient ¶ added in v4.38.0
func (mr *MockOAuth2StorageMockRecorder) GetClient(arg0, arg1 any) *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockOAuth2StorageMockRecorder) SetClientAssertionJWT ¶ added in v4.38.0
func (mr *MockOAuth2StorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 any) *gomock.Call
SetClientAssertionJWT indicates an expected call of SetClientAssertionJWT.
type MockPKCERequestStorage ¶ added in v4.38.0
type MockPKCERequestStorage struct {
// contains filtered or unexported fields
}
MockPKCERequestStorage is a mock of PKCERequestStorage interface.
func NewMockPKCERequestStorage ¶ added in v4.38.0
func NewMockPKCERequestStorage(ctrl *gomock.Controller) *MockPKCERequestStorage
NewMockPKCERequestStorage creates a new mock instance.
func (*MockPKCERequestStorage) CreatePKCERequestSession ¶ added in v4.38.0
func (m *MockPKCERequestStorage) CreatePKCERequestSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
CreatePKCERequestSession mocks base method.
func (*MockPKCERequestStorage) DeletePKCERequestSession ¶ added in v4.38.0
func (m *MockPKCERequestStorage) DeletePKCERequestSession(arg0 context.Context, arg1 string) error
DeletePKCERequestSession mocks base method.
func (*MockPKCERequestStorage) EXPECT ¶ added in v4.38.0
func (m *MockPKCERequestStorage) EXPECT() *MockPKCERequestStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPKCERequestStorageMockRecorder ¶ added in v4.38.0
type MockPKCERequestStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockPKCERequestStorageMockRecorder is the mock recorder for MockPKCERequestStorage.
func (*MockPKCERequestStorageMockRecorder) CreatePKCERequestSession ¶ added in v4.38.0
func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(arg0, arg1, arg2 any) *gomock.Call
CreatePKCERequestSession indicates an expected call of CreatePKCERequestSession.
func (*MockPKCERequestStorageMockRecorder) DeletePKCERequestSession ¶ added in v4.38.0
func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(arg0, arg1 any) *gomock.Call
DeletePKCERequestSession indicates an expected call of DeletePKCERequestSession.
func (*MockPKCERequestStorageMockRecorder) GetPKCERequestSession ¶ added in v4.38.0
func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(arg0, arg1, arg2 any) *gomock.Call
GetPKCERequestSession indicates an expected call of GetPKCERequestSession.
type MockRandom ¶ added in v4.38.0
type MockRandom struct {
// contains filtered or unexported fields
}
MockRandom is a mock of Provider interface.
func NewMockRandom ¶ added in v4.38.0
func NewMockRandom(ctrl *gomock.Controller) *MockRandom
NewMockRandom creates a new mock instance.
func (*MockRandom) Bytes ¶ added in v4.38.0
func (m *MockRandom) Bytes() []byte
Bytes mocks base method.
func (*MockRandom) BytesCustom ¶ added in v4.38.0
func (m *MockRandom) BytesCustom(arg0 int, arg1 []byte) []byte
BytesCustom mocks base method.
func (*MockRandom) BytesCustomErr ¶ added in v4.38.0
func (m *MockRandom) BytesCustomErr(arg0 int, arg1 []byte) ([]byte, error)
BytesCustomErr mocks base method.
func (*MockRandom) BytesErr ¶ added in v4.38.0
func (m *MockRandom) BytesErr() ([]byte, error)
BytesErr mocks base method.
func (*MockRandom) EXPECT ¶ added in v4.38.0
func (m *MockRandom) EXPECT() *MockRandomMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRandom) Int ¶ added in v4.38.0
func (m *MockRandom) Int(arg0 *big.Int) *big.Int
Int mocks base method.
func (*MockRandom) Intn ¶ added in v4.38.0
func (m *MockRandom) Intn(arg0 int) int
Intn mocks base method.
func (*MockRandom) IntnErr ¶ added in v4.38.0
func (m *MockRandom) IntnErr(arg0 int) (int, error)
IntnErr mocks base method.
func (*MockRandom) Prime ¶ added in v4.38.0
func (m *MockRandom) Prime(arg0 int) (*big.Int, error)
Prime mocks base method.
func (*MockRandom) Read ¶ added in v4.38.0
func (m *MockRandom) Read(arg0 []byte) (int, error)
Read mocks base method.
func (*MockRandom) StringCustom ¶ added in v4.38.0
func (m *MockRandom) StringCustom(arg0 int, arg1 string) string
StringCustom mocks base method.
func (*MockRandom) StringCustomErr ¶ added in v4.38.0
func (m *MockRandom) StringCustomErr(arg0 int, arg1 string) (string, error)
StringCustomErr mocks base method.
type MockRandomMockRecorder ¶ added in v4.38.0
type MockRandomMockRecorder struct {
// contains filtered or unexported fields
}
MockRandomMockRecorder is the mock recorder for MockRandom.
func (*MockRandomMockRecorder) Bytes ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockRandomMockRecorder) BytesCustom ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) BytesCustom(arg0, arg1 any) *gomock.Call
BytesCustom indicates an expected call of BytesCustom.
func (*MockRandomMockRecorder) BytesCustomErr ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) BytesCustomErr(arg0, arg1 any) *gomock.Call
BytesCustomErr indicates an expected call of BytesCustomErr.
func (*MockRandomMockRecorder) BytesErr ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) BytesErr() *gomock.Call
BytesErr indicates an expected call of BytesErr.
func (*MockRandomMockRecorder) Int ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) Int(arg0 any) *gomock.Call
Int indicates an expected call of Int.
func (*MockRandomMockRecorder) IntErr ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) IntErr(arg0 any) *gomock.Call
IntErr indicates an expected call of IntErr.
func (*MockRandomMockRecorder) Intn ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) Intn(arg0 any) *gomock.Call
Intn indicates an expected call of Intn.
func (*MockRandomMockRecorder) IntnErr ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) IntnErr(arg0 any) *gomock.Call
IntnErr indicates an expected call of IntnErr.
func (*MockRandomMockRecorder) Prime ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) Prime(arg0 any) *gomock.Call
Prime indicates an expected call of Prime.
func (*MockRandomMockRecorder) Read ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) Read(arg0 any) *gomock.Call
Read indicates an expected call of Read.
func (*MockRandomMockRecorder) StringCustom ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) StringCustom(arg0, arg1 any) *gomock.Call
StringCustom indicates an expected call of StringCustom.
func (*MockRandomMockRecorder) StringCustomErr ¶ added in v4.38.0
func (mr *MockRandomMockRecorder) StringCustomErr(arg0, arg1 any) *gomock.Call
StringCustomErr indicates an expected call of StringCustomErr.
type MockStorage ¶ added in v4.33.0
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Provider interface.
func NewMockStorage ¶ added in v4.33.0
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) AppendAuthenticationLog ¶ added in v4.33.0
func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 model.AuthenticationAttempt) error
AppendAuthenticationLog mocks base method.
func (*MockStorage) Close ¶ added in v4.33.0
func (m *MockStorage) Close() error
Close mocks base method.
func (*MockStorage) Commit ¶ added in v4.35.0
func (m *MockStorage) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MockStorage) ConsumeIdentityVerification ¶ added in v4.33.0
func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 string, arg2 model.NullIP) error
ConsumeIdentityVerification mocks base method.
func (*MockStorage) ConsumeOneTimeCode ¶ added in v4.38.0
func (m *MockStorage) ConsumeOneTimeCode(arg0 context.Context, arg1 *model.OneTimeCode) error
ConsumeOneTimeCode mocks base method.
func (*MockStorage) DeactivateOAuth2Session ¶ added in v4.35.0
func (m *MockStorage) DeactivateOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
DeactivateOAuth2Session mocks base method.
func (*MockStorage) DeactivateOAuth2SessionByRequestID ¶ added in v4.35.0
func (m *MockStorage) DeactivateOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
DeactivateOAuth2SessionByRequestID mocks base method.
func (*MockStorage) DeletePreferredDuoDevice ¶ added in v4.33.0
func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string) error
DeletePreferredDuoDevice mocks base method.
func (*MockStorage) DeleteTOTPConfiguration ¶ added in v4.33.0
func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error
DeleteTOTPConfiguration mocks base method.
func (*MockStorage) DeleteWebAuthnCredential ¶ added in v4.38.0
func (m *MockStorage) DeleteWebAuthnCredential(arg0 context.Context, arg1 string) error
DeleteWebAuthnCredential mocks base method.
func (*MockStorage) DeleteWebAuthnCredentialByUsername ¶ added in v4.38.0
func (m *MockStorage) DeleteWebAuthnCredentialByUsername(arg0 context.Context, arg1, arg2 string) error
DeleteWebAuthnCredentialByUsername mocks base method.
func (*MockStorage) EXPECT ¶ added in v4.33.0
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) ExistsTOTPHistory ¶ added in v4.38.0
func (m *MockStorage) ExistsTOTPHistory(arg0 context.Context, arg1 string, arg2 uint64) (bool, error)
ExistsTOTPHistory mocks base method.
func (*MockStorage) FindIdentityVerification ¶ added in v4.33.0
FindIdentityVerification mocks base method.
func (*MockStorage) LoadAuthenticationLogs ¶ added in v4.33.0
func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]model.AuthenticationAttempt, error)
LoadAuthenticationLogs mocks base method.
func (*MockStorage) LoadIdentityVerification ¶ added in v4.38.0
func (m *MockStorage) LoadIdentityVerification(arg0 context.Context, arg1 string) (*model.IdentityVerification, error)
LoadIdentityVerification mocks base method.
func (*MockStorage) LoadOAuth2BlacklistedJTI ¶ added in v4.35.0
func (m *MockStorage) LoadOAuth2BlacklistedJTI(arg0 context.Context, arg1 string) (*model.OAuth2BlacklistedJTI, error)
LoadOAuth2BlacklistedJTI mocks base method.
func (*MockStorage) LoadOAuth2ConsentPreConfigurations ¶ added in v4.37.0
func (m *MockStorage) LoadOAuth2ConsentPreConfigurations(arg0 context.Context, arg1 string, arg2 uuid.UUID) (*storage.ConsentPreConfigRows, error)
LoadOAuth2ConsentPreConfigurations mocks base method.
func (*MockStorage) LoadOAuth2ConsentSessionByChallengeID ¶ added in v4.35.0
func (m *MockStorage) LoadOAuth2ConsentSessionByChallengeID(arg0 context.Context, arg1 uuid.UUID) (*model.OAuth2ConsentSession, error)
LoadOAuth2ConsentSessionByChallengeID mocks base method.
func (*MockStorage) LoadOAuth2PARContext ¶ added in v4.38.0
func (m *MockStorage) LoadOAuth2PARContext(arg0 context.Context, arg1 string) (*model.OAuth2PARContext, error)
LoadOAuth2PARContext mocks base method.
func (*MockStorage) LoadOAuth2Session ¶ added in v4.35.0
func (m *MockStorage) LoadOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) (*model.OAuth2Session, error)
LoadOAuth2Session mocks base method.
func (*MockStorage) LoadOneTimeCode ¶ added in v4.38.0
func (m *MockStorage) LoadOneTimeCode(arg0 context.Context, arg1, arg2, arg3 string) (*model.OneTimeCode, error)
LoadOneTimeCode mocks base method.
func (*MockStorage) LoadOneTimeCodeByID ¶ added in v4.38.0
func (m *MockStorage) LoadOneTimeCodeByID(arg0 context.Context, arg1 int) (*model.OneTimeCode, error)
LoadOneTimeCodeByID mocks base method.
func (*MockStorage) LoadOneTimeCodeByPublicID ¶ added in v4.38.0
func (m *MockStorage) LoadOneTimeCodeByPublicID(arg0 context.Context, arg1 uuid.UUID) (*model.OneTimeCode, error)
LoadOneTimeCodeByPublicID mocks base method.
func (*MockStorage) LoadOneTimeCodeBySignature ¶ added in v4.38.0
func (m *MockStorage) LoadOneTimeCodeBySignature(arg0 context.Context, arg1 string) (*model.OneTimeCode, error)
LoadOneTimeCodeBySignature mocks base method.
func (*MockStorage) LoadPreferred2FAMethod ¶ added in v4.33.0
LoadPreferred2FAMethod mocks base method.
func (*MockStorage) LoadPreferredDuoDevice ¶ added in v4.33.0
func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string) (*model.DuoDevice, error)
LoadPreferredDuoDevice mocks base method.
func (*MockStorage) LoadTOTPConfiguration ¶ added in v4.33.0
func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*model.TOTPConfiguration, error)
LoadTOTPConfiguration mocks base method.
func (*MockStorage) LoadTOTPConfigurations ¶ added in v4.33.0
func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]model.TOTPConfiguration, error)
LoadTOTPConfigurations mocks base method.
func (*MockStorage) LoadUserInfo ¶ added in v4.33.0
LoadUserInfo mocks base method.
func (*MockStorage) LoadUserOpaqueIdentifier ¶ added in v4.35.0
func (m *MockStorage) LoadUserOpaqueIdentifier(arg0 context.Context, arg1 uuid.UUID) (*model.UserOpaqueIdentifier, error)
LoadUserOpaqueIdentifier mocks base method.
func (*MockStorage) LoadUserOpaqueIdentifierBySignature ¶ added in v4.35.0
func (m *MockStorage) LoadUserOpaqueIdentifierBySignature(arg0 context.Context, arg1, arg2, arg3 string) (*model.UserOpaqueIdentifier, error)
LoadUserOpaqueIdentifierBySignature mocks base method.
func (*MockStorage) LoadUserOpaqueIdentifiers ¶ added in v4.35.0
func (m *MockStorage) LoadUserOpaqueIdentifiers(arg0 context.Context) ([]model.UserOpaqueIdentifier, error)
LoadUserOpaqueIdentifiers mocks base method.
func (*MockStorage) LoadWebAuthnCredentialByID ¶ added in v4.38.0
func (m *MockStorage) LoadWebAuthnCredentialByID(arg0 context.Context, arg1 int) (*model.WebAuthnCredential, error)
LoadWebAuthnCredentialByID mocks base method.
func (*MockStorage) LoadWebAuthnCredentials ¶ added in v4.38.0
func (m *MockStorage) LoadWebAuthnCredentials(arg0 context.Context, arg1, arg2 int) ([]model.WebAuthnCredential, error)
LoadWebAuthnCredentials mocks base method.
func (*MockStorage) LoadWebAuthnCredentialsByUsername ¶ added in v4.38.0
func (m *MockStorage) LoadWebAuthnCredentialsByUsername(arg0 context.Context, arg1, arg2 string) ([]model.WebAuthnCredential, error)
LoadWebAuthnCredentialsByUsername mocks base method.
func (*MockStorage) LoadWebAuthnUser ¶ added in v4.38.0
func (m *MockStorage) LoadWebAuthnUser(arg0 context.Context, arg1, arg2 string) (*model.WebAuthnUser, error)
LoadWebAuthnUser mocks base method.
func (*MockStorage) RevokeIdentityVerification ¶ added in v4.38.0
func (m *MockStorage) RevokeIdentityVerification(arg0 context.Context, arg1 string, arg2 model.NullIP) error
RevokeIdentityVerification mocks base method.
func (*MockStorage) RevokeOAuth2PARContext ¶ added in v4.38.0
func (m *MockStorage) RevokeOAuth2PARContext(arg0 context.Context, arg1 string) error
RevokeOAuth2PARContext mocks base method.
func (*MockStorage) RevokeOAuth2Session ¶ added in v4.35.0
func (m *MockStorage) RevokeOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
RevokeOAuth2Session mocks base method.
func (*MockStorage) RevokeOAuth2SessionByRequestID ¶ added in v4.35.0
func (m *MockStorage) RevokeOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error
RevokeOAuth2SessionByRequestID mocks base method.
func (*MockStorage) RevokeOneTimeCode ¶ added in v4.38.0
RevokeOneTimeCode mocks base method.
func (*MockStorage) Rollback ¶ added in v4.35.0
func (m *MockStorage) Rollback(arg0 context.Context) error
Rollback mocks base method.
func (*MockStorage) SaveIdentityVerification ¶ added in v4.33.0
func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 model.IdentityVerification) error
SaveIdentityVerification mocks base method.
func (*MockStorage) SaveOAuth2BlacklistedJTI ¶ added in v4.35.0
func (m *MockStorage) SaveOAuth2BlacklistedJTI(arg0 context.Context, arg1 model.OAuth2BlacklistedJTI) error
SaveOAuth2BlacklistedJTI mocks base method.
func (*MockStorage) SaveOAuth2ConsentPreConfiguration ¶ added in v4.37.0
func (m *MockStorage) SaveOAuth2ConsentPreConfiguration(arg0 context.Context, arg1 model.OAuth2ConsentPreConfig) (int64, error)
SaveOAuth2ConsentPreConfiguration mocks base method.
func (*MockStorage) SaveOAuth2ConsentSession ¶ added in v4.35.0
func (m *MockStorage) SaveOAuth2ConsentSession(arg0 context.Context, arg1 model.OAuth2ConsentSession) error
SaveOAuth2ConsentSession mocks base method.
func (*MockStorage) SaveOAuth2ConsentSessionGranted ¶ added in v4.35.0
func (m *MockStorage) SaveOAuth2ConsentSessionGranted(arg0 context.Context, arg1 int) error
SaveOAuth2ConsentSessionGranted mocks base method.
func (*MockStorage) SaveOAuth2ConsentSessionResponse ¶ added in v4.35.0
func (m *MockStorage) SaveOAuth2ConsentSessionResponse(arg0 context.Context, arg1 model.OAuth2ConsentSession, arg2 bool) error
SaveOAuth2ConsentSessionResponse mocks base method.
func (*MockStorage) SaveOAuth2ConsentSessionSubject ¶ added in v4.35.1
func (m *MockStorage) SaveOAuth2ConsentSessionSubject(arg0 context.Context, arg1 model.OAuth2ConsentSession) error
SaveOAuth2ConsentSessionSubject mocks base method.
func (*MockStorage) SaveOAuth2PARContext ¶ added in v4.38.0
func (m *MockStorage) SaveOAuth2PARContext(arg0 context.Context, arg1 model.OAuth2PARContext) error
SaveOAuth2PARContext mocks base method.
func (*MockStorage) SaveOAuth2Session ¶ added in v4.35.0
func (m *MockStorage) SaveOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 model.OAuth2Session) error
SaveOAuth2Session mocks base method.
func (*MockStorage) SaveOneTimeCode ¶ added in v4.38.0
func (m *MockStorage) SaveOneTimeCode(arg0 context.Context, arg1 model.OneTimeCode) (string, error)
SaveOneTimeCode mocks base method.
func (*MockStorage) SavePreferred2FAMethod ¶ added in v4.33.0
func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error
SavePreferred2FAMethod mocks base method.
func (*MockStorage) SavePreferredDuoDevice ¶ added in v4.33.0
SavePreferredDuoDevice mocks base method.
func (*MockStorage) SaveTOTPConfiguration ¶ added in v4.33.0
func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 model.TOTPConfiguration) error
SaveTOTPConfiguration mocks base method.
func (*MockStorage) SaveTOTPHistory ¶ added in v4.38.0
SaveTOTPHistory mocks base method.
func (*MockStorage) SaveUserOpaqueIdentifier ¶ added in v4.35.0
func (m *MockStorage) SaveUserOpaqueIdentifier(arg0 context.Context, arg1 model.UserOpaqueIdentifier) error
SaveUserOpaqueIdentifier mocks base method.
func (*MockStorage) SaveWebAuthnCredential ¶ added in v4.38.0
func (m *MockStorage) SaveWebAuthnCredential(arg0 context.Context, arg1 model.WebAuthnCredential) error
SaveWebAuthnCredential mocks base method.
func (*MockStorage) SaveWebAuthnUser ¶ added in v4.38.0
func (m *MockStorage) SaveWebAuthnUser(arg0 context.Context, arg1 model.WebAuthnUser) error
SaveWebAuthnUser mocks base method.
func (*MockStorage) SchemaEncryptionChangeKey ¶ added in v4.33.0
func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error
SchemaEncryptionChangeKey mocks base method.
func (*MockStorage) SchemaEncryptionCheckKey ¶ added in v4.33.0
func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) (storage.EncryptionValidationResult, error)
SchemaEncryptionCheckKey mocks base method.
func (*MockStorage) SchemaLatestVersion ¶ added in v4.33.0
func (m *MockStorage) SchemaLatestVersion() (int, error)
SchemaLatestVersion mocks base method.
func (*MockStorage) SchemaMigrate ¶ added in v4.33.0
SchemaMigrate mocks base method.
func (*MockStorage) SchemaMigrationHistory ¶ added in v4.33.0
SchemaMigrationHistory mocks base method.
func (*MockStorage) SchemaMigrationsDown ¶ added in v4.33.0
func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)
SchemaMigrationsDown mocks base method.
func (*MockStorage) SchemaMigrationsUp ¶ added in v4.33.0
func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)
SchemaMigrationsUp mocks base method.
func (*MockStorage) SchemaTables ¶ added in v4.33.0
func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error)
SchemaTables mocks base method.
func (*MockStorage) SchemaVersion ¶ added in v4.33.0
func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error)
SchemaVersion mocks base method.
func (*MockStorage) StartupCheck ¶ added in v4.33.0
func (m *MockStorage) StartupCheck() error
StartupCheck mocks base method.
func (*MockStorage) UpdateOAuth2PARContext ¶ added in v4.38.0
func (m *MockStorage) UpdateOAuth2PARContext(arg0 context.Context, arg1 model.OAuth2PARContext) error
UpdateOAuth2PARContext mocks base method.
func (*MockStorage) UpdateTOTPConfigurationSignIn ¶ added in v4.34.0
func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 int, arg2 sql.NullTime) error
UpdateTOTPConfigurationSignIn mocks base method.
func (*MockStorage) UpdateWebAuthnCredentialDescription ¶ added in v4.38.0
func (m *MockStorage) UpdateWebAuthnCredentialDescription(arg0 context.Context, arg1 string, arg2 int, arg3 string) error
UpdateWebAuthnCredentialDescription mocks base method.
func (*MockStorage) UpdateWebAuthnCredentialSignIn ¶ added in v4.38.0
func (m *MockStorage) UpdateWebAuthnCredentialSignIn(arg0 context.Context, arg1 model.WebAuthnCredential) error
UpdateWebAuthnCredentialSignIn mocks base method.
type MockStorageMockRecorder ¶ added in v4.33.0
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) AppendAuthenticationLog ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 any) *gomock.Call
AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.
func (*MockStorageMockRecorder) BeginTX ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) BeginTX(arg0 any) *gomock.Call
BeginTX indicates an expected call of BeginTX.
func (*MockStorageMockRecorder) Close ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStorageMockRecorder) Commit ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) Commit(arg0 any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockStorageMockRecorder) ConsumeIdentityVerification ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call
ConsumeIdentityVerification indicates an expected call of ConsumeIdentityVerification.
func (*MockStorageMockRecorder) ConsumeOneTimeCode ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) ConsumeOneTimeCode(arg0, arg1 any) *gomock.Call
ConsumeOneTimeCode indicates an expected call of ConsumeOneTimeCode.
func (*MockStorageMockRecorder) DeactivateOAuth2Session ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) DeactivateOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
DeactivateOAuth2Session indicates an expected call of DeactivateOAuth2Session.
func (*MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call
DeactivateOAuth2SessionByRequestID indicates an expected call of DeactivateOAuth2SessionByRequestID.
func (*MockStorageMockRecorder) DeletePreferredDuoDevice ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 any) *gomock.Call
DeletePreferredDuoDevice indicates an expected call of DeletePreferredDuoDevice.
func (*MockStorageMockRecorder) DeleteTOTPConfiguration ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 any) *gomock.Call
DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.
func (*MockStorageMockRecorder) DeleteWebAuthnCredential ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) DeleteWebAuthnCredential(arg0, arg1 any) *gomock.Call
DeleteWebAuthnCredential indicates an expected call of DeleteWebAuthnCredential.
func (*MockStorageMockRecorder) DeleteWebAuthnCredentialByUsername ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) DeleteWebAuthnCredentialByUsername(arg0, arg1, arg2 any) *gomock.Call
DeleteWebAuthnCredentialByUsername indicates an expected call of DeleteWebAuthnCredentialByUsername.
func (*MockStorageMockRecorder) ExistsTOTPHistory ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) ExistsTOTPHistory(arg0, arg1, arg2 any) *gomock.Call
ExistsTOTPHistory indicates an expected call of ExistsTOTPHistory.
func (*MockStorageMockRecorder) FindIdentityVerification ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 any) *gomock.Call
FindIdentityVerification indicates an expected call of FindIdentityVerification.
func (*MockStorageMockRecorder) LoadAuthenticationLogs ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.
func (*MockStorageMockRecorder) LoadIdentityVerification ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadIdentityVerification(arg0, arg1 any) *gomock.Call
LoadIdentityVerification indicates an expected call of LoadIdentityVerification.
func (*MockStorageMockRecorder) LoadOAuth2BlacklistedJTI ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call
LoadOAuth2BlacklistedJTI indicates an expected call of LoadOAuth2BlacklistedJTI.
func (*MockStorageMockRecorder) LoadOAuth2ConsentPreConfigurations ¶ added in v4.37.0
func (mr *MockStorageMockRecorder) LoadOAuth2ConsentPreConfigurations(arg0, arg1, arg2 any) *gomock.Call
LoadOAuth2ConsentPreConfigurations indicates an expected call of LoadOAuth2ConsentPreConfigurations.
func (*MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID(arg0, arg1 any) *gomock.Call
LoadOAuth2ConsentSessionByChallengeID indicates an expected call of LoadOAuth2ConsentSessionByChallengeID.
func (*MockStorageMockRecorder) LoadOAuth2PARContext ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadOAuth2PARContext(arg0, arg1 any) *gomock.Call
LoadOAuth2PARContext indicates an expected call of LoadOAuth2PARContext.
func (*MockStorageMockRecorder) LoadOAuth2Session ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
LoadOAuth2Session indicates an expected call of LoadOAuth2Session.
func (*MockStorageMockRecorder) LoadOneTimeCode ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadOneTimeCode(arg0, arg1, arg2, arg3 any) *gomock.Call
LoadOneTimeCode indicates an expected call of LoadOneTimeCode.
func (*MockStorageMockRecorder) LoadOneTimeCodeByID ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadOneTimeCodeByID(arg0, arg1 any) *gomock.Call
LoadOneTimeCodeByID indicates an expected call of LoadOneTimeCodeByID.
func (*MockStorageMockRecorder) LoadOneTimeCodeByPublicID ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadOneTimeCodeByPublicID(arg0, arg1 any) *gomock.Call
LoadOneTimeCodeByPublicID indicates an expected call of LoadOneTimeCodeByPublicID.
func (*MockStorageMockRecorder) LoadOneTimeCodeBySignature ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadOneTimeCodeBySignature(arg0, arg1 any) *gomock.Call
LoadOneTimeCodeBySignature indicates an expected call of LoadOneTimeCodeBySignature.
func (*MockStorageMockRecorder) LoadPreferred2FAMethod ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 any) *gomock.Call
LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.
func (*MockStorageMockRecorder) LoadPreferredDuoDevice ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 any) *gomock.Call
LoadPreferredDuoDevice indicates an expected call of LoadPreferredDuoDevice.
func (*MockStorageMockRecorder) LoadTOTPConfiguration ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 any) *gomock.Call
LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.
func (*MockStorageMockRecorder) LoadTOTPConfigurations ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 any) *gomock.Call
LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.
func (*MockStorageMockRecorder) LoadUserInfo ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 any) *gomock.Call
LoadUserInfo indicates an expected call of LoadUserInfo.
func (*MockStorageMockRecorder) LoadUserOpaqueIdentifier ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call
LoadUserOpaqueIdentifier indicates an expected call of LoadUserOpaqueIdentifier.
func (*MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature(arg0, arg1, arg2, arg3 any) *gomock.Call
LoadUserOpaqueIdentifierBySignature indicates an expected call of LoadUserOpaqueIdentifierBySignature.
func (*MockStorageMockRecorder) LoadUserOpaqueIdentifiers ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifiers(arg0 any) *gomock.Call
LoadUserOpaqueIdentifiers indicates an expected call of LoadUserOpaqueIdentifiers.
func (*MockStorageMockRecorder) LoadWebAuthnCredentialByID ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialByID(arg0, arg1 any) *gomock.Call
LoadWebAuthnCredentialByID indicates an expected call of LoadWebAuthnCredentialByID.
func (*MockStorageMockRecorder) LoadWebAuthnCredentials ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadWebAuthnCredentials(arg0, arg1, arg2 any) *gomock.Call
LoadWebAuthnCredentials indicates an expected call of LoadWebAuthnCredentials.
func (*MockStorageMockRecorder) LoadWebAuthnCredentialsByUsername ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialsByUsername(arg0, arg1, arg2 any) *gomock.Call
LoadWebAuthnCredentialsByUsername indicates an expected call of LoadWebAuthnCredentialsByUsername.
func (*MockStorageMockRecorder) LoadWebAuthnUser ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) LoadWebAuthnUser(arg0, arg1, arg2 any) *gomock.Call
LoadWebAuthnUser indicates an expected call of LoadWebAuthnUser.
func (*MockStorageMockRecorder) RevokeIdentityVerification ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) RevokeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call
RevokeIdentityVerification indicates an expected call of RevokeIdentityVerification.
func (*MockStorageMockRecorder) RevokeOAuth2PARContext ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) RevokeOAuth2PARContext(arg0, arg1 any) *gomock.Call
RevokeOAuth2PARContext indicates an expected call of RevokeOAuth2PARContext.
func (*MockStorageMockRecorder) RevokeOAuth2Session ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) RevokeOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
RevokeOAuth2Session indicates an expected call of RevokeOAuth2Session.
func (*MockStorageMockRecorder) RevokeOAuth2SessionByRequestID ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) RevokeOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call
RevokeOAuth2SessionByRequestID indicates an expected call of RevokeOAuth2SessionByRequestID.
func (*MockStorageMockRecorder) RevokeOneTimeCode ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) RevokeOneTimeCode(arg0, arg1, arg2 any) *gomock.Call
RevokeOneTimeCode indicates an expected call of RevokeOneTimeCode.
func (*MockStorageMockRecorder) Rollback ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) Rollback(arg0 any) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockStorageMockRecorder) SaveIdentityVerification ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 any) *gomock.Call
SaveIdentityVerification indicates an expected call of SaveIdentityVerification.
func (*MockStorageMockRecorder) SaveOAuth2BlacklistedJTI ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call
SaveOAuth2BlacklistedJTI indicates an expected call of SaveOAuth2BlacklistedJTI.
func (*MockStorageMockRecorder) SaveOAuth2ConsentPreConfiguration ¶ added in v4.37.0
func (mr *MockStorageMockRecorder) SaveOAuth2ConsentPreConfiguration(arg0, arg1 any) *gomock.Call
SaveOAuth2ConsentPreConfiguration indicates an expected call of SaveOAuth2ConsentPreConfiguration.
func (*MockStorageMockRecorder) SaveOAuth2ConsentSession ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSession(arg0, arg1 any) *gomock.Call
SaveOAuth2ConsentSession indicates an expected call of SaveOAuth2ConsentSession.
func (*MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted(arg0, arg1 any) *gomock.Call
SaveOAuth2ConsentSessionGranted indicates an expected call of SaveOAuth2ConsentSessionGranted.
func (*MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse(arg0, arg1, arg2 any) *gomock.Call
SaveOAuth2ConsentSessionResponse indicates an expected call of SaveOAuth2ConsentSessionResponse.
func (*MockStorageMockRecorder) SaveOAuth2ConsentSessionSubject ¶ added in v4.35.1
func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionSubject(arg0, arg1 any) *gomock.Call
SaveOAuth2ConsentSessionSubject indicates an expected call of SaveOAuth2ConsentSessionSubject.
func (*MockStorageMockRecorder) SaveOAuth2PARContext ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) SaveOAuth2PARContext(arg0, arg1 any) *gomock.Call
SaveOAuth2PARContext indicates an expected call of SaveOAuth2PARContext.
func (*MockStorageMockRecorder) SaveOAuth2Session ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveOAuth2Session(arg0, arg1, arg2 any) *gomock.Call
SaveOAuth2Session indicates an expected call of SaveOAuth2Session.
func (*MockStorageMockRecorder) SaveOneTimeCode ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) SaveOneTimeCode(arg0, arg1 any) *gomock.Call
SaveOneTimeCode indicates an expected call of SaveOneTimeCode.
func (*MockStorageMockRecorder) SavePreferred2FAMethod ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 any) *gomock.Call
SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.
func (*MockStorageMockRecorder) SavePreferredDuoDevice ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 any) *gomock.Call
SavePreferredDuoDevice indicates an expected call of SavePreferredDuoDevice.
func (*MockStorageMockRecorder) SaveTOTPConfiguration ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 any) *gomock.Call
SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.
func (*MockStorageMockRecorder) SaveTOTPHistory ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) SaveTOTPHistory(arg0, arg1, arg2 any) *gomock.Call
SaveTOTPHistory indicates an expected call of SaveTOTPHistory.
func (*MockStorageMockRecorder) SaveUserOpaqueIdentifier ¶ added in v4.35.0
func (mr *MockStorageMockRecorder) SaveUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call
SaveUserOpaqueIdentifier indicates an expected call of SaveUserOpaqueIdentifier.
func (*MockStorageMockRecorder) SaveWebAuthnCredential ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) SaveWebAuthnCredential(arg0, arg1 any) *gomock.Call
SaveWebAuthnCredential indicates an expected call of SaveWebAuthnCredential.
func (*MockStorageMockRecorder) SaveWebAuthnUser ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) SaveWebAuthnUser(arg0, arg1 any) *gomock.Call
SaveWebAuthnUser indicates an expected call of SaveWebAuthnUser.
func (*MockStorageMockRecorder) SchemaEncryptionChangeKey ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 any) *gomock.Call
SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.
func (*MockStorageMockRecorder) SchemaEncryptionCheckKey ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 any) *gomock.Call
SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.
func (*MockStorageMockRecorder) SchemaLatestVersion ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaLatestVersion() *gomock.Call
SchemaLatestVersion indicates an expected call of SchemaLatestVersion.
func (*MockStorageMockRecorder) SchemaMigrate ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 any) *gomock.Call
SchemaMigrate indicates an expected call of SchemaMigrate.
func (*MockStorageMockRecorder) SchemaMigrationHistory ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 any) *gomock.Call
SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.
func (*MockStorageMockRecorder) SchemaMigrationsDown ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 any) *gomock.Call
SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.
func (*MockStorageMockRecorder) SchemaMigrationsUp ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 any) *gomock.Call
SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.
func (*MockStorageMockRecorder) SchemaTables ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaTables(arg0 any) *gomock.Call
SchemaTables indicates an expected call of SchemaTables.
func (*MockStorageMockRecorder) SchemaVersion ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) SchemaVersion(arg0 any) *gomock.Call
SchemaVersion indicates an expected call of SchemaVersion.
func (*MockStorageMockRecorder) StartupCheck ¶ added in v4.33.0
func (mr *MockStorageMockRecorder) StartupCheck() *gomock.Call
StartupCheck indicates an expected call of StartupCheck.
func (*MockStorageMockRecorder) UpdateOAuth2PARContext ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) UpdateOAuth2PARContext(arg0, arg1 any) *gomock.Call
UpdateOAuth2PARContext indicates an expected call of UpdateOAuth2PARContext.
func (*MockStorageMockRecorder) UpdateTOTPConfigurationSignIn ¶ added in v4.34.0
func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 any) *gomock.Call
UpdateTOTPConfigurationSignIn indicates an expected call of UpdateTOTPConfigurationSignIn.
func (*MockStorageMockRecorder) UpdateWebAuthnCredentialDescription ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialDescription(arg0, arg1, arg2, arg3 any) *gomock.Call
UpdateWebAuthnCredentialDescription indicates an expected call of UpdateWebAuthnCredentialDescription.
func (*MockStorageMockRecorder) UpdateWebAuthnCredentialSignIn ¶ added in v4.38.0
func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialSignIn(arg0, arg1 any) *gomock.Call
UpdateWebAuthnCredentialSignIn indicates an expected call of UpdateWebAuthnCredentialSignIn.
type MockTOTP ¶ added in v4.33.0
type MockTOTP struct {
// contains filtered or unexported fields
}
MockTOTP is a mock of Provider interface.
func NewMockTOTP ¶ added in v4.33.0
func NewMockTOTP(ctrl *gomock.Controller) *MockTOTP
NewMockTOTP creates a new mock instance.
func (*MockTOTP) EXPECT ¶ added in v4.33.0
func (m *MockTOTP) EXPECT() *MockTOTPMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTOTP) GenerateCustom ¶ added in v4.33.0
func (m *MockTOTP) GenerateCustom(arg0 totp.Context, arg1, arg2, arg3 string, arg4, arg5, arg6 uint) (*model.TOTPConfiguration, error)
GenerateCustom mocks base method.
func (*MockTOTP) Options ¶ added in v4.38.0
func (m *MockTOTP) Options() model.TOTPOptions
Options mocks base method.
type MockTOTPMockRecorder ¶ added in v4.33.0
type MockTOTPMockRecorder struct {
// contains filtered or unexported fields
}
MockTOTPMockRecorder is the mock recorder for MockTOTP.
func (*MockTOTPMockRecorder) Generate ¶ added in v4.33.0
func (mr *MockTOTPMockRecorder) Generate(arg0, arg1 any) *gomock.Call
Generate indicates an expected call of Generate.
func (*MockTOTPMockRecorder) GenerateCustom ¶ added in v4.33.0
func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *gomock.Call
GenerateCustom indicates an expected call of GenerateCustom.
func (*MockTOTPMockRecorder) Options ¶ added in v4.38.0
func (mr *MockTOTPMockRecorder) Options() *gomock.Call
Options indicates an expected call of Options.
type MockTokenIntrospector ¶ added in v4.38.0
type MockTokenIntrospector struct {
// contains filtered or unexported fields
}
MockTokenIntrospector is a mock of TokenIntrospector interface.
func NewMockTokenIntrospector ¶ added in v4.38.0
func NewMockTokenIntrospector(ctrl *gomock.Controller) *MockTokenIntrospector
NewMockTokenIntrospector creates a new mock instance.
func (*MockTokenIntrospector) EXPECT ¶ added in v4.38.0
func (m *MockTokenIntrospector) EXPECT() *MockTokenIntrospectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenIntrospector) IntrospectToken ¶ added in v4.38.0
func (m *MockTokenIntrospector) IntrospectToken(arg0 context.Context, arg1 string, arg2 oauth2.TokenType, arg3 oauth2.AccessRequester, arg4 []string) (oauth2.TokenType, error)
IntrospectToken mocks base method.
type MockTokenIntrospectorMockRecorder ¶ added in v4.38.0
type MockTokenIntrospectorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenIntrospectorMockRecorder is the mock recorder for MockTokenIntrospector.
func (*MockTokenIntrospectorMockRecorder) IntrospectToken ¶ added in v4.38.0
func (mr *MockTokenIntrospectorMockRecorder) IntrospectToken(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
IntrospectToken indicates an expected call of IntrospectToken.
type MockTokenRevocationStorage ¶ added in v4.38.0
type MockTokenRevocationStorage struct {
// contains filtered or unexported fields
}
MockTokenRevocationStorage is a mock of TokenRevocationStorage interface.
func NewMockTokenRevocationStorage ¶ added in v4.38.0
func NewMockTokenRevocationStorage(ctrl *gomock.Controller) *MockTokenRevocationStorage
NewMockTokenRevocationStorage creates a new mock instance.
func (*MockTokenRevocationStorage) CreateAccessTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
CreateAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) CreateRefreshTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Requester) error
CreateRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) DeleteAccessTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error
DeleteAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) DeleteRefreshTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error
DeleteRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) EXPECT ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) EXPECT() *MockTokenRevocationStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenRevocationStorage) GetAccessTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
GetAccessTokenSession mocks base method.
func (*MockTokenRevocationStorage) GetRefreshTokenSession ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 oauth2.Session) (oauth2.Requester, error)
GetRefreshTokenSession mocks base method.
func (*MockTokenRevocationStorage) RevokeAccessToken ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) RevokeAccessToken(arg0 context.Context, arg1 string) error
RevokeAccessToken mocks base method.
func (*MockTokenRevocationStorage) RevokeRefreshToken ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) RevokeRefreshToken(arg0 context.Context, arg1 string) error
RevokeRefreshToken mocks base method.
func (*MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod ¶ added in v4.38.0
func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(arg0 context.Context, arg1, arg2 string) error
RevokeRefreshTokenMaybeGracePeriod mocks base method.
type MockTokenRevocationStorageMockRecorder ¶ added in v4.38.0
type MockTokenRevocationStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenRevocationStorageMockRecorder is the mock recorder for MockTokenRevocationStorage.
func (*MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call
CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call
DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call
DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) GetAccessTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call
GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
func (*MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call
GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
func (*MockTokenRevocationStorageMockRecorder) RevokeAccessToken ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(arg0, arg1 any) *gomock.Call
RevokeAccessToken indicates an expected call of RevokeAccessToken.
func (*MockTokenRevocationStorageMockRecorder) RevokeRefreshToken ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(arg0, arg1 any) *gomock.Call
RevokeRefreshToken indicates an expected call of RevokeRefreshToken.
func (*MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod ¶ added in v4.38.0
func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(arg0, arg1, arg2 any) *gomock.Call
RevokeRefreshTokenMaybeGracePeriod indicates an expected call of RevokeRefreshTokenMaybeGracePeriod.
type MockTransactional ¶ added in v4.38.0
type MockTransactional struct {
// contains filtered or unexported fields
}
MockTransactional is a mock of Transactional interface.
func NewMockTransactional ¶ added in v4.38.0
func NewMockTransactional(ctrl *gomock.Controller) *MockTransactional
NewMockTransactional creates a new mock instance.
func (*MockTransactional) Commit ¶ added in v4.38.0
func (m *MockTransactional) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MockTransactional) EXPECT ¶ added in v4.38.0
func (m *MockTransactional) EXPECT() *MockTransactionalMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTransactionalMockRecorder ¶ added in v4.38.0
type MockTransactionalMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionalMockRecorder is the mock recorder for MockTransactional.
func (*MockTransactionalMockRecorder) BeginTX ¶ added in v4.38.0
func (mr *MockTransactionalMockRecorder) BeginTX(arg0 any) *gomock.Call
BeginTX indicates an expected call of BeginTX.
type MockUserProvider ¶
type MockUserProvider struct {
// contains filtered or unexported fields
}
MockUserProvider is a mock of UserProvider interface.
func NewMockUserProvider ¶
func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider
NewMockUserProvider creates a new mock instance.
func (*MockUserProvider) CheckUserPassword ¶
func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error)
CheckUserPassword mocks base method.
func (*MockUserProvider) EXPECT ¶
func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserProvider) GetDetails ¶
func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error)
GetDetails mocks base method.
func (*MockUserProvider) StartupCheck ¶ added in v4.31.0
func (m *MockUserProvider) StartupCheck() error
StartupCheck mocks base method.
func (*MockUserProvider) UpdatePassword ¶
func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error
UpdatePassword mocks base method.
type MockUserProviderMockRecorder ¶
type MockUserProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockUserProviderMockRecorder is the mock recorder for MockUserProvider.
func (*MockUserProviderMockRecorder) CheckUserPassword ¶
func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 any) *gomock.Call
CheckUserPassword indicates an expected call of CheckUserPassword.
func (*MockUserProviderMockRecorder) GetDetails ¶
func (mr *MockUserProviderMockRecorder) GetDetails(arg0 any) *gomock.Call
GetDetails indicates an expected call of GetDetails.
func (*MockUserProviderMockRecorder) StartupCheck ¶ added in v4.31.0
func (mr *MockUserProviderMockRecorder) StartupCheck() *gomock.Call
StartupCheck indicates an expected call of StartupCheck.
func (*MockUserProviderMockRecorder) UpdatePassword ¶
func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 any) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.
Source Files ¶
- authelia_ctx.go
- duo_api.go
- gen.go
- notifier.go
- oauth2_access_requester.go
- oauth2_access_token_strategy.go
- oauth2_client_credentials_grant_storage.go
- oauth2_pkce_request_storage.go
- oauth2_storage.go
- oauth2_token_introspector.go
- oauth2_token_revocation_storage.go
- oauth2_transactional.go
- random.go
- storage.go
- totp.go
- user_provider.go