diff --git a/access_error_test.go b/access_error_test.go index e1d4ef56..b6cbb19d 100644 --- a/access_error_test.go +++ b/access_error_test.go @@ -11,9 +11,9 @@ import ( "net/http/httptest" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/access_request_handler_test.go b/access_request_handler_test.go index 01f5a692..a5d63729 100644 --- a/access_request_handler_test.go +++ b/access_request_handler_test.go @@ -10,10 +10,10 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/access_response_writer_test.go b/access_response_writer_test.go index 39e62ed6..45f6089b 100644 --- a/access_response_writer_test.go +++ b/access_response_writer_test.go @@ -8,9 +8,9 @@ import ( "fmt" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/access_write_test.go b/access_write_test.go index a392aba9..4229185b 100644 --- a/access_write_test.go +++ b/access_write_test.go @@ -8,8 +8,8 @@ import ( "net/http" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/authorize_error_test.go b/authorize_error_test.go index 0db1771f..a7f4d81f 100644 --- a/authorize_error_test.go +++ b/authorize_error_test.go @@ -10,8 +10,8 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/authorize_request_handler_test.go b/authorize_request_handler_test.go index ce835243..e5c301fd 100644 --- a/authorize_request_handler_test.go +++ b/authorize_request_handler_test.go @@ -10,10 +10,10 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/authorize_response_writer_test.go b/authorize_response_writer_test.go index 59f892a5..0ff2c05d 100644 --- a/authorize_response_writer_test.go +++ b/authorize_response_writer_test.go @@ -7,9 +7,9 @@ import ( "context" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" . "github.com/ory/fosite" diff --git a/authorize_write_test.go b/authorize_write_test.go index 38f01ea8..36630e4c 100644 --- a/authorize_write_test.go +++ b/authorize_write_test.go @@ -9,8 +9,8 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/device_request_handler_test.go b/device_request_handler_test.go index 0b5b38e6..38cb336f 100644 --- a/device_request_handler_test.go +++ b/device_request_handler_test.go @@ -10,10 +10,10 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/go.mod b/go.mod index 5ffbc103..e88b5bfb 100644 --- a/go.mod +++ b/go.mod @@ -29,6 +29,7 @@ require ( github.com/stretchr/testify v1.9.0 github.com/tidwall/gjson v1.14.3 go.opentelemetry.io/otel/trace v1.21.0 + go.uber.org/mock v0.4.0 golang.org/x/crypto v0.21.0 golang.org/x/net v0.23.0 golang.org/x/oauth2 v0.15.0 diff --git a/go.sum b/go.sum index 8255b9fd..0d1d0d5c 100644 --- a/go.sum +++ b/go.sum @@ -464,6 +464,8 @@ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= +go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= diff --git a/handler/oauth2/flow_authorize_code_token_test.go b/handler/oauth2/flow_authorize_code_token_test.go index 38cc478a..c8ecb39b 100644 --- a/handler/oauth2/flow_authorize_code_token_test.go +++ b/handler/oauth2/flow_authorize_code_token_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/flow_authorize_implicit_test.go b/handler/oauth2/flow_authorize_implicit_test.go index 6bff9e89..3cac0db3 100644 --- a/handler/oauth2/flow_authorize_implicit_test.go +++ b/handler/oauth2/flow_authorize_implicit_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/flow_client_credentials_test.go b/handler/oauth2/flow_client_credentials_test.go index ed16ab18..8d9c906c 100644 --- a/handler/oauth2/flow_client_credentials_test.go +++ b/handler/oauth2/flow_client_credentials_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/flow_refresh_test.go b/handler/oauth2/flow_refresh_test.go index f9b00526..a0acd3d1 100644 --- a/handler/oauth2/flow_refresh_test.go +++ b/handler/oauth2/flow_refresh_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/flow_resource_owner_test.go b/handler/oauth2/flow_resource_owner_test.go index 59acb5ab..956f78bd 100644 --- a/handler/oauth2/flow_resource_owner_test.go +++ b/handler/oauth2/flow_resource_owner_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/helper_test.go b/handler/oauth2/helper_test.go index 8f42aba9..7705eca6 100644 --- a/handler/oauth2/helper_test.go +++ b/handler/oauth2/helper_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/introspector_test.go b/handler/oauth2/introspector_test.go index f1960d16..20834ab7 100644 --- a/handler/oauth2/introspector_test.go +++ b/handler/oauth2/introspector_test.go @@ -11,10 +11,10 @@ import ( "github.com/ory/x/errorsx" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/oauth2/revocation_test.go b/handler/oauth2/revocation_test.go index b657bed3..ad95d8e7 100644 --- a/handler/oauth2/revocation_test.go +++ b/handler/oauth2/revocation_test.go @@ -8,8 +8,8 @@ import ( "fmt" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/openid/flow_device_auth_test.go b/handler/openid/flow_device_auth_test.go index a345660f..3de6aec8 100644 --- a/handler/openid/flow_device_auth_test.go +++ b/handler/openid/flow_device_auth_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/ory/fosite/internal" "github.com/pkg/errors" + gomock "go.uber.org/mock/gomock" "github.com/stretchr/testify/require" diff --git a/handler/openid/flow_device_token_test.go b/handler/openid/flow_device_token_test.go index 03a51cd6..25442a74 100644 --- a/handler/openid/flow_device_token_test.go +++ b/handler/openid/flow_device_token_test.go @@ -15,11 +15,11 @@ import ( "github.com/stretchr/testify/require" "github.com/coocood/freecache" - "github.com/golang/mock/gomock" "github.com/ory/fosite/handler/rfc8628" "github.com/ory/fosite/internal" "github.com/ory/fosite/token/hmac" "github.com/ory/fosite/token/jwt" + gomock "go.uber.org/mock/gomock" "github.com/stretchr/testify/assert" diff --git a/handler/openid/flow_explicit_auth_test.go b/handler/openid/flow_explicit_auth_test.go index 756f3d82..db00bc23 100644 --- a/handler/openid/flow_explicit_auth_test.go +++ b/handler/openid/flow_explicit_auth_test.go @@ -11,9 +11,9 @@ import ( "github.com/ory/fosite/internal/gen" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/openid/flow_explicit_token_test.go b/handler/openid/flow_explicit_token_test.go index dadc6a8f..eeddedd2 100644 --- a/handler/openid/flow_explicit_token_test.go +++ b/handler/openid/flow_explicit_token_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/openid/flow_hybrid_test.go b/handler/openid/flow_hybrid_test.go index e0214ab3..3885de29 100644 --- a/handler/openid/flow_hybrid_test.go +++ b/handler/openid/flow_hybrid_test.go @@ -15,9 +15,9 @@ import ( "github.com/ory/fosite/internal/gen" cristaljwt "github.com/cristalhq/jwt/v4" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/handler/oauth2" diff --git a/handler/openid/flow_implicit_test.go b/handler/openid/flow_implicit_test.go index a833e51b..46cab8f7 100644 --- a/handler/openid/flow_implicit_test.go +++ b/handler/openid/flow_implicit_test.go @@ -13,8 +13,8 @@ import ( "github.com/ory/fosite/internal" "github.com/ory/fosite/internal/gen" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/handler/oauth2" diff --git a/handler/openid/helper_test.go b/handler/openid/helper_test.go index 7ca85678..dc488225 100644 --- a/handler/openid/helper_test.go +++ b/handler/openid/helper_test.go @@ -11,9 +11,9 @@ import ( "github.com/ory/fosite/internal/gen" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/rfc7523/handler_test.go b/handler/rfc7523/handler_test.go index aeb2811b..3d906981 100644 --- a/handler/rfc7523/handler_test.go +++ b/handler/rfc7523/handler_test.go @@ -20,8 +20,8 @@ import ( "github.com/go-jose/go-jose/v3" "github.com/go-jose/go-jose/v3/jwt" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/handler/rfc8628/auth_handler_test.go b/handler/rfc8628/auth_handler_test.go index ec20b852..bbe2d525 100644 --- a/handler/rfc8628/auth_handler_test.go +++ b/handler/rfc8628/auth_handler_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite/internal" diff --git a/handler/rfc8628/token_handler_test.go b/handler/rfc8628/token_handler_test.go index 8ec1d43b..a78ea489 100644 --- a/handler/rfc8628/token_handler_test.go +++ b/handler/rfc8628/token_handler_test.go @@ -13,8 +13,8 @@ import ( "github.com/coocood/freecache" "github.com/pkg/errors" - "github.com/golang/mock/gomock" "github.com/ory/fosite/internal" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite/handler/oauth2" "github.com/ory/fosite/token/hmac" diff --git a/handler/verifiable/handler_test.go b/handler/verifiable/handler_test.go index 2b5f91b1..930e49c9 100644 --- a/handler/verifiable/handler_test.go +++ b/handler/verifiable/handler_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/internal/access_request.go b/internal/access_request.go index fd05e542..ec093f9e 100644 --- a/internal/access_request.go +++ b/internal/access_request.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: AccessRequester) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/access_request.go github.com/ory/fosite AccessRequester +// // Package internal is a generated GoMock package. package internal @@ -12,9 +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. @@ -47,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) } @@ -199,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) } @@ -211,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) } @@ -223,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) } @@ -237,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) } @@ -249,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) } @@ -261,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) } @@ -273,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) } @@ -285,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/access_response.go b/internal/access_response.go index 340c2476..5f084b28 100644 --- a/internal/access_response.go +++ b/internal/access_response.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: AccessResponder) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/access_response.go github.com/ory/fosite AccessResponder +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( reflect "reflect" time "time" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAccessResponder is a mock of AccessResponder interface. @@ -54,15 +54,15 @@ func (mr *MockAccessResponderMockRecorder) GetAccessToken() *gomock.Call { } // GetExtra mocks base method. -func (m *MockAccessResponder) GetExtra(arg0 string) interface{} { +func (m *MockAccessResponder) GetExtra(arg0 string) any { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetExtra", arg0) - ret0, _ := ret[0].(interface{}) + ret0, _ := ret[0].(any) return ret0 } // GetExtra indicates an expected call of GetExtra. -func (mr *MockAccessResponderMockRecorder) GetExtra(arg0 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) GetExtra(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExtra", reflect.TypeOf((*MockAccessResponder)(nil).GetExtra), arg0) } @@ -88,7 +88,7 @@ func (m *MockAccessResponder) SetAccessToken(arg0 string) { } // SetAccessToken indicates an expected call of SetAccessToken. -func (mr *MockAccessResponderMockRecorder) SetAccessToken(arg0 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) SetAccessToken(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccessToken", reflect.TypeOf((*MockAccessResponder)(nil).SetAccessToken), arg0) } @@ -100,19 +100,19 @@ func (m *MockAccessResponder) SetExpiresIn(arg0 time.Duration) { } // SetExpiresIn indicates an expected call of SetExpiresIn. -func (mr *MockAccessResponderMockRecorder) SetExpiresIn(arg0 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) SetExpiresIn(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExpiresIn", reflect.TypeOf((*MockAccessResponder)(nil).SetExpiresIn), arg0) } // SetExtra mocks base method. -func (m *MockAccessResponder) SetExtra(arg0 string, arg1 interface{}) { +func (m *MockAccessResponder) SetExtra(arg0 string, arg1 any) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetExtra", arg0, arg1) } // SetExtra indicates an expected call of SetExtra. -func (mr *MockAccessResponderMockRecorder) SetExtra(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) SetExtra(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExtra", reflect.TypeOf((*MockAccessResponder)(nil).SetExtra), arg0, arg1) } @@ -124,7 +124,7 @@ func (m *MockAccessResponder) SetScopes(arg0 fosite.Arguments) { } // SetScopes indicates an expected call of SetScopes. -func (mr *MockAccessResponderMockRecorder) SetScopes(arg0 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) SetScopes(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetScopes", reflect.TypeOf((*MockAccessResponder)(nil).SetScopes), arg0) } @@ -136,16 +136,16 @@ func (m *MockAccessResponder) SetTokenType(arg0 string) { } // SetTokenType indicates an expected call of SetTokenType. -func (mr *MockAccessResponderMockRecorder) SetTokenType(arg0 interface{}) *gomock.Call { +func (mr *MockAccessResponderMockRecorder) SetTokenType(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTokenType", reflect.TypeOf((*MockAccessResponder)(nil).SetTokenType), arg0) } // ToMap mocks base method. -func (m *MockAccessResponder) ToMap() map[string]interface{} { +func (m *MockAccessResponder) ToMap() map[string]any { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ToMap") - ret0, _ := ret[0].(map[string]interface{}) + ret0, _ := ret[0].(map[string]any) return ret0 } diff --git a/internal/access_token_storage.go b/internal/access_token_storage.go index 38542453..9469c90b 100644 --- a/internal/access_token_storage.go +++ b/internal/access_token_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: AccessTokenStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/access_token_storage.go github.com/ory/fosite/handler/oauth2 AccessTokenStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAccessTokenStorage is a mock of AccessTokenStorage interface. @@ -48,7 +48,7 @@ func (m *MockAccessTokenStorage) CreateAccessTokenSession(arg0 context.Context, } // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession. -func (mr *MockAccessTokenStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAccessTokenStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockAccessTokenStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2) } @@ -62,7 +62,7 @@ func (m *MockAccessTokenStorage) DeleteAccessTokenSession(arg0 context.Context, } // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession. -func (mr *MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAccessTokenStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockAccessTokenStorage)(nil).DeleteAccessTokenSession), arg0, arg1) } @@ -77,7 +77,7 @@ func (m *MockAccessTokenStorage) GetAccessTokenSession(arg0 context.Context, arg } // GetAccessTokenSession indicates an expected call of GetAccessTokenSession. -func (mr *MockAccessTokenStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAccessTokenStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockAccessTokenStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2) } diff --git a/internal/access_token_strategy.go b/internal/access_token_strategy.go index d8c64c9b..ff14e186 100644 --- a/internal/access_token_strategy.go +++ b/internal/access_token_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: AccessTokenStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/access_token_strategy.go github.com/ory/fosite/handler/oauth2 AccessTokenStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,9 +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. @@ -48,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) } @@ -64,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) } @@ -78,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/authorize_code_storage.go b/internal/authorize_code_storage.go index 1543b682..dd6e41ff 100644 --- a/internal/authorize_code_storage.go +++ b/internal/authorize_code_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: AuthorizeCodeStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/authorize_code_storage.go github.com/ory/fosite/handler/oauth2 AuthorizeCodeStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAuthorizeCodeStorage is a mock of AuthorizeCodeStorage interface. @@ -48,7 +48,7 @@ func (m *MockAuthorizeCodeStorage) CreateAuthorizeCodeSession(arg0 context.Conte } // CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession. -func (mr *MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuthorizeCodeSession", reflect.TypeOf((*MockAuthorizeCodeStorage)(nil).CreateAuthorizeCodeSession), arg0, arg1, arg2) } @@ -63,7 +63,7 @@ func (m *MockAuthorizeCodeStorage) GetAuthorizeCodeSession(arg0 context.Context, } // GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession. -func (mr *MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthorizeCodeSession", reflect.TypeOf((*MockAuthorizeCodeStorage)(nil).GetAuthorizeCodeSession), arg0, arg1, arg2) } @@ -77,7 +77,7 @@ func (m *MockAuthorizeCodeStorage) InvalidateAuthorizeCodeSession(arg0 context.C } // InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession. -func (mr *MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateAuthorizeCodeSession", reflect.TypeOf((*MockAuthorizeCodeStorage)(nil).InvalidateAuthorizeCodeSession), arg0, arg1) } diff --git a/internal/authorize_code_strategy.go b/internal/authorize_code_strategy.go index 44edd644..c5e1583c 100644 --- a/internal/authorize_code_strategy.go +++ b/internal/authorize_code_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: AuthorizeCodeStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/authorize_code_strategy.go github.com/ory/fosite/handler/oauth2 AuthorizeCodeStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAuthorizeCodeStrategy is a mock of AuthorizeCodeStrategy interface. @@ -48,7 +48,7 @@ func (m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(arg0 context.Context, } // AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature. -func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCodeSignature", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).AuthorizeCodeSignature), arg0, arg1) } @@ -64,7 +64,7 @@ func (m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(arg0 context.Context, } // GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode. -func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAuthorizeCode", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).GenerateAuthorizeCode), arg0, arg1) } @@ -78,7 +78,7 @@ func (m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(arg0 context.Context, } // ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode. -func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAuthorizeCode", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).ValidateAuthorizeCode), arg0, arg1, arg2) } diff --git a/internal/authorize_handler.go b/internal/authorize_handler.go index d7420fed..093d4ab4 100644 --- a/internal/authorize_handler.go +++ b/internal/authorize_handler.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: AuthorizeEndpointHandler) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/authorize_handler.go github.com/ory/fosite AuthorizeEndpointHandler +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAuthorizeEndpointHandler is a mock of AuthorizeEndpointHandler interface. @@ -48,7 +48,7 @@ func (m *MockAuthorizeEndpointHandler) HandleAuthorizeEndpointRequest(arg0 conte } // HandleAuthorizeEndpointRequest indicates an expected call of HandleAuthorizeEndpointRequest. -func (mr *MockAuthorizeEndpointHandlerMockRecorder) HandleAuthorizeEndpointRequest(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAuthorizeEndpointHandlerMockRecorder) HandleAuthorizeEndpointRequest(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleAuthorizeEndpointRequest", reflect.TypeOf((*MockAuthorizeEndpointHandler)(nil).HandleAuthorizeEndpointRequest), arg0, arg1, arg2) } diff --git a/internal/authorize_request.go b/internal/authorize_request.go index 5cceafff..2477494e 100644 --- a/internal/authorize_request.go +++ b/internal/authorize_request.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: AuthorizeRequester) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/authorize_request.go github.com/ory/fosite AuthorizeRequester +// // Package internal is a generated GoMock package. package internal @@ -12,9 +13,8 @@ import ( reflect "reflect" time "time" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockAuthorizeRequester is a mock of AuthorizeRequester interface. @@ -47,7 +47,7 @@ func (m *MockAuthorizeRequester) AppendRequestedScope(arg0 string) { } // AppendRequestedScope indicates an expected call of AppendRequestedScope. -func (mr *MockAuthorizeRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) AppendRequestedScope(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendRequestedScope", reflect.TypeOf((*MockAuthorizeRequester)(nil).AppendRequestedScope), arg0) } @@ -269,7 +269,7 @@ func (m *MockAuthorizeRequester) GrantAudience(arg0 string) { } // GrantAudience indicates an expected call of GrantAudience. -func (mr *MockAuthorizeRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) GrantAudience(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantAudience", reflect.TypeOf((*MockAuthorizeRequester)(nil).GrantAudience), arg0) } @@ -281,7 +281,7 @@ func (m *MockAuthorizeRequester) GrantScope(arg0 string) { } // GrantScope indicates an expected call of GrantScope. -func (mr *MockAuthorizeRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) GrantScope(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantScope", reflect.TypeOf((*MockAuthorizeRequester)(nil).GrantScope), arg0) } @@ -307,7 +307,7 @@ func (m *MockAuthorizeRequester) Merge(arg0 fosite.Requester) { } // Merge indicates an expected call of Merge. -func (mr *MockAuthorizeRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) Merge(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Merge", reflect.TypeOf((*MockAuthorizeRequester)(nil).Merge), arg0) } @@ -321,7 +321,7 @@ func (m *MockAuthorizeRequester) Sanitize(arg0 []string) fosite.Requester { } // Sanitize indicates an expected call of Sanitize. -func (mr *MockAuthorizeRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) Sanitize(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sanitize", reflect.TypeOf((*MockAuthorizeRequester)(nil).Sanitize), arg0) } @@ -333,7 +333,7 @@ func (m *MockAuthorizeRequester) SetDefaultResponseMode(arg0 fosite.ResponseMode } // SetDefaultResponseMode indicates an expected call of SetDefaultResponseMode. -func (mr *MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetDefaultResponseMode(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultResponseMode", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetDefaultResponseMode), arg0) } @@ -345,7 +345,7 @@ func (m *MockAuthorizeRequester) SetID(arg0 string) { } // SetID indicates an expected call of SetID. -func (mr *MockAuthorizeRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetID(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetID", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetID), arg0) } @@ -357,7 +357,7 @@ func (m *MockAuthorizeRequester) SetRequestedAudience(arg0 fosite.Arguments) { } // SetRequestedAudience indicates an expected call of SetRequestedAudience. -func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedAudience(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedAudience", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetRequestedAudience), arg0) } @@ -369,7 +369,7 @@ func (m *MockAuthorizeRequester) SetRequestedScopes(arg0 fosite.Arguments) { } // SetRequestedScopes indicates an expected call of SetRequestedScopes. -func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetRequestedScopes(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedScopes", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetRequestedScopes), arg0) } @@ -381,7 +381,7 @@ func (m *MockAuthorizeRequester) SetResponseTypeHandled(arg0 string) { } // SetResponseTypeHandled indicates an expected call of SetResponseTypeHandled. -func (mr *MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetResponseTypeHandled(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetResponseTypeHandled", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetResponseTypeHandled), arg0) } @@ -393,7 +393,7 @@ func (m *MockAuthorizeRequester) SetSession(arg0 fosite.Session) { } // SetSession indicates an expected call of SetSession. -func (mr *MockAuthorizeRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call { +func (mr *MockAuthorizeRequesterMockRecorder) SetSession(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSession", reflect.TypeOf((*MockAuthorizeRequester)(nil).SetSession), arg0) } diff --git a/internal/authorize_response.go b/internal/authorize_response.go index 5526adf1..67be6244 100644 --- a/internal/authorize_response.go +++ b/internal/authorize_response.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: AuthorizeResponder) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/authorize_response.go github.com/ory/fosite AuthorizeResponder +// // Package internal is a generated GoMock package. package internal @@ -12,7 +13,7 @@ import ( url "net/url" reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockAuthorizeResponder is a mock of AuthorizeResponder interface. @@ -45,7 +46,7 @@ func (m *MockAuthorizeResponder) AddHeader(arg0, arg1 string) { } // AddHeader indicates an expected call of AddHeader. -func (mr *MockAuthorizeResponderMockRecorder) AddHeader(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAuthorizeResponderMockRecorder) AddHeader(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHeader", reflect.TypeOf((*MockAuthorizeResponder)(nil).AddHeader), arg0, arg1) } @@ -57,7 +58,7 @@ func (m *MockAuthorizeResponder) AddParameter(arg0, arg1 string) { } // AddParameter indicates an expected call of AddParameter. -func (mr *MockAuthorizeResponderMockRecorder) AddParameter(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAuthorizeResponderMockRecorder) AddParameter(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddParameter", reflect.TypeOf((*MockAuthorizeResponder)(nil).AddParameter), arg0, arg1) } diff --git a/internal/client.go b/internal/client.go index 2923cf70..8610914a 100644 --- a/internal/client.go +++ b/internal/client.go @@ -1,19 +1,18 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: Client) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/client.go github.com/ory/fosite Client +// // Package internal is a generated GoMock package. package internal import ( reflect "reflect" - time "time" - - gomock "github.com/golang/mock/gomock" fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockClient is a mock of Client interface. @@ -137,20 +136,6 @@ func (mr *MockClientMockRecorder) GetScopes() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScopes", reflect.TypeOf((*MockClient)(nil).GetScopes)) } -// GetTokenLifespan mocks base method. -func (m *MockClient) GetTokenLifespan(arg0 fosite.GrantType, arg1 fosite.TokenType, arg2 time.Duration) time.Duration { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetTokenLifespan", arg0, arg1, arg2) - ret0, _ := ret[0].(time.Duration) - return ret0 -} - -// GetTokenLifespan indicates an expected call of GetTokenLifespan. -func (mr *MockClientMockRecorder) GetTokenLifespan(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenLifespan", reflect.TypeOf((*MockClient)(nil).GetTokenLifespan), arg0, arg1, arg2) -} - // IsPublic mocks base method. func (m *MockClient) IsPublic() bool { m.ctrl.T.Helper() @@ -164,15 +149,3 @@ func (mr *MockClientMockRecorder) IsPublic() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsPublic", reflect.TypeOf((*MockClient)(nil).IsPublic)) } - -// SetTokenLifespans mocks base method. -func (m *MockClient) SetTokenLifespans(arg0 map[fosite.TokenType]time.Duration) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "SetTokenLifespans", arg0) -} - -// SetTokenLifespans indicates an expected call of SetTokenLifespans. -func (mr *MockClientMockRecorder) SetTokenLifespans(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTokenLifespans", reflect.TypeOf((*MockClient)(nil).SetTokenLifespans), arg0) -} diff --git a/internal/device_code_rate_limit_strategy.go b/internal/device_code_rate_limit_strategy.go index 3a3b4951..4f5e3323 100644 --- a/internal/device_code_rate_limit_strategy.go +++ b/internal/device_code_rate_limit_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/rfc8628 (interfaces: DeviceRateLimitStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/device_code_rate_limit_strategy.go github.com/ory/fosite/handler/rfc8628 DeviceRateLimitStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,7 +12,7 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockDeviceRateLimitStrategy is a mock of DeviceRateLimitStrategy interface. @@ -38,15 +39,16 @@ func (m *MockDeviceRateLimitStrategy) EXPECT() *MockDeviceRateLimitStrategyMockR } // ShouldRateLimit mocks base method. -func (m *MockDeviceRateLimitStrategy) ShouldRateLimit(arg0 context.Context, arg1 string) bool { +func (m *MockDeviceRateLimitStrategy) ShouldRateLimit(arg0 context.Context, arg1 string) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ShouldRateLimit", arg0, arg1) ret0, _ := ret[0].(bool) - return ret0 + ret1, _ := ret[1].(error) + return ret0, ret1 } // ShouldRateLimit indicates an expected call of ShouldRateLimit. -func (mr *MockDeviceRateLimitStrategyMockRecorder) ShouldRateLimit(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockDeviceRateLimitStrategyMockRecorder) ShouldRateLimit(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldRateLimit", reflect.TypeOf((*MockDeviceRateLimitStrategy)(nil).ShouldRateLimit), arg0, arg1) } diff --git a/internal/device_code_storage.go b/internal/device_code_storage.go index c4eee24d..fd205685 100644 --- a/internal/device_code_storage.go +++ b/internal/device_code_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/rfc8628 (interfaces: DeviceCodeStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/device_code_storage.go github.com/ory/fosite/handler/rfc8628 DeviceCodeStorage +// // Package internal is a generated GoMock package. package internal @@ -11,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" ) // MockDeviceCodeStorage is a mock of DeviceCodeStorage interface. @@ -47,7 +48,7 @@ func (m *MockDeviceCodeStorage) CreateDeviceCodeSession(arg0 context.Context, ar } // CreateDeviceCodeSession indicates an expected call of CreateDeviceCodeSession. -func (mr *MockDeviceCodeStorageMockRecorder) CreateDeviceCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockDeviceCodeStorageMockRecorder) CreateDeviceCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDeviceCodeSession", reflect.TypeOf((*MockDeviceCodeStorage)(nil).CreateDeviceCodeSession), arg0, arg1, arg2) } @@ -62,7 +63,7 @@ func (m *MockDeviceCodeStorage) GetDeviceCodeSession(arg0 context.Context, arg1 } // GetDeviceCodeSession indicates an expected call of GetDeviceCodeSession. -func (mr *MockDeviceCodeStorageMockRecorder) GetDeviceCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockDeviceCodeStorageMockRecorder) GetDeviceCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceCodeSession", reflect.TypeOf((*MockDeviceCodeStorage)(nil).GetDeviceCodeSession), arg0, arg1, arg2) } @@ -76,7 +77,7 @@ func (m *MockDeviceCodeStorage) InvalidateDeviceCodeSession(arg0 context.Context } // InvalidateDeviceCodeSession indicates an expected call of InvalidateDeviceCodeSession. -func (mr *MockDeviceCodeStorageMockRecorder) InvalidateDeviceCodeSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockDeviceCodeStorageMockRecorder) InvalidateDeviceCodeSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateDeviceCodeSession", reflect.TypeOf((*MockDeviceCodeStorage)(nil).InvalidateDeviceCodeSession), arg0, arg1) } diff --git a/internal/hash.go b/internal/hash.go index 687984e7..d0c4a3e7 100644 --- a/internal/hash.go +++ b/internal/hash.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: Hasher) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/hash.go github.com/ory/fosite Hasher +// // Package internal is a generated GoMock package. package internal @@ -11,7 +12,7 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockHasher is a mock of Hasher interface. @@ -46,7 +47,7 @@ func (m *MockHasher) Compare(arg0 context.Context, arg1, arg2 []byte) error { } // Compare indicates an expected call of Compare. -func (mr *MockHasherMockRecorder) Compare(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockHasherMockRecorder) Compare(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compare", reflect.TypeOf((*MockHasher)(nil).Compare), arg0, arg1, arg2) } @@ -61,7 +62,7 @@ func (m *MockHasher) Hash(arg0 context.Context, arg1 []byte) ([]byte, error) { } // Hash indicates an expected call of Hash. -func (mr *MockHasherMockRecorder) Hash(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockHasherMockRecorder) Hash(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockHasher)(nil).Hash), arg0, arg1) } diff --git a/internal/id_token_strategy.go b/internal/id_token_strategy.go index 330adeae..8ff5873a 100644 --- a/internal/id_token_strategy.go +++ b/internal/id_token_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/openid (interfaces: OpenIDConnectTokenStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/id_token_strategy.go github.com/ory/fosite/handler/openid OpenIDConnectTokenStrategy +// // Package internal is a generated GoMock package. package internal @@ -12,9 +13,8 @@ import ( reflect "reflect" time "time" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockOpenIDConnectTokenStrategy is a mock of OpenIDConnectTokenStrategy interface. @@ -50,7 +50,7 @@ func (m *MockOpenIDConnectTokenStrategy) GenerateIDToken(arg0 context.Context, a } // GenerateIDToken indicates an expected call of GenerateIDToken. -func (mr *MockOpenIDConnectTokenStrategyMockRecorder) GenerateIDToken(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockOpenIDConnectTokenStrategyMockRecorder) GenerateIDToken(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateIDToken", reflect.TypeOf((*MockOpenIDConnectTokenStrategy)(nil).GenerateIDToken), arg0, arg1, arg2) } diff --git a/internal/introspector.go b/internal/introspector.go index 7b68fbf4..ff381f53 100644 --- a/internal/introspector.go +++ b/internal/introspector.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: TokenIntrospector) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/introspector.go github.com/ory/fosite TokenIntrospector +// // Package internal is a generated GoMock package. package internal @@ -11,9 +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. @@ -49,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/oauth2_auth_jwt_storage.go b/internal/oauth2_auth_jwt_storage.go index 80c7278e..621e9f4c 100644 --- a/internal/oauth2_auth_jwt_storage.go +++ b/internal/oauth2_auth_jwt_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/rfc7523 (interfaces: RFC7523KeyStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_auth_jwt_storage.go github.com/ory/fosite/handler/rfc7523 RFC7523KeyStorage +// // Package internal is a generated GoMock package. package internal @@ -13,7 +14,7 @@ import ( time "time" jose "github.com/go-jose/go-jose/v3" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockRFC7523KeyStorage is a mock of RFC7523KeyStorage interface. @@ -49,7 +50,7 @@ func (m *MockRFC7523KeyStorage) GetPublicKey(arg0 context.Context, arg1, arg2, a } // GetPublicKey indicates an expected call of GetPublicKey. -func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKey(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKey", reflect.TypeOf((*MockRFC7523KeyStorage)(nil).GetPublicKey), arg0, arg1, arg2, arg3) } @@ -64,7 +65,7 @@ func (m *MockRFC7523KeyStorage) GetPublicKeyScopes(arg0 context.Context, arg1, a } // GetPublicKeyScopes indicates an expected call of GetPublicKeyScopes. -func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeyScopes(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKeyScopes", reflect.TypeOf((*MockRFC7523KeyStorage)(nil).GetPublicKeyScopes), arg0, arg1, arg2, arg3) } @@ -79,7 +80,7 @@ func (m *MockRFC7523KeyStorage) GetPublicKeys(arg0 context.Context, arg1, arg2 s } // GetPublicKeys indicates an expected call of GetPublicKeys. -func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeys(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC7523KeyStorageMockRecorder) GetPublicKeys(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKeys", reflect.TypeOf((*MockRFC7523KeyStorage)(nil).GetPublicKeys), arg0, arg1, arg2) } @@ -94,7 +95,7 @@ func (m *MockRFC7523KeyStorage) IsJWTUsed(arg0 context.Context, arg1 string) (bo } // IsJWTUsed indicates an expected call of IsJWTUsed. -func (mr *MockRFC7523KeyStorageMockRecorder) IsJWTUsed(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC7523KeyStorageMockRecorder) IsJWTUsed(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsJWTUsed", reflect.TypeOf((*MockRFC7523KeyStorage)(nil).IsJWTUsed), arg0, arg1) } @@ -108,7 +109,7 @@ func (m *MockRFC7523KeyStorage) MarkJWTUsedForTime(arg0 context.Context, arg1 st } // MarkJWTUsedForTime indicates an expected call of MarkJWTUsedForTime. -func (mr *MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC7523KeyStorageMockRecorder) MarkJWTUsedForTime(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkJWTUsedForTime", reflect.TypeOf((*MockRFC7523KeyStorage)(nil).MarkJWTUsedForTime), arg0, arg1, arg2) } diff --git a/internal/oauth2_client_storage.go b/internal/oauth2_client_storage.go index d33dfd77..9f7ad87d 100644 --- a/internal/oauth2_client_storage.go +++ b/internal/oauth2_client_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: ClientCredentialsGrantStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_client_storage.go github.com/ory/fosite/handler/oauth2 ClientCredentialsGrantStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +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. @@ -48,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) } @@ -62,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) } @@ -77,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/oauth2_explicit_storage.go b/internal/oauth2_explicit_storage.go index 1bcd3922..9e78dcdb 100644 --- a/internal/oauth2_explicit_storage.go +++ b/internal/oauth2_explicit_storage.go @@ -9,7 +9,7 @@ package internal import ( "context" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" ) diff --git a/internal/oauth2_owner_storage.go b/internal/oauth2_owner_storage.go index 79e79795..df030e5c 100644 --- a/internal/oauth2_owner_storage.go +++ b/internal/oauth2_owner_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: ResourceOwnerPasswordCredentialsGrantStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_owner_storage.go github.com/ory/fosite/handler/oauth2 ResourceOwnerPasswordCredentialsGrantStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockResourceOwnerPasswordCredentialsGrantStorage is a mock of ResourceOwnerPasswordCredentialsGrantStorage interface. @@ -48,7 +48,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(arg0 con } // Authenticate indicates an expected call of Authenticate. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).Authenticate), arg0, arg1, arg2) } @@ -62,7 +62,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSess } // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2) } @@ -76,7 +76,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSes } // CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2) } @@ -90,7 +90,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSess } // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteAccessTokenSession), arg0, arg1) } @@ -104,7 +104,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSes } // DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteRefreshTokenSession), arg0, arg1) } @@ -119,7 +119,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession } // GetAccessTokenSession indicates an expected call of GetAccessTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2) } @@ -134,7 +134,7 @@ func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSessio } // GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession. -func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2) } diff --git a/internal/oauth2_refresh_storage.go b/internal/oauth2_refresh_storage.go index 73cfa8c2..8cf6eaa7 100644 --- a/internal/oauth2_refresh_storage.go +++ b/internal/oauth2_refresh_storage.go @@ -9,7 +9,7 @@ package internal import ( "context" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" ) diff --git a/internal/oauth2_revoke_storage.go b/internal/oauth2_revoke_storage.go index 12580b4b..6413d929 100644 --- a/internal/oauth2_revoke_storage.go +++ b/internal/oauth2_revoke_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: TokenRevocationStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_revoke_storage.go github.com/ory/fosite/handler/oauth2 TokenRevocationStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +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. @@ -48,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) } @@ -62,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) } @@ -76,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) } @@ -90,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) } @@ -105,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) } @@ -120,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) } @@ -134,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) } @@ -148,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) } @@ -162,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/oauth2_storage.go b/internal/oauth2_storage.go index a67815f7..e11ab1ab 100644 --- a/internal/oauth2_storage.go +++ b/internal/oauth2_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: CoreStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_storage.go github.com/ory/fosite/handler/oauth2 CoreStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockCoreStorage is a mock of CoreStorage interface. @@ -48,7 +48,7 @@ func (m *MockCoreStorage) CreateAccessTokenSession(arg0 context.Context, arg1 st } // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession. -func (mr *MockCoreStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2) } @@ -62,7 +62,7 @@ func (m *MockCoreStorage) CreateAuthorizeCodeSession(arg0 context.Context, arg1 } // CreateAuthorizeCodeSession indicates an expected call of CreateAuthorizeCodeSession. -func (mr *MockCoreStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuthorizeCodeSession", reflect.TypeOf((*MockCoreStorage)(nil).CreateAuthorizeCodeSession), arg0, arg1, arg2) } @@ -76,7 +76,7 @@ func (m *MockCoreStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 s } // CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession. -func (mr *MockCoreStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2) } @@ -90,7 +90,7 @@ func (m *MockCoreStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 st } // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession. -func (mr *MockCoreStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).DeleteAccessTokenSession), arg0, arg1) } @@ -104,7 +104,7 @@ func (m *MockCoreStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 s } // DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession. -func (mr *MockCoreStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).DeleteRefreshTokenSession), arg0, arg1) } @@ -119,7 +119,7 @@ func (m *MockCoreStorage) GetAccessTokenSession(arg0 context.Context, arg1 strin } // GetAccessTokenSession indicates an expected call of GetAccessTokenSession. -func (mr *MockCoreStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2) } @@ -134,7 +134,7 @@ func (m *MockCoreStorage) GetAuthorizeCodeSession(arg0 context.Context, arg1 str } // GetAuthorizeCodeSession indicates an expected call of GetAuthorizeCodeSession. -func (mr *MockCoreStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthorizeCodeSession", reflect.TypeOf((*MockCoreStorage)(nil).GetAuthorizeCodeSession), arg0, arg1, arg2) } @@ -149,7 +149,7 @@ func (m *MockCoreStorage) GetRefreshTokenSession(arg0 context.Context, arg1 stri } // GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession. -func (mr *MockCoreStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockCoreStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2) } @@ -163,7 +163,7 @@ func (m *MockCoreStorage) InvalidateAuthorizeCodeSession(arg0 context.Context, a } // InvalidateAuthorizeCodeSession indicates an expected call of InvalidateAuthorizeCodeSession. -func (mr *MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStorageMockRecorder) InvalidateAuthorizeCodeSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateAuthorizeCodeSession", reflect.TypeOf((*MockCoreStorage)(nil).InvalidateAuthorizeCodeSession), arg0, arg1) } diff --git a/internal/oauth2_strategy.go b/internal/oauth2_strategy.go index 53920205..21cf0706 100644 --- a/internal/oauth2_strategy.go +++ b/internal/oauth2_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: CoreStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/oauth2_strategy.go github.com/ory/fosite/handler/oauth2 CoreStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockCoreStrategy is a mock of CoreStrategy interface. @@ -48,7 +48,7 @@ func (m *MockCoreStrategy) AccessTokenSignature(arg0 context.Context, arg1 strin } // AccessTokenSignature indicates an expected call of AccessTokenSignature. -func (mr *MockCoreStrategyMockRecorder) AccessTokenSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) AccessTokenSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessTokenSignature", reflect.TypeOf((*MockCoreStrategy)(nil).AccessTokenSignature), arg0, arg1) } @@ -62,7 +62,7 @@ func (m *MockCoreStrategy) AuthorizeCodeSignature(arg0 context.Context, arg1 str } // AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature. -func (mr *MockCoreStrategyMockRecorder) AuthorizeCodeSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) AuthorizeCodeSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCodeSignature", reflect.TypeOf((*MockCoreStrategy)(nil).AuthorizeCodeSignature), arg0, arg1) } @@ -78,7 +78,7 @@ func (m *MockCoreStrategy) GenerateAccessToken(arg0 context.Context, arg1 fosite } // GenerateAccessToken indicates an expected call of GenerateAccessToken. -func (mr *MockCoreStrategyMockRecorder) GenerateAccessToken(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) GenerateAccessToken(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAccessToken", reflect.TypeOf((*MockCoreStrategy)(nil).GenerateAccessToken), arg0, arg1) } @@ -94,7 +94,7 @@ func (m *MockCoreStrategy) GenerateAuthorizeCode(arg0 context.Context, arg1 fosi } // GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode. -func (mr *MockCoreStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAuthorizeCode", reflect.TypeOf((*MockCoreStrategy)(nil).GenerateAuthorizeCode), arg0, arg1) } @@ -110,7 +110,7 @@ func (m *MockCoreStrategy) GenerateRefreshToken(arg0 context.Context, arg1 fosit } // GenerateRefreshToken indicates an expected call of GenerateRefreshToken. -func (mr *MockCoreStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateRefreshToken", reflect.TypeOf((*MockCoreStrategy)(nil).GenerateRefreshToken), arg0, arg1) } @@ -124,7 +124,7 @@ func (m *MockCoreStrategy) RefreshTokenSignature(arg0 context.Context, arg1 stri } // RefreshTokenSignature indicates an expected call of RefreshTokenSignature. -func (mr *MockCoreStrategyMockRecorder) RefreshTokenSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) RefreshTokenSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshTokenSignature", reflect.TypeOf((*MockCoreStrategy)(nil).RefreshTokenSignature), arg0, arg1) } @@ -138,7 +138,7 @@ func (m *MockCoreStrategy) ValidateAccessToken(arg0 context.Context, arg1 fosite } // ValidateAccessToken indicates an expected call of ValidateAccessToken. -func (mr *MockCoreStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) ValidateAccessToken(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAccessToken", reflect.TypeOf((*MockCoreStrategy)(nil).ValidateAccessToken), arg0, arg1, arg2) } @@ -152,7 +152,7 @@ func (m *MockCoreStrategy) ValidateAuthorizeCode(arg0 context.Context, arg1 fosi } // ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode. -func (mr *MockCoreStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAuthorizeCode", reflect.TypeOf((*MockCoreStrategy)(nil).ValidateAuthorizeCode), arg0, arg1, arg2) } @@ -166,7 +166,7 @@ func (m *MockCoreStrategy) ValidateRefreshToken(arg0 context.Context, arg1 fosit } // ValidateRefreshToken indicates an expected call of ValidateRefreshToken. -func (mr *MockCoreStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockCoreStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateRefreshToken", reflect.TypeOf((*MockCoreStrategy)(nil).ValidateRefreshToken), arg0, arg1, arg2) } diff --git a/internal/openid_id_token_storage.go b/internal/openid_id_token_storage.go index bfcd0d62..a518585b 100644 --- a/internal/openid_id_token_storage.go +++ b/internal/openid_id_token_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/openid (interfaces: OpenIDConnectRequestStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/openid_id_token_storage.go github.com/ory/fosite/handler/openid OpenIDConnectRequestStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockOpenIDConnectRequestStorage is a mock of OpenIDConnectRequestStorage interface. @@ -48,7 +48,7 @@ func (m *MockOpenIDConnectRequestStorage) CreateOpenIDConnectSession(arg0 contex } // CreateOpenIDConnectSession indicates an expected call of CreateOpenIDConnectSession. -func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockOpenIDConnectRequestStorageMockRecorder) CreateOpenIDConnectSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).CreateOpenIDConnectSession), arg0, arg1, arg2) } @@ -62,7 +62,7 @@ func (m *MockOpenIDConnectRequestStorage) DeleteOpenIDConnectSession(arg0 contex } // DeleteOpenIDConnectSession indicates an expected call of DeleteOpenIDConnectSession. -func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockOpenIDConnectRequestStorageMockRecorder) DeleteOpenIDConnectSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).DeleteOpenIDConnectSession), arg0, arg1) } @@ -77,7 +77,7 @@ func (m *MockOpenIDConnectRequestStorage) GetOpenIDConnectSession(arg0 context.C } // GetOpenIDConnectSession indicates an expected call of GetOpenIDConnectSession. -func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockOpenIDConnectRequestStorageMockRecorder) GetOpenIDConnectSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenIDConnectSession", reflect.TypeOf((*MockOpenIDConnectRequestStorage)(nil).GetOpenIDConnectSession), arg0, arg1, arg2) } diff --git a/internal/pkce_storage_strategy.go b/internal/pkce_storage_strategy.go index 46de92ea..85db5dfd 100644 --- a/internal/pkce_storage_strategy.go +++ b/internal/pkce_storage_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/pkce (interfaces: PKCERequestStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/pkce_storage_strategy.go github.com/ory/fosite/handler/pkce PKCERequestStorage +// // Package internal is a generated GoMock package. package internal @@ -11,9 +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. @@ -48,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) } @@ -62,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) } @@ -77,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/pushed_authorize_handler.go b/internal/pushed_authorize_handler.go index d871469d..a017f56d 100644 --- a/internal/pushed_authorize_handler.go +++ b/internal/pushed_authorize_handler.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" ) diff --git a/internal/refresh_token_strategy.go b/internal/refresh_token_strategy.go index 5338bfb7..827f879b 100644 --- a/internal/refresh_token_strategy.go +++ b/internal/refresh_token_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/oauth2 (interfaces: RefreshTokenStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/refresh_token_strategy.go github.com/ory/fosite/handler/oauth2 RefreshTokenStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockRefreshTokenStrategy is a mock of RefreshTokenStrategy interface. @@ -50,7 +50,7 @@ func (m *MockRefreshTokenStrategy) GenerateRefreshToken(arg0 context.Context, ar } // GenerateRefreshToken indicates an expected call of GenerateRefreshToken. -func (mr *MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRefreshTokenStrategyMockRecorder) GenerateRefreshToken(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateRefreshToken", reflect.TypeOf((*MockRefreshTokenStrategy)(nil).GenerateRefreshToken), arg0, arg1) } @@ -64,7 +64,7 @@ func (m *MockRefreshTokenStrategy) RefreshTokenSignature(arg0 context.Context, a } // RefreshTokenSignature indicates an expected call of RefreshTokenSignature. -func (mr *MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRefreshTokenStrategyMockRecorder) RefreshTokenSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshTokenSignature", reflect.TypeOf((*MockRefreshTokenStrategy)(nil).RefreshTokenSignature), arg0, arg1) } @@ -78,7 +78,7 @@ func (m *MockRefreshTokenStrategy) ValidateRefreshToken(arg0 context.Context, ar } // ValidateRefreshToken indicates an expected call of ValidateRefreshToken. -func (mr *MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRefreshTokenStrategyMockRecorder) ValidateRefreshToken(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateRefreshToken", reflect.TypeOf((*MockRefreshTokenStrategy)(nil).ValidateRefreshToken), arg0, arg1, arg2) } diff --git a/internal/request.go b/internal/request.go index c74969c9..7d16a8ea 100644 --- a/internal/request.go +++ b/internal/request.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: Requester) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/request.go github.com/ory/fosite Requester +// // Package internal is a generated GoMock package. package internal @@ -12,9 +13,8 @@ import ( reflect "reflect" time "time" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockRequester is a mock of Requester interface. @@ -47,7 +47,7 @@ func (m *MockRequester) AppendRequestedScope(arg0 string) { } // AppendRequestedScope indicates an expected call of AppendRequestedScope. -func (mr *MockRequesterMockRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) AppendRequestedScope(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendRequestedScope", reflect.TypeOf((*MockRequester)(nil).AppendRequestedScope), arg0) } @@ -185,7 +185,7 @@ func (m *MockRequester) GrantAudience(arg0 string) { } // GrantAudience indicates an expected call of GrantAudience. -func (mr *MockRequesterMockRecorder) GrantAudience(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) GrantAudience(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantAudience", reflect.TypeOf((*MockRequester)(nil).GrantAudience), arg0) } @@ -197,7 +197,7 @@ func (m *MockRequester) GrantScope(arg0 string) { } // GrantScope indicates an expected call of GrantScope. -func (mr *MockRequesterMockRecorder) GrantScope(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) GrantScope(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantScope", reflect.TypeOf((*MockRequester)(nil).GrantScope), arg0) } @@ -209,7 +209,7 @@ func (m *MockRequester) Merge(arg0 fosite.Requester) { } // Merge indicates an expected call of Merge. -func (mr *MockRequesterMockRecorder) Merge(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) Merge(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Merge", reflect.TypeOf((*MockRequester)(nil).Merge), arg0) } @@ -223,7 +223,7 @@ func (m *MockRequester) Sanitize(arg0 []string) fosite.Requester { } // Sanitize indicates an expected call of Sanitize. -func (mr *MockRequesterMockRecorder) Sanitize(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) Sanitize(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sanitize", reflect.TypeOf((*MockRequester)(nil).Sanitize), arg0) } @@ -235,7 +235,7 @@ func (m *MockRequester) SetID(arg0 string) { } // SetID indicates an expected call of SetID. -func (mr *MockRequesterMockRecorder) SetID(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) SetID(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetID", reflect.TypeOf((*MockRequester)(nil).SetID), arg0) } @@ -247,7 +247,7 @@ func (m *MockRequester) SetRequestedAudience(arg0 fosite.Arguments) { } // SetRequestedAudience indicates an expected call of SetRequestedAudience. -func (mr *MockRequesterMockRecorder) SetRequestedAudience(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) SetRequestedAudience(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedAudience", reflect.TypeOf((*MockRequester)(nil).SetRequestedAudience), arg0) } @@ -259,7 +259,7 @@ func (m *MockRequester) SetRequestedScopes(arg0 fosite.Arguments) { } // SetRequestedScopes indicates an expected call of SetRequestedScopes. -func (mr *MockRequesterMockRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) SetRequestedScopes(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRequestedScopes", reflect.TypeOf((*MockRequester)(nil).SetRequestedScopes), arg0) } @@ -271,7 +271,7 @@ func (m *MockRequester) SetSession(arg0 fosite.Session) { } // SetSession indicates an expected call of SetSession. -func (mr *MockRequesterMockRecorder) SetSession(arg0 interface{}) *gomock.Call { +func (mr *MockRequesterMockRecorder) SetSession(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSession", reflect.TypeOf((*MockRequester)(nil).SetSession), arg0) } diff --git a/internal/revoke_handler.go b/internal/revoke_handler.go index 948178e1..b30493b7 100644 --- a/internal/revoke_handler.go +++ b/internal/revoke_handler.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: RevocationHandler) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/revoke_handler.go github.com/ory/fosite RevocationHandler +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockRevocationHandler is a mock of RevocationHandler interface. @@ -48,7 +48,7 @@ func (m *MockRevocationHandler) RevokeToken(arg0 context.Context, arg1 string, a } // RevokeToken indicates an expected call of RevokeToken. -func (mr *MockRevocationHandlerMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockRevocationHandlerMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockRevocationHandler)(nil).RevokeToken), arg0, arg1, arg2, arg3) } diff --git a/internal/rfc8628_code_strategy.go b/internal/rfc8628_code_strategy.go index a328ac1f..6e909fda 100644 --- a/internal/rfc8628_code_strategy.go +++ b/internal/rfc8628_code_strategy.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/rfc8628 (interfaces: RFC8628CodeStrategy) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/rfc8628_code_strategy.go github.com/ory/fosite/handler/rfc8628 RFC8628CodeStrategy +// // Package internal is a generated GoMock package. package internal @@ -11,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" ) // MockRFC8628CodeStrategy is a mock of RFC8628CodeStrategy interface. @@ -48,7 +49,7 @@ func (m *MockRFC8628CodeStrategy) DeviceCodeSignature(arg0 context.Context, arg1 } // DeviceCodeSignature indicates an expected call of DeviceCodeSignature. -func (mr *MockRFC8628CodeStrategyMockRecorder) DeviceCodeSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) DeviceCodeSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeviceCodeSignature", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).DeviceCodeSignature), arg0, arg1) } @@ -64,7 +65,7 @@ func (m *MockRFC8628CodeStrategy) GenerateDeviceCode(arg0 context.Context) (stri } // GenerateDeviceCode indicates an expected call of GenerateDeviceCode. -func (mr *MockRFC8628CodeStrategyMockRecorder) GenerateDeviceCode(arg0 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) GenerateDeviceCode(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDeviceCode", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).GenerateDeviceCode), arg0) } @@ -80,7 +81,7 @@ func (m *MockRFC8628CodeStrategy) GenerateUserCode(arg0 context.Context) (string } // GenerateUserCode indicates an expected call of GenerateUserCode. -func (mr *MockRFC8628CodeStrategyMockRecorder) GenerateUserCode(arg0 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) GenerateUserCode(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateUserCode", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).GenerateUserCode), arg0) } @@ -95,7 +96,7 @@ func (m *MockRFC8628CodeStrategy) ShouldRateLimit(arg0 context.Context, arg1 str } // ShouldRateLimit indicates an expected call of ShouldRateLimit. -func (mr *MockRFC8628CodeStrategyMockRecorder) ShouldRateLimit(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) ShouldRateLimit(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldRateLimit", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).ShouldRateLimit), arg0, arg1) } @@ -110,7 +111,7 @@ func (m *MockRFC8628CodeStrategy) UserCodeSignature(arg0 context.Context, arg1 s } // UserCodeSignature indicates an expected call of UserCodeSignature. -func (mr *MockRFC8628CodeStrategyMockRecorder) UserCodeSignature(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) UserCodeSignature(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserCodeSignature", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).UserCodeSignature), arg0, arg1) } @@ -124,7 +125,7 @@ func (m *MockRFC8628CodeStrategy) ValidateDeviceCode(arg0 context.Context, arg1 } // ValidateDeviceCode indicates an expected call of ValidateDeviceCode. -func (mr *MockRFC8628CodeStrategyMockRecorder) ValidateDeviceCode(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) ValidateDeviceCode(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateDeviceCode", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).ValidateDeviceCode), arg0, arg1, arg2) } @@ -138,7 +139,7 @@ func (m *MockRFC8628CodeStrategy) ValidateUserCode(arg0 context.Context, arg1 fo } // ValidateUserCode indicates an expected call of ValidateUserCode. -func (mr *MockRFC8628CodeStrategyMockRecorder) ValidateUserCode(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CodeStrategyMockRecorder) ValidateUserCode(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateUserCode", reflect.TypeOf((*MockRFC8628CodeStrategy)(nil).ValidateUserCode), arg0, arg1, arg2) } diff --git a/internal/rfc8628_core_storage.go b/internal/rfc8628_core_storage.go index 93340de2..d7fecb71 100644 --- a/internal/rfc8628_core_storage.go +++ b/internal/rfc8628_core_storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/handler/rfc8628 (interfaces: RFC8628CoreStorage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/rfc8628_core_storage.go github.com/ory/fosite/handler/rfc8628 RFC8628CoreStorage +// // Package internal is a generated GoMock package. package internal @@ -11,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" ) // MockRFC8628CoreStorage is a mock of RFC8628CoreStorage interface. @@ -47,7 +48,7 @@ func (m *MockRFC8628CoreStorage) CreateAccessTokenSession(arg0 context.Context, } // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2) } @@ -61,7 +62,7 @@ func (m *MockRFC8628CoreStorage) CreateDeviceCodeSession(arg0 context.Context, a } // CreateDeviceCodeSession indicates an expected call of CreateDeviceCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) CreateDeviceCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) CreateDeviceCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDeviceCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).CreateDeviceCodeSession), arg0, arg1, arg2) } @@ -75,7 +76,7 @@ func (m *MockRFC8628CoreStorage) CreateRefreshTokenSession(arg0 context.Context, } // CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2) } @@ -89,7 +90,7 @@ func (m *MockRFC8628CoreStorage) CreateUserCodeSession(arg0 context.Context, arg } // CreateUserCodeSession indicates an expected call of CreateUserCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) CreateUserCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) CreateUserCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).CreateUserCodeSession), arg0, arg1, arg2) } @@ -103,7 +104,7 @@ func (m *MockRFC8628CoreStorage) DeleteAccessTokenSession(arg0 context.Context, } // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).DeleteAccessTokenSession), arg0, arg1) } @@ -117,7 +118,7 @@ func (m *MockRFC8628CoreStorage) DeleteRefreshTokenSession(arg0 context.Context, } // DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).DeleteRefreshTokenSession), arg0, arg1) } @@ -132,7 +133,7 @@ func (m *MockRFC8628CoreStorage) GetAccessTokenSession(arg0 context.Context, arg } // GetAccessTokenSession indicates an expected call of GetAccessTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2) } @@ -147,7 +148,7 @@ func (m *MockRFC8628CoreStorage) GetDeviceCodeSession(arg0 context.Context, arg1 } // GetDeviceCodeSession indicates an expected call of GetDeviceCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) GetDeviceCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) GetDeviceCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).GetDeviceCodeSession), arg0, arg1, arg2) } @@ -162,7 +163,7 @@ func (m *MockRFC8628CoreStorage) GetRefreshTokenSession(arg0 context.Context, ar } // GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession. -func (mr *MockRFC8628CoreStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2) } @@ -177,7 +178,7 @@ func (m *MockRFC8628CoreStorage) GetUserCodeSession(arg0 context.Context, arg1 s } // GetUserCodeSession indicates an expected call of GetUserCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) GetUserCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) GetUserCodeSession(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).GetUserCodeSession), arg0, arg1, arg2) } @@ -191,7 +192,7 @@ func (m *MockRFC8628CoreStorage) InvalidateDeviceCodeSession(arg0 context.Contex } // InvalidateDeviceCodeSession indicates an expected call of InvalidateDeviceCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) InvalidateDeviceCodeSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) InvalidateDeviceCodeSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateDeviceCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).InvalidateDeviceCodeSession), arg0, arg1) } @@ -205,7 +206,7 @@ func (m *MockRFC8628CoreStorage) InvalidateUserCodeSession(arg0 context.Context, } // InvalidateUserCodeSession indicates an expected call of InvalidateUserCodeSession. -func (mr *MockRFC8628CoreStorageMockRecorder) InvalidateUserCodeSession(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockRFC8628CoreStorageMockRecorder) InvalidateUserCodeSession(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateUserCodeSession", reflect.TypeOf((*MockRFC8628CoreStorage)(nil).InvalidateUserCodeSession), arg0, arg1) } diff --git a/internal/rw.go b/internal/rw.go index 3d954552..674d323d 100644 --- a/internal/rw.go +++ b/internal/rw.go @@ -9,7 +9,7 @@ package internal import ( "net/http" - "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // Mock of ResponseWriter interface diff --git a/internal/storage.go b/internal/storage.go index 14fa7c32..671bfea1 100644 --- a/internal/storage.go +++ b/internal/storage.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: Storage) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/storage.go github.com/ory/fosite Storage +// // Package internal is a generated GoMock package. package internal @@ -12,9 +13,8 @@ import ( reflect "reflect" time "time" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockStorage is a mock of Storage interface. @@ -49,7 +49,7 @@ func (m *MockStorage) ClientAssertionJWTValid(arg0 context.Context, arg1 string) } // ClientAssertionJWTValid indicates an expected call of ClientAssertionJWTValid. -func (mr *MockStorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockStorageMockRecorder) ClientAssertionJWTValid(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientAssertionJWTValid", reflect.TypeOf((*MockStorage)(nil).ClientAssertionJWTValid), arg0, arg1) } @@ -64,7 +64,7 @@ func (m *MockStorage) GetClient(arg0 context.Context, arg1 string) (fosite.Clien } // GetClient indicates an expected call of GetClient. -func (mr *MockStorageMockRecorder) GetClient(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockStorageMockRecorder) GetClient(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockStorage)(nil).GetClient), arg0, arg1) } @@ -78,7 +78,7 @@ func (m *MockStorage) SetClientAssertionJWT(arg0 context.Context, arg1 string, a } // SetClientAssertionJWT indicates an expected call of SetClientAssertionJWT. -func (mr *MockStorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockStorageMockRecorder) SetClientAssertionJWT(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientAssertionJWT", reflect.TypeOf((*MockStorage)(nil).SetClientAssertionJWT), arg0, arg1, arg2) } diff --git a/internal/token_handler.go b/internal/token_handler.go index 9eb17067..ff78e60f 100644 --- a/internal/token_handler.go +++ b/internal/token_handler.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite (interfaces: TokenEndpointHandler) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/token_handler.go github.com/ory/fosite TokenEndpointHandler +// // Package internal is a generated GoMock package. package internal @@ -11,9 +12,8 @@ import ( context "context" reflect "reflect" - gomock "github.com/golang/mock/gomock" - fosite "github.com/ory/fosite" + gomock "go.uber.org/mock/gomock" ) // MockTokenEndpointHandler is a mock of TokenEndpointHandler interface. @@ -48,7 +48,7 @@ func (m *MockTokenEndpointHandler) CanHandleTokenEndpointRequest(arg0 context.Co } // CanHandleTokenEndpointRequest indicates an expected call of CanHandleTokenEndpointRequest. -func (mr *MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockTokenEndpointHandlerMockRecorder) CanHandleTokenEndpointRequest(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanHandleTokenEndpointRequest", reflect.TypeOf((*MockTokenEndpointHandler)(nil).CanHandleTokenEndpointRequest), arg0, arg1) } @@ -62,7 +62,7 @@ func (m *MockTokenEndpointHandler) CanSkipClientAuth(arg0 context.Context, arg1 } // CanSkipClientAuth indicates an expected call of CanSkipClientAuth. -func (mr *MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockTokenEndpointHandlerMockRecorder) CanSkipClientAuth(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanSkipClientAuth", reflect.TypeOf((*MockTokenEndpointHandler)(nil).CanSkipClientAuth), arg0, arg1) } @@ -76,7 +76,7 @@ func (m *MockTokenEndpointHandler) HandleTokenEndpointRequest(arg0 context.Conte } // HandleTokenEndpointRequest indicates an expected call of HandleTokenEndpointRequest. -func (mr *MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockTokenEndpointHandlerMockRecorder) HandleTokenEndpointRequest(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleTokenEndpointRequest", reflect.TypeOf((*MockTokenEndpointHandler)(nil).HandleTokenEndpointRequest), arg0, arg1) } @@ -90,7 +90,7 @@ func (m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(arg0 context.Co } // PopulateTokenEndpointResponse indicates an expected call of PopulateTokenEndpointResponse. -func (mr *MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockTokenEndpointHandlerMockRecorder) PopulateTokenEndpointResponse(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopulateTokenEndpointResponse", reflect.TypeOf((*MockTokenEndpointHandler)(nil).PopulateTokenEndpointResponse), arg0, arg1, arg2) } diff --git a/internal/transactional.go b/internal/transactional.go index d98d63ab..63bb5fca 100644 --- a/internal/transactional.go +++ b/internal/transactional.go @@ -1,9 +1,10 @@ -// Copyright © 2024 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - // Code generated by MockGen. DO NOT EDIT. // Source: github.com/ory/fosite/storage (interfaces: Transactional) - +// +// Generated by this command: +// +// mockgen -package internal -destination internal/transactional.go github.com/ory/fosite/storage Transactional +// // Package internal is a generated GoMock package. package internal @@ -11,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. @@ -47,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) } @@ -61,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) } @@ -75,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/introspect_test.go b/introspect_test.go index a6b9787f..f2a4669e 100644 --- a/introspect_test.go +++ b/introspect_test.go @@ -9,9 +9,9 @@ import ( "net/http" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/compose" diff --git a/introspection_request_handler_test.go b/introspection_request_handler_test.go index d589b61e..3ab6fc8b 100644 --- a/introspection_request_handler_test.go +++ b/introspection_request_handler_test.go @@ -10,10 +10,10 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" "github.com/ory/fosite" . "github.com/ory/fosite" diff --git a/introspection_response_writer_test.go b/introspection_response_writer_test.go index a7754486..d512a54b 100644 --- a/introspection_response_writer_test.go +++ b/introspection_response_writer_test.go @@ -13,10 +13,10 @@ import ( "github.com/ory/x/errorsx" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/pushed_authorize_request_handler_test.go b/pushed_authorize_request_handler_test.go index 41dd0b26..7898cb4f 100644 --- a/pushed_authorize_request_handler_test.go +++ b/pushed_authorize_request_handler_test.go @@ -10,9 +10,9 @@ import ( "runtime/debug" "testing" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal" diff --git a/pushed_authorize_response_writer_test.go b/pushed_authorize_response_writer_test.go index 00c9d8fb..e7a9269f 100644 --- a/pushed_authorize_response_writer_test.go +++ b/pushed_authorize_response_writer_test.go @@ -7,9 +7,9 @@ import ( "context" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" . "github.com/ory/fosite/internal" diff --git a/revoke_handler_test.go b/revoke_handler_test.go index 42a8269f..97f9063c 100644 --- a/revoke_handler_test.go +++ b/revoke_handler_test.go @@ -11,9 +11,9 @@ import ( "net/url" "testing" - "github.com/golang/mock/gomock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" + gomock "go.uber.org/mock/gomock" . "github.com/ory/fosite" "github.com/ory/fosite/internal"