* feat(op): dynamic issuer depending on request / host BREAKING CHANGE: The OpenID Provider package is now able to handle multiple issuers with a single storage implementation. The issuer will be selected from the host of the request and passed into the context, where every function can read it from if necessary. This results in some fundamental changes: - `Configuration` interface: - `Issuer() string` has been changed to `IssuerFromRequest(r *http.Request) string` - `Insecure() bool` has been added - OpenIDProvider interface and dependants: - `Issuer` has been removed from Config struct - `NewOpenIDProvider` now takes an additional parameter `issuer` and returns a pointer to the public/default implementation and not an OpenIDProvider interface: `NewOpenIDProvider(ctx context.Context, config *Config, storage Storage, opOpts ...Option) (OpenIDProvider, error)` changed to `NewOpenIDProvider(ctx context.Context, issuer string, config *Config, storage Storage, opOpts ...Option) (*Provider, error)` - therefore the parameter type Option changed to the public type as well: `Option func(o *Provider) error` - `AuthCallbackURL(o OpenIDProvider) func(string) string` has been changed to `AuthCallbackURL(o OpenIDProvider) func(context.Context, string) string` - `IDTokenHintVerifier() IDTokenHintVerifier` (Authorizer, OpenIDProvider, SessionEnder interfaces), `AccessTokenVerifier() AccessTokenVerifier` (Introspector, OpenIDProvider, Revoker, UserinfoProvider interfaces) and `JWTProfileVerifier() JWTProfileVerifier` (IntrospectorJWTProfile, JWTAuthorizationGrantExchanger, OpenIDProvider, RevokerJWTProfile interfaces) now take a context.Context parameter `IDTokenHintVerifier(context.Context) IDTokenHintVerifier`, `AccessTokenVerifier(context.Context) AccessTokenVerifier` and `JWTProfileVerifier(context.Context) JWTProfileVerifier` - `OidcDevMode` (CAOS_OIDC_DEV) environment variable check has been removed, use `WithAllowInsecure()` Option - Signing: the signer is not kept in memory anymore, but created on request from the loaded key: - `Signer` interface and func `NewSigner` have been removed - `ReadySigner(s Signer) ProbesFn` has been removed - `CreateDiscoveryConfig(c Configuration, s Signer) *oidc.DiscoveryConfiguration` has been changed to `CreateDiscoveryConfig(r *http.Request, config Configuration, storage DiscoverStorage) *oidc.DiscoveryConfiguration` - `Storage` interface: - `GetSigningKey(context.Context, chan<- jose.SigningKey)` has been changed to `SigningKey(context.Context) (SigningKey, error)` - `KeySet(context.Context) ([]Key, error)` has been added - `GetKeySet(context.Context) (*jose.JSONWebKeySet, error)` has been changed to `KeySet(context.Context) ([]Key, error)` - `SigAlgorithms(s Signer) []string` has been changed to `SigAlgorithms(ctx context.Context, storage DiscoverStorage) []string` - KeyProvider interface: `GetKeySet(context.Context) (*jose.JSONWebKeySet, error)` has been changed to `KeySet(context.Context) ([]Key, error)` - `CreateIDToken`: the Signer parameter has been removed * move example * fix examples * fix mocks * update readme * fix examples and update usage * update go module version to v2 * build branch * fix(module): rename caos to zitadel * fix: add state in access token response (implicit flow) * fix: encode auth response correctly (when using query in redirect uri) * fix query param handling * feat: add all optional claims of the introspection response * fix: use default redirect uri when not passed * fix: exchange cors library and add `X-Requested-With` to Access-Control-Request-Headers (#261) * feat(op): add support for client credentials * fix mocks and test * feat: allow to specify token type of JWT Profile Grant * document JWTProfileTokenStorage * cleanup * rp: fix integration test test username needed to be suffixed by issuer domain * chore(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.5.0 to 0.6.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.5.0...v0.6.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * op: mock: cleanup commented code * op: remove duplicate code code duplication caused by merge conflict selections --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com> Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
373 lines
15 KiB
Go
373 lines
15 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/zitadel/oidc/v2/pkg/op (interfaces: Configuration)
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
op "github.com/zitadel/oidc/v2/pkg/op"
|
|
language "golang.org/x/text/language"
|
|
)
|
|
|
|
// MockConfiguration is a mock of Configuration interface.
|
|
type MockConfiguration struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockConfigurationMockRecorder
|
|
}
|
|
|
|
// MockConfigurationMockRecorder is the mock recorder for MockConfiguration.
|
|
type MockConfigurationMockRecorder struct {
|
|
mock *MockConfiguration
|
|
}
|
|
|
|
// NewMockConfiguration creates a new mock instance.
|
|
func NewMockConfiguration(ctrl *gomock.Controller) *MockConfiguration {
|
|
mock := &MockConfiguration{ctrl: ctrl}
|
|
mock.recorder = &MockConfigurationMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AuthMethodPostSupported mocks base method.
|
|
func (m *MockConfiguration) AuthMethodPostSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AuthMethodPostSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// AuthMethodPostSupported indicates an expected call of AuthMethodPostSupported.
|
|
func (mr *MockConfigurationMockRecorder) AuthMethodPostSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMethodPostSupported", reflect.TypeOf((*MockConfiguration)(nil).AuthMethodPostSupported))
|
|
}
|
|
|
|
// AuthMethodPrivateKeyJWTSupported mocks base method.
|
|
func (m *MockConfiguration) AuthMethodPrivateKeyJWTSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AuthMethodPrivateKeyJWTSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// AuthMethodPrivateKeyJWTSupported indicates an expected call of AuthMethodPrivateKeyJWTSupported.
|
|
func (mr *MockConfigurationMockRecorder) AuthMethodPrivateKeyJWTSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMethodPrivateKeyJWTSupported", reflect.TypeOf((*MockConfiguration)(nil).AuthMethodPrivateKeyJWTSupported))
|
|
}
|
|
|
|
// AuthorizationEndpoint mocks base method.
|
|
func (m *MockConfiguration) AuthorizationEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AuthorizationEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// AuthorizationEndpoint indicates an expected call of AuthorizationEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) AuthorizationEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizationEndpoint", reflect.TypeOf((*MockConfiguration)(nil).AuthorizationEndpoint))
|
|
}
|
|
|
|
// CodeMethodS256Supported mocks base method.
|
|
func (m *MockConfiguration) CodeMethodS256Supported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CodeMethodS256Supported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// CodeMethodS256Supported indicates an expected call of CodeMethodS256Supported.
|
|
func (mr *MockConfigurationMockRecorder) CodeMethodS256Supported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CodeMethodS256Supported", reflect.TypeOf((*MockConfiguration)(nil).CodeMethodS256Supported))
|
|
}
|
|
|
|
// EndSessionEndpoint mocks base method.
|
|
func (m *MockConfiguration) EndSessionEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "EndSessionEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// EndSessionEndpoint indicates an expected call of EndSessionEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) EndSessionEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndSessionEndpoint", reflect.TypeOf((*MockConfiguration)(nil).EndSessionEndpoint))
|
|
}
|
|
|
|
// GrantTypeClientCredentialsSupported mocks base method.
|
|
func (m *MockConfiguration) GrantTypeClientCredentialsSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GrantTypeClientCredentialsSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// GrantTypeClientCredentialsSupported indicates an expected call of GrantTypeClientCredentialsSupported.
|
|
func (mr *MockConfigurationMockRecorder) GrantTypeClientCredentialsSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantTypeClientCredentialsSupported", reflect.TypeOf((*MockConfiguration)(nil).GrantTypeClientCredentialsSupported))
|
|
}
|
|
|
|
// GrantTypeJWTAuthorizationSupported mocks base method.
|
|
func (m *MockConfiguration) GrantTypeJWTAuthorizationSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GrantTypeJWTAuthorizationSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// GrantTypeJWTAuthorizationSupported indicates an expected call of GrantTypeJWTAuthorizationSupported.
|
|
func (mr *MockConfigurationMockRecorder) GrantTypeJWTAuthorizationSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantTypeJWTAuthorizationSupported", reflect.TypeOf((*MockConfiguration)(nil).GrantTypeJWTAuthorizationSupported))
|
|
}
|
|
|
|
// GrantTypeRefreshTokenSupported mocks base method.
|
|
func (m *MockConfiguration) GrantTypeRefreshTokenSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GrantTypeRefreshTokenSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// GrantTypeRefreshTokenSupported indicates an expected call of GrantTypeRefreshTokenSupported.
|
|
func (mr *MockConfigurationMockRecorder) GrantTypeRefreshTokenSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantTypeRefreshTokenSupported", reflect.TypeOf((*MockConfiguration)(nil).GrantTypeRefreshTokenSupported))
|
|
}
|
|
|
|
// GrantTypeTokenExchangeSupported mocks base method.
|
|
func (m *MockConfiguration) GrantTypeTokenExchangeSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GrantTypeTokenExchangeSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// GrantTypeTokenExchangeSupported indicates an expected call of GrantTypeTokenExchangeSupported.
|
|
func (mr *MockConfigurationMockRecorder) GrantTypeTokenExchangeSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantTypeTokenExchangeSupported", reflect.TypeOf((*MockConfiguration)(nil).GrantTypeTokenExchangeSupported))
|
|
}
|
|
|
|
// Insecure mocks base method.
|
|
func (m *MockConfiguration) Insecure() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Insecure")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// Insecure indicates an expected call of Insecure.
|
|
func (mr *MockConfigurationMockRecorder) Insecure() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insecure", reflect.TypeOf((*MockConfiguration)(nil).Insecure))
|
|
}
|
|
|
|
// IntrospectionAuthMethodPrivateKeyJWTSupported mocks base method.
|
|
func (m *MockConfiguration) IntrospectionAuthMethodPrivateKeyJWTSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IntrospectionAuthMethodPrivateKeyJWTSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// IntrospectionAuthMethodPrivateKeyJWTSupported indicates an expected call of IntrospectionAuthMethodPrivateKeyJWTSupported.
|
|
func (mr *MockConfigurationMockRecorder) IntrospectionAuthMethodPrivateKeyJWTSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntrospectionAuthMethodPrivateKeyJWTSupported", reflect.TypeOf((*MockConfiguration)(nil).IntrospectionAuthMethodPrivateKeyJWTSupported))
|
|
}
|
|
|
|
// IntrospectionEndpoint mocks base method.
|
|
func (m *MockConfiguration) IntrospectionEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IntrospectionEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// IntrospectionEndpoint indicates an expected call of IntrospectionEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) IntrospectionEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntrospectionEndpoint", reflect.TypeOf((*MockConfiguration)(nil).IntrospectionEndpoint))
|
|
}
|
|
|
|
// IntrospectionEndpointSigningAlgorithmsSupported mocks base method.
|
|
func (m *MockConfiguration) IntrospectionEndpointSigningAlgorithmsSupported() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IntrospectionEndpointSigningAlgorithmsSupported")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// IntrospectionEndpointSigningAlgorithmsSupported indicates an expected call of IntrospectionEndpointSigningAlgorithmsSupported.
|
|
func (mr *MockConfigurationMockRecorder) IntrospectionEndpointSigningAlgorithmsSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntrospectionEndpointSigningAlgorithmsSupported", reflect.TypeOf((*MockConfiguration)(nil).IntrospectionEndpointSigningAlgorithmsSupported))
|
|
}
|
|
|
|
// IssuerFromRequest mocks base method.
|
|
func (m *MockConfiguration) IssuerFromRequest(arg0 *http.Request) string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IssuerFromRequest", arg0)
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// IssuerFromRequest indicates an expected call of IssuerFromRequest.
|
|
func (mr *MockConfigurationMockRecorder) IssuerFromRequest(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IssuerFromRequest", reflect.TypeOf((*MockConfiguration)(nil).IssuerFromRequest), arg0)
|
|
}
|
|
|
|
// KeysEndpoint mocks base method.
|
|
func (m *MockConfiguration) KeysEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "KeysEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// KeysEndpoint indicates an expected call of KeysEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) KeysEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeysEndpoint", reflect.TypeOf((*MockConfiguration)(nil).KeysEndpoint))
|
|
}
|
|
|
|
// RequestObjectSigningAlgorithmsSupported mocks base method.
|
|
func (m *MockConfiguration) RequestObjectSigningAlgorithmsSupported() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RequestObjectSigningAlgorithmsSupported")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// RequestObjectSigningAlgorithmsSupported indicates an expected call of RequestObjectSigningAlgorithmsSupported.
|
|
func (mr *MockConfigurationMockRecorder) RequestObjectSigningAlgorithmsSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestObjectSigningAlgorithmsSupported", reflect.TypeOf((*MockConfiguration)(nil).RequestObjectSigningAlgorithmsSupported))
|
|
}
|
|
|
|
// RequestObjectSupported mocks base method.
|
|
func (m *MockConfiguration) RequestObjectSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RequestObjectSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// RequestObjectSupported indicates an expected call of RequestObjectSupported.
|
|
func (mr *MockConfigurationMockRecorder) RequestObjectSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestObjectSupported", reflect.TypeOf((*MockConfiguration)(nil).RequestObjectSupported))
|
|
}
|
|
|
|
// RevocationAuthMethodPrivateKeyJWTSupported mocks base method.
|
|
func (m *MockConfiguration) RevocationAuthMethodPrivateKeyJWTSupported() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RevocationAuthMethodPrivateKeyJWTSupported")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// RevocationAuthMethodPrivateKeyJWTSupported indicates an expected call of RevocationAuthMethodPrivateKeyJWTSupported.
|
|
func (mr *MockConfigurationMockRecorder) RevocationAuthMethodPrivateKeyJWTSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationAuthMethodPrivateKeyJWTSupported", reflect.TypeOf((*MockConfiguration)(nil).RevocationAuthMethodPrivateKeyJWTSupported))
|
|
}
|
|
|
|
// RevocationEndpoint mocks base method.
|
|
func (m *MockConfiguration) RevocationEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RevocationEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// RevocationEndpoint indicates an expected call of RevocationEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) RevocationEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationEndpoint", reflect.TypeOf((*MockConfiguration)(nil).RevocationEndpoint))
|
|
}
|
|
|
|
// RevocationEndpointSigningAlgorithmsSupported mocks base method.
|
|
func (m *MockConfiguration) RevocationEndpointSigningAlgorithmsSupported() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RevocationEndpointSigningAlgorithmsSupported")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// RevocationEndpointSigningAlgorithmsSupported indicates an expected call of RevocationEndpointSigningAlgorithmsSupported.
|
|
func (mr *MockConfigurationMockRecorder) RevocationEndpointSigningAlgorithmsSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationEndpointSigningAlgorithmsSupported", reflect.TypeOf((*MockConfiguration)(nil).RevocationEndpointSigningAlgorithmsSupported))
|
|
}
|
|
|
|
// SupportedUILocales mocks base method.
|
|
func (m *MockConfiguration) SupportedUILocales() []language.Tag {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SupportedUILocales")
|
|
ret0, _ := ret[0].([]language.Tag)
|
|
return ret0
|
|
}
|
|
|
|
// SupportedUILocales indicates an expected call of SupportedUILocales.
|
|
func (mr *MockConfigurationMockRecorder) SupportedUILocales() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SupportedUILocales", reflect.TypeOf((*MockConfiguration)(nil).SupportedUILocales))
|
|
}
|
|
|
|
// TokenEndpoint mocks base method.
|
|
func (m *MockConfiguration) TokenEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "TokenEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// TokenEndpoint indicates an expected call of TokenEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) TokenEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenEndpoint", reflect.TypeOf((*MockConfiguration)(nil).TokenEndpoint))
|
|
}
|
|
|
|
// TokenEndpointSigningAlgorithmsSupported mocks base method.
|
|
func (m *MockConfiguration) TokenEndpointSigningAlgorithmsSupported() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "TokenEndpointSigningAlgorithmsSupported")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// TokenEndpointSigningAlgorithmsSupported indicates an expected call of TokenEndpointSigningAlgorithmsSupported.
|
|
func (mr *MockConfigurationMockRecorder) TokenEndpointSigningAlgorithmsSupported() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenEndpointSigningAlgorithmsSupported", reflect.TypeOf((*MockConfiguration)(nil).TokenEndpointSigningAlgorithmsSupported))
|
|
}
|
|
|
|
// UserinfoEndpoint mocks base method.
|
|
func (m *MockConfiguration) UserinfoEndpoint() op.Endpoint {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UserinfoEndpoint")
|
|
ret0, _ := ret[0].(op.Endpoint)
|
|
return ret0
|
|
}
|
|
|
|
// UserinfoEndpoint indicates an expected call of UserinfoEndpoint.
|
|
func (mr *MockConfigurationMockRecorder) UserinfoEndpoint() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserinfoEndpoint", reflect.TypeOf((*MockConfiguration)(nil).UserinfoEndpoint))
|
|
}
|