summaryrefslogtreecommitdiff
path: root/internal/mocks
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-11-30 19:45:24 +1100
committerJames Elliott <james-d-elliott@users.noreply.github.com>2024-03-04 20:29:12 +1100
commite4e878f05f8ae1e1784b3ac190459b2d506f796c (patch)
treeed8f5b927156300dddff33f3e14bc732803ea405 /internal/mocks
parent61c30b373f8c5ee14321e82c8d7210aae7d260c3 (diff)
build(deps): use go.uber.org/mock
Use the new go.uber.org/mock which is currently maintained. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/mocks')
-rw-r--r--internal/mocks/authelia_ctx.go20
-rw-r--r--internal/mocks/duo_api.go14
-rw-r--r--internal/mocks/fosite_access_requester.go26
-rw-r--r--internal/mocks/fosite_access_token_strategy.go14
-rw-r--r--internal/mocks/fosite_client_credentials_grant_storage.go14
-rw-r--r--internal/mocks/fosite_pkce_request_storage.go14
-rw-r--r--internal/mocks/fosite_storage.go14
-rw-r--r--internal/mocks/fosite_token_introspector.go10
-rw-r--r--internal/mocks/fosite_token_revocation_storage.go26
-rw-r--r--internal/mocks/fosite_transactional.go14
-rw-r--r--internal/mocks/notifier.go12
-rw-r--r--internal/mocks/random.go28
-rw-r--r--internal/mocks/storage.go175
-rw-r--r--internal/mocks/totp.go21
-rw-r--r--internal/mocks/user_provider.go14
15 files changed, 260 insertions, 156 deletions
diff --git a/internal/mocks/authelia_ctx.go b/internal/mocks/authelia_ctx.go
index 906a3a72c..b51207112 100644
--- a/internal/mocks/authelia_ctx.go
+++ b/internal/mocks/authelia_ctx.go
@@ -7,12 +7,12 @@ import (
"testing"
"time"
- "github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/valyala/fasthttp"
+ "go.uber.org/mock/gomock"
"github.com/authelia/authelia/v4/internal/authorization"
"github.com/authelia/authelia/v4/internal/clock"
@@ -263,6 +263,24 @@ func (m *MockAutheliaCtx) Assert401KO(t *testing.T, message string) {
assert.Equal(t, fmt.Sprintf("{\"status\":\"KO\",\"message\":\"%s\"}", message), string(m.Ctx.Response.Body()))
}
+// Assert403KO assert an error response from the service.
+func (m *MockAutheliaCtx) Assert403KO(t *testing.T, message string) {
+ assert.Equal(t, fasthttp.StatusForbidden, m.Ctx.Response.StatusCode())
+ assert.Equal(t, fmt.Sprintf("{\"status\":\"KO\",\"message\":\"%s\"}", message), string(m.Ctx.Response.Body()))
+}
+
+// Assert404KO assert an error response from the service.
+func (m *MockAutheliaCtx) Assert404KO(t *testing.T, message string) {
+ assert.Equal(t, fasthttp.StatusNotFound, m.Ctx.Response.StatusCode())
+ assert.Equal(t, fmt.Sprintf("{\"status\":\"KO\",\"message\":\"%s\"}", message), string(m.Ctx.Response.Body()))
+}
+
+// Assert500KO assert an error response from the service.
+func (m *MockAutheliaCtx) Assert500KO(t *testing.T, message string) {
+ assert.Equal(t, fasthttp.StatusInternalServerError, m.Ctx.Response.StatusCode())
+ assert.Equal(t, fmt.Sprintf("{\"status\":\"KO\",\"message\":\"%s\"}", message), string(m.Ctx.Response.Body()))
+}
+
// Assert200KO assert an error response from the service.
func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string) {
assert.Equal(t, fasthttp.StatusOK, m.Ctx.Response.StatusCode())
diff --git a/internal/mocks/duo_api.go b/internal/mocks/duo_api.go
index d358f9c74..655dc331b 100644
--- a/internal/mocks/duo_api.go
+++ b/internal/mocks/duo_api.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/duo (interfaces: API)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination duo_api.go -mock_names API=MockAPI github.com/authelia/authelia/v4/internal/duo API
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -11,7 +15,7 @@ import (
duo "github.com/authelia/authelia/v4/internal/duo"
middlewares "github.com/authelia/authelia/v4/internal/middlewares"
session "github.com/authelia/authelia/v4/internal/session"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockAPI is a mock of API interface.
@@ -47,7 +51,7 @@ func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSess
}
// AuthCall indicates an expected call of AuthCall.
-func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthCall", reflect.TypeOf((*MockAPI)(nil).AuthCall), arg0, arg1, arg2)
}
@@ -62,7 +66,7 @@ func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession,
}
// Call indicates an expected call of Call.
-func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
+func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockAPI)(nil).Call), arg0, arg1, arg2, arg3, arg4)
}
@@ -77,7 +81,7 @@ func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserS
}
// PreAuthCall indicates an expected call of PreAuthCall.
-func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreAuthCall", reflect.TypeOf((*MockAPI)(nil).PreAuthCall), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_access_requester.go b/internal/mocks/fosite_access_requester.go
index 91ffa6a8a..cea0a3a64 100644
--- a/internal/mocks/fosite_access_requester.go
+++ b/internal/mocks/fosite_access_requester.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite (interfaces: AccessRequester)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_access_requester.go -mock_names Provider=MockAccessRequester github.com/ory/fosite AccessRequester
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -9,8 +13,8 @@ import (
reflect "reflect"
time "time"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockAccessRequester is a mock of AccessRequester interface.
@@ -43,7 +47,7 @@ func (m *MockAccessRequester) AppendRequestedScope(arg0 string) {
}
// AppendRequestedScope indicates an expected call of AppendRequestedScope.
-func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) AppendRequestedScope(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendRequestedScope", reflect.TypeOf((*MockAccessRequester)(nil).AppendRequestedScope), arg0)
}
@@ -195,7 +199,7 @@ func (m *MockAccessRequester) GrantAudience(arg0 string) {
}
// GrantAudience indicates an expected call of GrantAudience.
-func (mr *MockAccessRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) GrantAudience(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantAudience", reflect.TypeOf((*MockAccessRequester)(nil).GrantAudience), arg0)
}
@@ -207,7 +211,7 @@ func (m *MockAccessRequester) GrantScope(arg0 string) {
}
// GrantScope indicates an expected call of GrantScope.
-func (mr *MockAccessRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) GrantScope(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantScope", reflect.TypeOf((*MockAccessRequester)(nil).GrantScope), arg0)
}
@@ -219,7 +223,7 @@ func (m *MockAccessRequester) Merge(arg0 fosite.Requester) {
}
// Merge indicates an expected call of Merge.
-func (mr *MockAccessRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) Merge(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Merge", reflect.TypeOf((*MockAccessRequester)(nil).Merge), arg0)
}
@@ -233,7 +237,7 @@ func (m *MockAccessRequester) Sanitize(arg0 []string) fosite.Requester {
}
// Sanitize indicates an expected call of Sanitize.
-func (mr *MockAccessRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) Sanitize(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sanitize", reflect.TypeOf((*MockAccessRequester)(nil).Sanitize), arg0)
}
@@ -245,7 +249,7 @@ func (m *MockAccessRequester) SetID(arg0 string) {
}
// SetID indicates an expected call of SetID.
-func (mr *MockAccessRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) SetID(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetID", reflect.TypeOf((*MockAccessRequester)(nil).SetID), arg0)
}
@@ -257,7 +261,7 @@ func (m *MockAccessRequester) SetRequestedAudience(arg0 fosite.Arguments) {
}
// SetRequestedAudience indicates an expected call of SetRequestedAudience.
-func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) SetRequestedAudience(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedAudience", reflect.TypeOf((*MockAccessRequester)(nil).SetRequestedAudience), arg0)
}
@@ -269,7 +273,7 @@ func (m *MockAccessRequester) SetRequestedScopes(arg0 fosite.Arguments) {
}
// SetRequestedScopes indicates an expected call of SetRequestedScopes.
-func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) SetRequestedScopes(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedScopes", reflect.TypeOf((*MockAccessRequester)(nil).SetRequestedScopes), arg0)
}
@@ -281,7 +285,7 @@ func (m *MockAccessRequester) SetSession(arg0 fosite.Session) {
}
// SetSession indicates an expected call of SetSession.
-func (mr *MockAccessRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call {
+func (mr *MockAccessRequesterMockRecorder) SetSession(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSession", reflect.TypeOf((*MockAccessRequester)(nil).SetSession), arg0)
}
diff --git a/internal/mocks/fosite_access_token_strategy.go b/internal/mocks/fosite_access_token_strategy.go
index 0e3baa1c6..319c5fd6c 100644
--- a/internal/mocks/fosite_access_token_strategy.go
+++ b/internal/mocks/fosite_access_token_strategy.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite/handler/oauth2 (interfaces: AccessTokenStrategy)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_access_token_strategy.go -mock_names Provider=MockAccessTokenStrategy github.com/ory/fosite/handler/oauth2 AccessTokenStrategy
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,8 +12,8 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockAccessTokenStrategy is a mock of AccessTokenStrategy interface.
@@ -44,7 +48,7 @@ func (m *MockAccessTokenStrategy) AccessTokenSignature(arg0 context.Context, arg
}
// AccessTokenSignature indicates an expected call of AccessTokenSignature.
-func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockAccessTokenStrategyMockRecorder) AccessTokenSignature(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessTokenSignature", reflect.TypeOf((*MockAccessTokenStrategy)(nil).AccessTokenSignature), arg0, arg1)
}
@@ -60,7 +64,7 @@ func (m *MockAccessTokenStrategy) GenerateAccessToken(arg0 context.Context, arg1
}
// GenerateAccessToken indicates an expected call of GenerateAccessToken.
-func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockAccessTokenStrategyMockRecorder) GenerateAccessToken(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAccessToken", reflect.TypeOf((*MockAccessTokenStrategy)(nil).GenerateAccessToken), arg0, arg1)
}
@@ -74,7 +78,7 @@ func (m *MockAccessTokenStrategy) ValidateAccessToken(arg0 context.Context, arg1
}
// ValidateAccessToken indicates an expected call of ValidateAccessToken.
-func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockAccessTokenStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAccessToken", reflect.TypeOf((*MockAccessTokenStrategy)(nil).ValidateAccessToken), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_client_credentials_grant_storage.go b/internal/mocks/fosite_client_credentials_grant_storage.go
index 077712a7d..a35d2bc52 100644
--- a/internal/mocks/fosite_client_credentials_grant_storage.go
+++ b/internal/mocks/fosite_client_credentials_grant_storage.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite/handler/oauth2 (interfaces: ClientCredentialsGrantStorage)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_client_credentials_grant_storage.go -mock_names Provider=MockClientCredentialsGrantStorage github.com/ory/fosite/handler/oauth2 ClientCredentialsGrantStorage
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,8 +12,8 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockClientCredentialsGrantStorage is a mock of ClientCredentialsGrantStorage interface.
@@ -44,7 +48,7 @@ func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(arg0 contex
}
// CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
-func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2)
}
@@ -58,7 +62,7 @@ func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(arg0 contex
}
// DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
-func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).DeleteAccessTokenSession), arg0, arg1)
}
@@ -73,7 +77,7 @@ func (m *MockClientCredentialsGrantStorage) GetAccessTokenSession(arg0 context.C
}
// GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
-func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_pkce_request_storage.go b/internal/mocks/fosite_pkce_request_storage.go
index be8191bc0..1ada6e2d5 100644
--- a/internal/mocks/fosite_pkce_request_storage.go
+++ b/internal/mocks/fosite_pkce_request_storage.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite/handler/pkce (interfaces: PKCERequestStorage)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_pkce_request_storage.go -mock_names Provider=MockPKCERequestStorage github.com/ory/fosite/handler/pkce PKCERequestStorage
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,8 +12,8 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockPKCERequestStorage is a mock of PKCERequestStorage interface.
@@ -44,7 +48,7 @@ func (m *MockPKCERequestStorage) CreatePKCERequestSession(arg0 context.Context,
}
// CreatePKCERequestSession indicates an expected call of CreatePKCERequestSession.
-func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockPKCERequestStorageMockRecorder) CreatePKCERequestSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePKCERequestSession", reflect.TypeOf((*MockPKCERequestStorage)(nil).CreatePKCERequestSession), arg0, arg1, arg2)
}
@@ -58,7 +62,7 @@ func (m *MockPKCERequestStorage) DeletePKCERequestSession(arg0 context.Context,
}
// DeletePKCERequestSession indicates an expected call of DeletePKCERequestSession.
-func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockPKCERequestStorageMockRecorder) DeletePKCERequestSession(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePKCERequestSession", reflect.TypeOf((*MockPKCERequestStorage)(nil).DeletePKCERequestSession), arg0, arg1)
}
@@ -73,7 +77,7 @@ func (m *MockPKCERequestStorage) GetPKCERequestSession(arg0 context.Context, arg
}
// GetPKCERequestSession indicates an expected call of GetPKCERequestSession.
-func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockPKCERequestStorageMockRecorder) GetPKCERequestSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPKCERequestSession", reflect.TypeOf((*MockPKCERequestStorage)(nil).GetPKCERequestSession), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_storage.go b/internal/mocks/fosite_storage.go
index aea59a69d..e7b99271b 100644
--- a/internal/mocks/fosite_storage.go
+++ b/internal/mocks/fosite_storage.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite (interfaces: Storage)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_storage.go -mock_names Storage=MockFositeStorage github.com/ory/fosite Storage
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -9,8 +13,8 @@ import (
reflect "reflect"
time "time"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockFositeStorage is a mock of Storage interface.
@@ -45,7 +49,7 @@ func (m *MockFositeStorage) ClientAssertionJWTValid(arg0 context.Context, arg1 s
}
// ClientAssertionJWTValid indicates an expected call of ClientAssertionJWTValid.
-func (mr *MockFositeStorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockFositeStorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientAssertionJWTValid", reflect.TypeOf((*MockFositeStorage)(nil).ClientAssertionJWTValid), arg0, arg1)
}
@@ -60,7 +64,7 @@ func (m *MockFositeStorage) GetClient(arg0 context.Context, arg1 string) (fosite
}
// GetClient indicates an expected call of GetClient.
-func (mr *MockFositeStorageMockRecorder) GetClient(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockFositeStorageMockRecorder) GetClient(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockFositeStorage)(nil).GetClient), arg0, arg1)
}
@@ -74,7 +78,7 @@ func (m *MockFositeStorage) SetClientAssertionJWT(arg0 context.Context, arg1 str
}
// SetClientAssertionJWT indicates an expected call of SetClientAssertionJWT.
-func (mr *MockFositeStorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockFositeStorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientAssertionJWT", reflect.TypeOf((*MockFositeStorage)(nil).SetClientAssertionJWT), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_token_introspector.go b/internal/mocks/fosite_token_introspector.go
index 0dd8ebd66..52760ea76 100644
--- a/internal/mocks/fosite_token_introspector.go
+++ b/internal/mocks/fosite_token_introspector.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite (interfaces: TokenIntrospector)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_token_introspector.go -mock_names TokenIntrospector=MockTokenIntrospector github.com/ory/fosite TokenIntrospector
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,8 +12,8 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockTokenIntrospector is a mock of TokenIntrospector interface.
@@ -45,7 +49,7 @@ func (m *MockTokenIntrospector) IntrospectToken(arg0 context.Context, arg1 strin
}
// IntrospectToken indicates an expected call of IntrospectToken.
-func (mr *MockTokenIntrospectorMockRecorder) IntrospectToken(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
+func (mr *MockTokenIntrospectorMockRecorder) IntrospectToken(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntrospectToken", reflect.TypeOf((*MockTokenIntrospector)(nil).IntrospectToken), arg0, arg1, arg2, arg3, arg4)
}
diff --git a/internal/mocks/fosite_token_revocation_storage.go b/internal/mocks/fosite_token_revocation_storage.go
index b47d9aef6..d9836c373 100644
--- a/internal/mocks/fosite_token_revocation_storage.go
+++ b/internal/mocks/fosite_token_revocation_storage.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite/handler/oauth2 (interfaces: TokenRevocationStorage)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_token_revocation_storage.go -mock_names Provider=MockTokenRevocationStorage github.com/ory/fosite/handler/oauth2 TokenRevocationStorage
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,8 +12,8 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
+ gomock "go.uber.org/mock/gomock"
)
// MockTokenRevocationStorage is a mock of TokenRevocationStorage interface.
@@ -44,7 +48,7 @@ func (m *MockTokenRevocationStorage) CreateAccessTokenSession(arg0 context.Conte
}
// CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2)
}
@@ -58,7 +62,7 @@ func (m *MockTokenRevocationStorage) CreateRefreshTokenSession(arg0 context.Cont
}
// CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2)
}
@@ -72,7 +76,7 @@ func (m *MockTokenRevocationStorage) DeleteAccessTokenSession(arg0 context.Conte
}
// DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).DeleteAccessTokenSession), arg0, arg1)
}
@@ -86,7 +90,7 @@ func (m *MockTokenRevocationStorage) DeleteRefreshTokenSession(arg0 context.Cont
}
// DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).DeleteRefreshTokenSession), arg0, arg1)
}
@@ -101,7 +105,7 @@ func (m *MockTokenRevocationStorage) GetAccessTokenSession(arg0 context.Context,
}
// GetAccessTokenSession indicates an expected call of GetAccessTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2)
}
@@ -116,7 +120,7 @@ func (m *MockTokenRevocationStorage) GetRefreshTokenSession(arg0 context.Context
}
// GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession.
-func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockTokenRevocationStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2)
}
@@ -130,7 +134,7 @@ func (m *MockTokenRevocationStorage) RevokeAccessToken(arg0 context.Context, arg
}
// RevokeAccessToken indicates an expected call of RevokeAccessToken.
-func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) RevokeAccessToken(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeAccessToken", reflect.TypeOf((*MockTokenRevocationStorage)(nil).RevokeAccessToken), arg0, arg1)
}
@@ -144,7 +148,7 @@ func (m *MockTokenRevocationStorage) RevokeRefreshToken(arg0 context.Context, ar
}
// RevokeRefreshToken indicates an expected call of RevokeRefreshToken.
-func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshToken(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeRefreshToken", reflect.TypeOf((*MockTokenRevocationStorage)(nil).RevokeRefreshToken), arg0, arg1)
}
@@ -158,7 +162,7 @@ func (m *MockTokenRevocationStorage) RevokeRefreshTokenMaybeGracePeriod(arg0 con
}
// RevokeRefreshTokenMaybeGracePeriod indicates an expected call of RevokeRefreshTokenMaybeGracePeriod.
-func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockTokenRevocationStorageMockRecorder) RevokeRefreshTokenMaybeGracePeriod(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeRefreshTokenMaybeGracePeriod", reflect.TypeOf((*MockTokenRevocationStorage)(nil).RevokeRefreshTokenMaybeGracePeriod), arg0, arg1, arg2)
}
diff --git a/internal/mocks/fosite_transactional.go b/internal/mocks/fosite_transactional.go
index 817bef67b..3ff7a11aa 100644
--- a/internal/mocks/fosite_transactional.go
+++ b/internal/mocks/fosite_transactional.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/fosite/storage (interfaces: Transactional)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination fosite_transactional.go -mock_names Provider=MockTransactional github.com/ory/fosite/storage Transactional
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,7 +12,7 @@ import (
context "context"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockTransactional is a mock of Transactional interface.
@@ -44,7 +48,7 @@ func (m *MockTransactional) BeginTX(arg0 context.Context) (context.Context, erro
}
// BeginTX indicates an expected call of BeginTX.
-func (mr *MockTransactionalMockRecorder) BeginTX(arg0 interface{}) *gomock.Call {
+func (mr *MockTransactionalMockRecorder) BeginTX(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTX", reflect.TypeOf((*MockTransactional)(nil).BeginTX), arg0)
}
@@ -58,7 +62,7 @@ func (m *MockTransactional) Commit(arg0 context.Context) error {
}
// Commit indicates an expected call of Commit.
-func (mr *MockTransactionalMockRecorder) Commit(arg0 interface{}) *gomock.Call {
+func (mr *MockTransactionalMockRecorder) Commit(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTransactional)(nil).Commit), arg0)
}
@@ -72,7 +76,7 @@ func (m *MockTransactional) Rollback(arg0 context.Context) error {
}
// Rollback indicates an expected call of Rollback.
-func (mr *MockTransactionalMockRecorder) Rollback(arg0 interface{}) *gomock.Call {
+func (mr *MockTransactionalMockRecorder) Rollback(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockTransactional)(nil).Rollback), arg0)
}
diff --git a/internal/mocks/notifier.go b/internal/mocks/notifier.go
index b568e808c..6f31b8e7a 100644
--- a/internal/mocks/notifier.go
+++ b/internal/mocks/notifier.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/notification (interfaces: Notifier)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination notifier.go -mock_names Notifier=MockNotifier github.com/authelia/authelia/v4/internal/notification Notifier
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -10,7 +14,7 @@ import (
reflect "reflect"
templates "github.com/authelia/authelia/v4/internal/templates"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockNotifier is a mock of Notifier interface.
@@ -37,7 +41,7 @@ func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
}
// Send mocks base method.
-func (m *MockNotifier) Send(arg0 context.Context, arg1 mail.Address, arg2 string, arg3 *templates.EmailTemplate, arg4 interface{}) error {
+func (m *MockNotifier) Send(arg0 context.Context, arg1 mail.Address, arg2 string, arg3 *templates.EmailTemplate, arg4 any) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].(error)
@@ -45,7 +49,7 @@ func (m *MockNotifier) Send(arg0 context.Context, arg1 mail.Address, arg2 string
}
// Send indicates an expected call of Send.
-func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
+func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockNotifier)(nil).Send), arg0, arg1, arg2, arg3, arg4)
}
diff --git a/internal/mocks/random.go b/internal/mocks/random.go
index 497bc4d1e..f566c59a1 100644
--- a/internal/mocks/random.go
+++ b/internal/mocks/random.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/random (interfaces: Provider)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination random.go -mock_names Provider=MockRandom github.com/authelia/authelia/v4/internal/random Provider
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,7 +12,7 @@ import (
big "math/big"
reflect "reflect"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockRandom is a mock of Provider interface.
@@ -57,7 +61,7 @@ func (m *MockRandom) BytesCustom(arg0 int, arg1 []byte) []byte {
}
// BytesCustom indicates an expected call of BytesCustom.
-func (mr *MockRandomMockRecorder) BytesCustom(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) BytesCustom(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCustom", reflect.TypeOf((*MockRandom)(nil).BytesCustom), arg0, arg1)
}
@@ -72,7 +76,7 @@ func (m *MockRandom) BytesCustomErr(arg0 int, arg1 []byte) ([]byte, error) {
}
// BytesCustomErr indicates an expected call of BytesCustomErr.
-func (mr *MockRandomMockRecorder) BytesCustomErr(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) BytesCustomErr(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCustomErr", reflect.TypeOf((*MockRandom)(nil).BytesCustomErr), arg0, arg1)
}
@@ -101,7 +105,7 @@ func (m *MockRandom) Int(arg0 *big.Int) *big.Int {
}
// Int indicates an expected call of Int.
-func (mr *MockRandomMockRecorder) Int(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) Int(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Int", reflect.TypeOf((*MockRandom)(nil).Int), arg0)
}
@@ -116,7 +120,7 @@ func (m *MockRandom) IntErr(arg0 *big.Int) (*big.Int, error) {
}
// IntErr indicates an expected call of IntErr.
-func (mr *MockRandomMockRecorder) IntErr(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) IntErr(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntErr", reflect.TypeOf((*MockRandom)(nil).IntErr), arg0)
}
@@ -130,7 +134,7 @@ func (m *MockRandom) Intn(arg0 int) int {
}
// Intn indicates an expected call of Intn.
-func (mr *MockRandomMockRecorder) Intn(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) Intn(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intn", reflect.TypeOf((*MockRandom)(nil).Intn), arg0)
}
@@ -145,7 +149,7 @@ func (m *MockRandom) IntnErr(arg0 int) (int, error) {
}
// IntnErr indicates an expected call of IntnErr.
-func (mr *MockRandomMockRecorder) IntnErr(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) IntnErr(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntnErr", reflect.TypeOf((*MockRandom)(nil).IntnErr), arg0)
}
@@ -160,7 +164,7 @@ func (m *MockRandom) Prime(arg0 int) (*big.Int, error) {
}
// Prime indicates an expected call of Prime.
-func (mr *MockRandomMockRecorder) Prime(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) Prime(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Prime", reflect.TypeOf((*MockRandom)(nil).Prime), arg0)
}
@@ -175,7 +179,7 @@ func (m *MockRandom) Read(arg0 []byte) (int, error) {
}
// Read indicates an expected call of Read.
-func (mr *MockRandomMockRecorder) Read(arg0 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) Read(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRandom)(nil).Read), arg0)
}
@@ -189,7 +193,7 @@ func (m *MockRandom) StringCustom(arg0 int, arg1 string) string {
}
// StringCustom indicates an expected call of StringCustom.
-func (mr *MockRandomMockRecorder) StringCustom(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) StringCustom(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringCustom", reflect.TypeOf((*MockRandom)(nil).StringCustom), arg0, arg1)
}
@@ -204,7 +208,7 @@ func (m *MockRandom) StringCustomErr(arg0 int, arg1 string) (string, error) {
}
// StringCustomErr indicates an expected call of StringCustomErr.
-func (mr *MockRandomMockRecorder) StringCustomErr(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockRandomMockRecorder) StringCustomErr(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringCustomErr", reflect.TypeOf((*MockRandom)(nil).StringCustomErr), arg0, arg1)
}
diff --git a/internal/mocks/storage.go b/internal/mocks/storage.go
index 26110b898..993a11737 100644
--- a/internal/mocks/storage.go
+++ b/internal/mocks/storage.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/storage (interfaces: Provider)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination storage.go -mock_names Provider=MockStorage github.com/authelia/authelia/v4/internal/storage Provider
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -12,8 +16,8 @@ import (
model "github.com/authelia/authelia/v4/internal/model"
storage "github.com/authelia/authelia/v4/internal/storage"
- gomock "github.com/golang/mock/gomock"
uuid "github.com/google/uuid"
+ gomock "go.uber.org/mock/gomock"
)
// MockStorage is a mock of Provider interface.
@@ -48,7 +52,7 @@ func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 model.A
}
// AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.
-func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendAuthenticationLog", reflect.TypeOf((*MockStorage)(nil).AppendAuthenticationLog), arg0, arg1)
}
@@ -63,7 +67,7 @@ func (m *MockStorage) BeginTX(arg0 context.Context) (context.Context, error) {
}
// BeginTX indicates an expected call of BeginTX.
-func (mr *MockStorageMockRecorder) BeginTX(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) BeginTX(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTX", reflect.TypeOf((*MockStorage)(nil).BeginTX), arg0)
}
@@ -91,7 +95,7 @@ func (m *MockStorage) Commit(arg0 context.Context) error {
}
// Commit indicates an expected call of Commit.
-func (mr *MockStorageMockRecorder) Commit(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) Commit(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockStorage)(nil).Commit), arg0)
}
@@ -105,7 +109,7 @@ func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 str
}
// ConsumeIdentityVerification indicates an expected call of ConsumeIdentityVerification.
-func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsumeIdentityVerification", reflect.TypeOf((*MockStorage)(nil).ConsumeIdentityVerification), arg0, arg1, arg2)
}
@@ -119,7 +123,7 @@ func (m *MockStorage) ConsumeOneTimeCode(arg0 context.Context, arg1 *model.OneTi
}
// ConsumeOneTimeCode indicates an expected call of ConsumeOneTimeCode.
-func (mr *MockStorageMockRecorder) ConsumeOneTimeCode(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) ConsumeOneTimeCode(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsumeOneTimeCode", reflect.TypeOf((*MockStorage)(nil).ConsumeOneTimeCode), arg0, arg1)
}
@@ -133,7 +137,7 @@ func (m *MockStorage) DeactivateOAuth2Session(arg0 context.Context, arg1 storage
}
// DeactivateOAuth2Session indicates an expected call of DeactivateOAuth2Session.
-func (mr *MockStorageMockRecorder) DeactivateOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeactivateOAuth2Session(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateOAuth2Session", reflect.TypeOf((*MockStorage)(nil).DeactivateOAuth2Session), arg0, arg1, arg2)
}
@@ -147,7 +151,7 @@ func (m *MockStorage) DeactivateOAuth2SessionByRequestID(arg0 context.Context, a
}
// DeactivateOAuth2SessionByRequestID indicates an expected call of DeactivateOAuth2SessionByRequestID.
-func (mr *MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateOAuth2SessionByRequestID", reflect.TypeOf((*MockStorage)(nil).DeactivateOAuth2SessionByRequestID), arg0, arg1, arg2)
}
@@ -161,7 +165,7 @@ func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string
}
// DeletePreferredDuoDevice indicates an expected call of DeletePreferredDuoDevice.
-func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).DeletePreferredDuoDevice), arg0, arg1)
}
@@ -175,7 +179,7 @@ func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string)
}
// DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.
-func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).DeleteTOTPConfiguration), arg0, arg1)
}
@@ -189,7 +193,7 @@ func (m *MockStorage) DeleteWebAuthnCredential(arg0 context.Context, arg1 string
}
// DeleteWebAuthnCredential indicates an expected call of DeleteWebAuthnCredential.
-func (mr *MockStorageMockRecorder) DeleteWebAuthnCredential(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeleteWebAuthnCredential(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWebAuthnCredential", reflect.TypeOf((*MockStorage)(nil).DeleteWebAuthnCredential), arg0, arg1)
}
@@ -203,11 +207,26 @@ func (m *MockStorage) DeleteWebAuthnCredentialByUsername(arg0 context.Context, a
}
// DeleteWebAuthnCredentialByUsername indicates an expected call of DeleteWebAuthnCredentialByUsername.
-func (mr *MockStorageMockRecorder) DeleteWebAuthnCredentialByUsername(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) DeleteWebAuthnCredentialByUsername(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWebAuthnCredentialByUsername", reflect.TypeOf((*MockStorage)(nil).DeleteWebAuthnCredentialByUsername), arg0, arg1, arg2)
}
+// ExistsTOTPHistory mocks base method.
+func (m *MockStorage) ExistsTOTPHistory(arg0 context.Context, arg1 string, arg2 uint64, arg3 time.Time) (bool, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "ExistsTOTPHistory", arg0, arg1, arg2, arg3)
+ ret0, _ := ret[0].(bool)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// ExistsTOTPHistory indicates an expected call of ExistsTOTPHistory.
+func (mr *MockStorageMockRecorder) ExistsTOTPHistory(arg0, arg1, arg2, arg3 any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExistsTOTPHistory", reflect.TypeOf((*MockStorage)(nil).ExistsTOTPHistory), arg0, arg1, arg2, arg3)
+}
+
// FindIdentityVerification mocks base method.
func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error) {
m.ctrl.T.Helper()
@@ -218,7 +237,7 @@ func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string
}
// FindIdentityVerification indicates an expected call of FindIdentityVerification.
-func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindIdentityVerification", reflect.TypeOf((*MockStorage)(nil).FindIdentityVerification), arg0, arg1)
}
@@ -233,7 +252,7 @@ func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string,
}
// LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.
-func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadAuthenticationLogs", reflect.TypeOf((*MockStorage)(nil).LoadAuthenticationLogs), arg0, arg1, arg2, arg3, arg4)
}
@@ -248,7 +267,7 @@ func (m *MockStorage) LoadIdentityVerification(arg0 context.Context, arg1 string
}
// LoadIdentityVerification indicates an expected call of LoadIdentityVerification.
-func (mr *MockStorageMockRecorder) LoadIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadIdentityVerification(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadIdentityVerification", reflect.TypeOf((*MockStorage)(nil).LoadIdentityVerification), arg0, arg1)
}
@@ -263,7 +282,7 @@ func (m *MockStorage) LoadOAuth2BlacklistedJTI(arg0 context.Context, arg1 string
}
// LoadOAuth2BlacklistedJTI indicates an expected call of LoadOAuth2BlacklistedJTI.
-func (mr *MockStorageMockRecorder) LoadOAuth2BlacklistedJTI(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOAuth2BlacklistedJTI", reflect.TypeOf((*MockStorage)(nil).LoadOAuth2BlacklistedJTI), arg0, arg1)
}
@@ -278,7 +297,7 @@ func (m *MockStorage) LoadOAuth2ConsentPreConfigurations(arg0 context.Context, a
}
// LoadOAuth2ConsentPreConfigurations indicates an expected call of LoadOAuth2ConsentPreConfigurations.
-func (mr *MockStorageMockRecorder) LoadOAuth2ConsentPreConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOAuth2ConsentPreConfigurations(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOAuth2ConsentPreConfigurations", reflect.TypeOf((*MockStorage)(nil).LoadOAuth2ConsentPreConfigurations), arg0, arg1, arg2)
}
@@ -293,7 +312,7 @@ func (m *MockStorage) LoadOAuth2ConsentSessionByChallengeID(arg0 context.Context
}
// LoadOAuth2ConsentSessionByChallengeID indicates an expected call of LoadOAuth2ConsentSessionByChallengeID.
-func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOAuth2ConsentSessionByChallengeID", reflect.TypeOf((*MockStorage)(nil).LoadOAuth2ConsentSessionByChallengeID), arg0, arg1)
}
@@ -308,7 +327,7 @@ func (m *MockStorage) LoadOAuth2PARContext(arg0 context.Context, arg1 string) (*
}
// LoadOAuth2PARContext indicates an expected call of LoadOAuth2PARContext.
-func (mr *MockStorageMockRecorder) LoadOAuth2PARContext(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOAuth2PARContext(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOAuth2PARContext", reflect.TypeOf((*MockStorage)(nil).LoadOAuth2PARContext), arg0, arg1)
}
@@ -323,7 +342,7 @@ func (m *MockStorage) LoadOAuth2Session(arg0 context.Context, arg1 storage.OAuth
}
// LoadOAuth2Session indicates an expected call of LoadOAuth2Session.
-func (mr *MockStorageMockRecorder) LoadOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOAuth2Session(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOAuth2Session", reflect.TypeOf((*MockStorage)(nil).LoadOAuth2Session), arg0, arg1, arg2)
}
@@ -338,7 +357,7 @@ func (m *MockStorage) LoadOneTimeCode(arg0 context.Context, arg1, arg2, arg3 str
}
// LoadOneTimeCode indicates an expected call of LoadOneTimeCode.
-func (mr *MockStorageMockRecorder) LoadOneTimeCode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOneTimeCode(arg0, arg1, arg2, arg3 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOneTimeCode", reflect.TypeOf((*MockStorage)(nil).LoadOneTimeCode), arg0, arg1, arg2, arg3)
}
@@ -353,7 +372,7 @@ func (m *MockStorage) LoadOneTimeCodeByID(arg0 context.Context, arg1 int) (*mode
}
// LoadOneTimeCodeByID indicates an expected call of LoadOneTimeCodeByID.
-func (mr *MockStorageMockRecorder) LoadOneTimeCodeByID(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOneTimeCodeByID(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOneTimeCodeByID", reflect.TypeOf((*MockStorage)(nil).LoadOneTimeCodeByID), arg0, arg1)
}
@@ -368,7 +387,7 @@ func (m *MockStorage) LoadOneTimeCodeByPublicID(arg0 context.Context, arg1 uuid.
}
// LoadOneTimeCodeByPublicID indicates an expected call of LoadOneTimeCodeByPublicID.
-func (mr *MockStorageMockRecorder) LoadOneTimeCodeByPublicID(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOneTimeCodeByPublicID(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOneTimeCodeByPublicID", reflect.TypeOf((*MockStorage)(nil).LoadOneTimeCodeByPublicID), arg0, arg1)
}
@@ -383,7 +402,7 @@ func (m *MockStorage) LoadOneTimeCodeBySignature(arg0 context.Context, arg1 stri
}
// LoadOneTimeCodeBySignature indicates an expected call of LoadOneTimeCodeBySignature.
-func (mr *MockStorageMockRecorder) LoadOneTimeCodeBySignature(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadOneTimeCodeBySignature(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadOneTimeCodeBySignature", reflect.TypeOf((*MockStorage)(nil).LoadOneTimeCodeBySignature), arg0, arg1)
}
@@ -398,7 +417,7 @@ func (m *MockStorage) LoadPreferred2FAMethod(arg0 context.Context, arg1 string)
}
// LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.
-func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferred2FAMethod", reflect.TypeOf((*MockStorage)(nil).LoadPreferred2FAMethod), arg0, arg1)
}
@@ -413,7 +432,7 @@ func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string)
}
// LoadPreferredDuoDevice indicates an expected call of LoadPreferredDuoDevice.
-func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).LoadPreferredDuoDevice), arg0, arg1)
}
@@ -428,7 +447,7 @@ func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (
}
// LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.
-func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).LoadTOTPConfiguration), arg0, arg1)
}
@@ -443,7 +462,7 @@ func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 in
}
// LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.
-func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfigurations", reflect.TypeOf((*MockStorage)(nil).LoadTOTPConfigurations), arg0, arg1, arg2)
}
@@ -458,7 +477,7 @@ func (m *MockStorage) LoadUserInfo(arg0 context.Context, arg1 string) (model.Use
}
// LoadUserInfo indicates an expected call of LoadUserInfo.
-func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserInfo", reflect.TypeOf((*MockStorage)(nil).LoadUserInfo), arg0, arg1)
}
@@ -473,7 +492,7 @@ func (m *MockStorage) LoadUserOpaqueIdentifier(arg0 context.Context, arg1 uuid.U
}
// LoadUserOpaqueIdentifier indicates an expected call of LoadUserOpaqueIdentifier.
-func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifier(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserOpaqueIdentifier", reflect.TypeOf((*MockStorage)(nil).LoadUserOpaqueIdentifier), arg0, arg1)
}
@@ -488,7 +507,7 @@ func (m *MockStorage) LoadUserOpaqueIdentifierBySignature(arg0 context.Context,
}
// LoadUserOpaqueIdentifierBySignature indicates an expected call of LoadUserOpaqueIdentifierBySignature.
-func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature(arg0, arg1, arg2, arg3 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserOpaqueIdentifierBySignature", reflect.TypeOf((*MockStorage)(nil).LoadUserOpaqueIdentifierBySignature), arg0, arg1, arg2, arg3)
}
@@ -503,7 +522,7 @@ func (m *MockStorage) LoadUserOpaqueIdentifiers(arg0 context.Context) ([]model.U
}
// LoadUserOpaqueIdentifiers indicates an expected call of LoadUserOpaqueIdentifiers.
-func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifiers(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifiers(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserOpaqueIdentifiers", reflect.TypeOf((*MockStorage)(nil).LoadUserOpaqueIdentifiers), arg0)
}
@@ -518,7 +537,7 @@ func (m *MockStorage) LoadWebAuthnCredentialByID(arg0 context.Context, arg1 int)
}
// LoadWebAuthnCredentialByID indicates an expected call of LoadWebAuthnCredentialByID.
-func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialByID(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialByID(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebAuthnCredentialByID", reflect.TypeOf((*MockStorage)(nil).LoadWebAuthnCredentialByID), arg0, arg1)
}
@@ -533,7 +552,7 @@ func (m *MockStorage) LoadWebAuthnCredentials(arg0 context.Context, arg1, arg2 i
}
// LoadWebAuthnCredentials indicates an expected call of LoadWebAuthnCredentials.
-func (mr *MockStorageMockRecorder) LoadWebAuthnCredentials(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadWebAuthnCredentials(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebAuthnCredentials", reflect.TypeOf((*MockStorage)(nil).LoadWebAuthnCredentials), arg0, arg1, arg2)
}
@@ -548,7 +567,7 @@ func (m *MockStorage) LoadWebAuthnCredentialsByUsername(arg0 context.Context, ar
}
// LoadWebAuthnCredentialsByUsername indicates an expected call of LoadWebAuthnCredentialsByUsername.
-func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialsByUsername(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadWebAuthnCredentialsByUsername(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebAuthnCredentialsByUsername", reflect.TypeOf((*MockStorage)(nil).LoadWebAuthnCredentialsByUsername), arg0, arg1, arg2)
}
@@ -563,7 +582,7 @@ func (m *MockStorage) LoadWebAuthnUser(arg0 context.Context, arg1, arg2 string)
}
// LoadWebAuthnUser indicates an expected call of LoadWebAuthnUser.
-func (mr *MockStorageMockRecorder) LoadWebAuthnUser(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) LoadWebAuthnUser(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebAuthnUser", reflect.TypeOf((*MockStorage)(nil).LoadWebAuthnUser), arg0, arg1, arg2)
}
@@ -577,7 +596,7 @@ func (m *MockStorage) RevokeIdentityVerification(arg0 context.Context, arg1 stri
}
// RevokeIdentityVerification indicates an expected call of RevokeIdentityVerification.
-func (mr *MockStorageMockRecorder) RevokeIdentityVerification(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) RevokeIdentityVerification(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeIdentityVerification", reflect.TypeOf((*MockStorage)(nil).RevokeIdentityVerification), arg0, arg1, arg2)
}
@@ -591,7 +610,7 @@ func (m *MockStorage) RevokeOAuth2PARContext(arg0 context.Context, arg1 string)
}
// RevokeOAuth2PARContext indicates an expected call of RevokeOAuth2PARContext.
-func (mr *MockStorageMockRecorder) RevokeOAuth2PARContext(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) RevokeOAuth2PARContext(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeOAuth2PARContext", reflect.TypeOf((*MockStorage)(nil).RevokeOAuth2PARContext), arg0, arg1)
}
@@ -605,7 +624,7 @@ func (m *MockStorage) RevokeOAuth2Session(arg0 context.Context, arg1 storage.OAu
}
// RevokeOAuth2Session indicates an expected call of RevokeOAuth2Session.
-func (mr *MockStorageMockRecorder) RevokeOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) RevokeOAuth2Session(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeOAuth2Session", reflect.TypeOf((*MockStorage)(nil).RevokeOAuth2Session), arg0, arg1, arg2)
}
@@ -619,7 +638,7 @@ func (m *MockStorage) RevokeOAuth2SessionByRequestID(arg0 context.Context, arg1
}
// RevokeOAuth2SessionByRequestID indicates an expected call of RevokeOAuth2SessionByRequestID.
-func (mr *MockStorageMockRecorder) RevokeOAuth2SessionByRequestID(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) RevokeOAuth2SessionByRequestID(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeOAuth2SessionByRequestID", reflect.TypeOf((*MockStorage)(nil).RevokeOAuth2SessionByRequestID), arg0, arg1, arg2)
}
@@ -633,7 +652,7 @@ func (m *MockStorage) RevokeOneTimeCode(arg0 context.Context, arg1 uuid.UUID, ar
}
// RevokeOneTimeCode indicates an expected call of RevokeOneTimeCode.
-func (mr *MockStorageMockRecorder) RevokeOneTimeCode(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) RevokeOneTimeCode(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeOneTimeCode", reflect.TypeOf((*MockStorage)(nil).RevokeOneTimeCode), arg0, arg1, arg2)
}
@@ -647,7 +666,7 @@ func (m *MockStorage) Rollback(arg0 context.Context) error {
}
// Rollback indicates an expected call of Rollback.
-func (mr *MockStorageMockRecorder) Rollback(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) Rollback(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockStorage)(nil).Rollback), arg0)
}
@@ -661,7 +680,7 @@ func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 model.
}
// SaveIdentityVerification indicates an expected call of SaveIdentityVerification.
-func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveIdentityVerification", reflect.TypeOf((*MockStorage)(nil).SaveIdentityVerification), arg0, arg1)
}
@@ -675,7 +694,7 @@ func (m *MockStorage) SaveOAuth2BlacklistedJTI(arg0 context.Context, arg1 model.
}
// SaveOAuth2BlacklistedJTI indicates an expected call of SaveOAuth2BlacklistedJTI.
-func (mr *MockStorageMockRecorder) SaveOAuth2BlacklistedJTI(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2BlacklistedJTI(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2BlacklistedJTI", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2BlacklistedJTI), arg0, arg1)
}
@@ -690,7 +709,7 @@ func (m *MockStorage) SaveOAuth2ConsentPreConfiguration(arg0 context.Context, ar
}
// SaveOAuth2ConsentPreConfiguration indicates an expected call of SaveOAuth2ConsentPreConfiguration.
-func (mr *MockStorageMockRecorder) SaveOAuth2ConsentPreConfiguration(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2ConsentPreConfiguration(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2ConsentPreConfiguration", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2ConsentPreConfiguration), arg0, arg1)
}
@@ -704,7 +723,7 @@ func (m *MockStorage) SaveOAuth2ConsentSession(arg0 context.Context, arg1 model.
}
// SaveOAuth2ConsentSession indicates an expected call of SaveOAuth2ConsentSession.
-func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSession(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSession(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2ConsentSession", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2ConsentSession), arg0, arg1)
}
@@ -718,7 +737,7 @@ func (m *MockStorage) SaveOAuth2ConsentSessionGranted(arg0 context.Context, arg1
}
// SaveOAuth2ConsentSessionGranted indicates an expected call of SaveOAuth2ConsentSessionGranted.
-func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2ConsentSessionGranted", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2ConsentSessionGranted), arg0, arg1)
}
@@ -732,7 +751,7 @@ func (m *MockStorage) SaveOAuth2ConsentSessionResponse(arg0 context.Context, arg
}
// SaveOAuth2ConsentSessionResponse indicates an expected call of SaveOAuth2ConsentSessionResponse.
-func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2ConsentSessionResponse", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2ConsentSessionResponse), arg0, arg1, arg2)
}
@@ -746,7 +765,7 @@ func (m *MockStorage) SaveOAuth2ConsentSessionSubject(arg0 context.Context, arg1
}
// SaveOAuth2ConsentSessionSubject indicates an expected call of SaveOAuth2ConsentSessionSubject.
-func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionSubject(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionSubject(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2ConsentSessionSubject", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2ConsentSessionSubject), arg0, arg1)
}
@@ -760,7 +779,7 @@ func (m *MockStorage) SaveOAuth2PARContext(arg0 context.Context, arg1 model.OAut
}
// SaveOAuth2PARContext indicates an expected call of SaveOAuth2PARContext.
-func (mr *MockStorageMockRecorder) SaveOAuth2PARContext(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2PARContext(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2PARContext", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2PARContext), arg0, arg1)
}
@@ -774,7 +793,7 @@ func (m *MockStorage) SaveOAuth2Session(arg0 context.Context, arg1 storage.OAuth
}
// SaveOAuth2Session indicates an expected call of SaveOAuth2Session.
-func (mr *MockStorageMockRecorder) SaveOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOAuth2Session(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOAuth2Session", reflect.TypeOf((*MockStorage)(nil).SaveOAuth2Session), arg0, arg1, arg2)
}
@@ -789,7 +808,7 @@ func (m *MockStorage) SaveOneTimeCode(arg0 context.Context, arg1 model.OneTimeCo
}
// SaveOneTimeCode indicates an expected call of SaveOneTimeCode.
-func (mr *MockStorageMockRecorder) SaveOneTimeCode(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveOneTimeCode(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveOneTimeCode", reflect.TypeOf((*MockStorage)(nil).SaveOneTimeCode), arg0, arg1)
}
@@ -803,7 +822,7 @@ func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 st
}
// SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.
-func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferred2FAMethod", reflect.TypeOf((*MockStorage)(nil).SavePreferred2FAMethod), arg0, arg1, arg2)
}
@@ -817,7 +836,7 @@ func (m *MockStorage) SavePreferredDuoDevice(arg0 context.Context, arg1 model.Du
}
// SavePreferredDuoDevice indicates an expected call of SavePreferredDuoDevice.
-func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).SavePreferredDuoDevice), arg0, arg1)
}
@@ -831,11 +850,25 @@ func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 model.TOT
}
// SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.
-func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).SaveTOTPConfiguration), arg0, arg1)
}
+// SaveTOTPHistory mocks base method.
+func (m *MockStorage) SaveTOTPHistory(arg0 context.Context, arg1 string, arg2 uint64) error {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "SaveTOTPHistory", arg0, arg1, arg2)
+ ret0, _ := ret[0].(error)
+ return ret0
+}
+
+// SaveTOTPHistory indicates an expected call of SaveTOTPHistory.
+func (mr *MockStorageMockRecorder) SaveTOTPHistory(arg0, arg1, arg2 any) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTOTPHistory", reflect.TypeOf((*MockStorage)(nil).SaveTOTPHistory), arg0, arg1, arg2)
+}
+
// SaveUserOpaqueIdentifier mocks base method.
func (m *MockStorage) SaveUserOpaqueIdentifier(arg0 context.Context, arg1 model.UserOpaqueIdentifier) error {
m.ctrl.T.Helper()
@@ -845,7 +878,7 @@ func (m *MockStorage) SaveUserOpaqueIdentifier(arg0 context.Context, arg1 model.
}
// SaveUserOpaqueIdentifier indicates an expected call of SaveUserOpaqueIdentifier.
-func (mr *MockStorageMockRecorder) SaveUserOpaqueIdentifier(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveUserOpaqueIdentifier(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveUserOpaqueIdentifier", reflect.TypeOf((*MockStorage)(nil).SaveUserOpaqueIdentifier), arg0, arg1)
}
@@ -859,7 +892,7 @@ func (m *MockStorage) SaveWebAuthnCredential(arg0 context.Context, arg1 model.We
}
// SaveWebAuthnCredential indicates an expected call of SaveWebAuthnCredential.
-func (mr *MockStorageMockRecorder) SaveWebAuthnCredential(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveWebAuthnCredential(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWebAuthnCredential", reflect.TypeOf((*MockStorage)(nil).SaveWebAuthnCredential), arg0, arg1)
}
@@ -873,7 +906,7 @@ func (m *MockStorage) SaveWebAuthnUser(arg0 context.Context, arg1 model.WebAuthn
}
// SaveWebAuthnUser indicates an expected call of SaveWebAuthnUser.
-func (mr *MockStorageMockRecorder) SaveWebAuthnUser(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SaveWebAuthnUser(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWebAuthnUser", reflect.TypeOf((*MockStorage)(nil).SaveWebAuthnUser), arg0, arg1)
}
@@ -887,7 +920,7 @@ func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 strin
}
// SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.
-func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionChangeKey", reflect.TypeOf((*MockStorage)(nil).SchemaEncryptionChangeKey), arg0, arg1)
}
@@ -902,7 +935,7 @@ func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool)
}
// SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.
-func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionCheckKey", reflect.TypeOf((*MockStorage)(nil).SchemaEncryptionCheckKey), arg0, arg1)
}
@@ -931,7 +964,7 @@ func (m *MockStorage) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) e
}
// SchemaMigrate indicates an expected call of SchemaMigrate.
-func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrate", reflect.TypeOf((*MockStorage)(nil).SchemaMigrate), arg0, arg1, arg2)
}
@@ -946,7 +979,7 @@ func (m *MockStorage) SchemaMigrationHistory(arg0 context.Context) ([]model.Migr
}
// SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.
-func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationHistory", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationHistory), arg0)
}
@@ -961,7 +994,7 @@ func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]mo
}
// SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.
-func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsDown", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationsDown), arg0, arg1)
}
@@ -976,7 +1009,7 @@ func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]mode
}
// SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.
-func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsUp", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationsUp), arg0, arg1)
}
@@ -991,7 +1024,7 @@ func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error) {
}
// SchemaTables indicates an expected call of SchemaTables.
-func (mr *MockStorageMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaTables(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaTables", reflect.TypeOf((*MockStorage)(nil).SchemaTables), arg0)
}
@@ -1006,7 +1039,7 @@ func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error) {
}
// SchemaVersion indicates an expected call of SchemaVersion.
-func (mr *MockStorageMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) SchemaVersion(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaVersion", reflect.TypeOf((*MockStorage)(nil).SchemaVersion), arg0)
}
@@ -1034,7 +1067,7 @@ func (m *MockStorage) UpdateOAuth2PARContext(arg0 context.Context, arg1 model.OA
}
// UpdateOAuth2PARContext indicates an expected call of UpdateOAuth2PARContext.
-func (mr *MockStorageMockRecorder) UpdateOAuth2PARContext(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) UpdateOAuth2PARContext(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOAuth2PARContext", reflect.TypeOf((*MockStorage)(nil).UpdateOAuth2PARContext), arg0, arg1)
}
@@ -1048,7 +1081,7 @@ func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 i
}
// UpdateTOTPConfigurationSignIn indicates an expected call of UpdateTOTPConfigurationSignIn.
-func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTOTPConfigurationSignIn", reflect.TypeOf((*MockStorage)(nil).UpdateTOTPConfigurationSignIn), arg0, arg1, arg2)
}
@@ -1062,7 +1095,7 @@ func (m *MockStorage) UpdateWebAuthnCredentialDescription(arg0 context.Context,
}
// UpdateWebAuthnCredentialDescription indicates an expected call of UpdateWebAuthnCredentialDescription.
-func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialDescription(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialDescription(arg0, arg1, arg2, arg3 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWebAuthnCredentialDescription", reflect.TypeOf((*MockStorage)(nil).UpdateWebAuthnCredentialDescription), arg0, arg1, arg2, arg3)
}
@@ -1076,7 +1109,7 @@ func (m *MockStorage) UpdateWebAuthnCredentialSignIn(arg0 context.Context, arg1
}
// UpdateWebAuthnCredentialSignIn indicates an expected call of UpdateWebAuthnCredentialSignIn.
-func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialSignIn(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockStorageMockRecorder) UpdateWebAuthnCredentialSignIn(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWebAuthnCredentialSignIn", reflect.TypeOf((*MockStorage)(nil).UpdateWebAuthnCredentialSignIn), arg0, arg1)
}
diff --git a/internal/mocks/totp.go b/internal/mocks/totp.go
index ab61dfe30..87738aac0 100644
--- a/internal/mocks/totp.go
+++ b/internal/mocks/totp.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/totp (interfaces: Provider)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination totp.go -mock_names Provider=MockTOTP github.com/authelia/authelia/v4/internal/totp Provider
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,7 +12,7 @@ import (
reflect "reflect"
model "github.com/authelia/authelia/v4/internal/model"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockTOTP is a mock of Provider interface.
@@ -44,7 +48,7 @@ func (m *MockTOTP) Generate(arg0 string) (*model.TOTPConfiguration, error) {
}
// Generate indicates an expected call of Generate.
-func (mr *MockTOTPMockRecorder) Generate(arg0 interface{}) *gomock.Call {
+func (mr *MockTOTPMockRecorder) Generate(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generate", reflect.TypeOf((*MockTOTP)(nil).Generate), arg0)
}
@@ -59,7 +63,7 @@ func (m *MockTOTP) GenerateCustom(arg0, arg1, arg2 string, arg3, arg4, arg5 uint
}
// GenerateCustom indicates an expected call of GenerateCustom.
-func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
+func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateCustom", reflect.TypeOf((*MockTOTP)(nil).GenerateCustom), arg0, arg1, arg2, arg3, arg4, arg5)
}
@@ -79,16 +83,17 @@ func (mr *MockTOTPMockRecorder) Options() *gomock.Call {
}
// Validate mocks base method.
-func (m *MockTOTP) Validate(arg0 string, arg1 *model.TOTPConfiguration) (bool, error) {
+func (m *MockTOTP) Validate(arg0 string, arg1 *model.TOTPConfiguration) (bool, uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Validate", arg0, arg1)
ret0, _ := ret[0].(bool)
- ret1, _ := ret[1].(error)
- return ret0, ret1
+ ret1, _ := ret[1].(uint64)
+ ret2, _ := ret[2].(error)
+ return ret0, ret1, ret2
}
// Validate indicates an expected call of Validate.
-func (mr *MockTOTPMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockTOTPMockRecorder) Validate(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockTOTP)(nil).Validate), arg0, arg1)
}
diff --git a/internal/mocks/user_provider.go b/internal/mocks/user_provider.go
index 4cc592dc9..54e3e478a 100644
--- a/internal/mocks/user_provider.go
+++ b/internal/mocks/user_provider.go
@@ -1,6 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: UserProvider)
-
+//
+// Generated by this command:
+//
+// mockgen -package mocks -destination user_provider.go -mock_names UserProvider=MockUserProvider github.com/authelia/authelia/v4/internal/authentication UserProvider
+//
// Package mocks is a generated GoMock package.
package mocks
@@ -8,7 +12,7 @@ import (
reflect "reflect"
authentication "github.com/authelia/authelia/v4/internal/authentication"
- gomock "github.com/golang/mock/gomock"
+ gomock "go.uber.org/mock/gomock"
)
// MockUserProvider is a mock of UserProvider interface.
@@ -44,7 +48,7 @@ func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error) {
}
// CheckUserPassword indicates an expected call of CheckUserPassword.
-func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckUserPassword", reflect.TypeOf((*MockUserProvider)(nil).CheckUserPassword), arg0, arg1)
}
@@ -59,7 +63,7 @@ func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails,
}
// GetDetails indicates an expected call of GetDetails.
-func (mr *MockUserProviderMockRecorder) GetDetails(arg0 interface{}) *gomock.Call {
+func (mr *MockUserProviderMockRecorder) GetDetails(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDetails", reflect.TypeOf((*MockUserProvider)(nil).GetDetails), arg0)
}
@@ -87,7 +91,7 @@ func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error {
}
// UpdatePassword indicates an expected call of UpdatePassword.
-func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call {
+func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePassword", reflect.TypeOf((*MockUserProvider)(nil).UpdatePassword), arg0, arg1)
}