| 1 |
// Code generated by MockGen. DO NOT EDIT. |
| 2 |
// Source: github.com/zitadel/oidc/v3/pkg/op (interfaces: Client) |
| 3 |
|
| 4 |
// Package mock is a generated GoMock package. |
| 5 |
package mock |
| 6 |
|
| 7 |
import ( |
| 8 |
reflect "reflect" |
| 9 |
time "time" |
| 10 |
|
| 11 |
gomock "github.com/golang/mock/gomock" |
| 12 |
oidc "github.com/zitadel/oidc/v3/pkg/oidc" |
| 13 |
op "github.com/zitadel/oidc/v3/pkg/op" |
| 14 |
) |
| 15 |
|
| 16 |
// MockClient is a mock of Client interface. |
| 17 |
type MockClient struct { |
| 18 |
ctrl *gomock.Controller |
| 19 |
recorder *MockClientMockRecorder |
| 20 |
} |
| 21 |
|
| 22 |
// MockClientMockRecorder is the mock recorder for MockClient. |
| 23 |
type MockClientMockRecorder struct { |
| 24 |
mock *MockClient |
| 25 |
} |
| 26 |
|
| 27 |
// NewMockClient creates a new mock instance. |
| 28 |
func NewMockClient(ctrl *gomock.Controller) *MockClient { |
| 29 |
mock := &MockClient{ctrl: ctrl} |
| 30 |
mock.recorder = &MockClientMockRecorder{mock} |
| 31 |
return mock |
| 32 |
} |
| 33 |
|
| 34 |
// EXPECT returns an object that allows the caller to indicate expected use. |
| 35 |
func (m *MockClient) EXPECT() *MockClientMockRecorder { |
| 36 |
return m.recorder |
| 37 |
} |
| 38 |
|
| 39 |
// AccessTokenType mocks base method. |
| 40 |
func (m *MockClient) AccessTokenType() op.AccessTokenType { |
| 41 |
m.ctrl.T.Helper() |
| 42 |
ret := m.ctrl.Call(m, "AccessTokenType") |
| 43 |
ret0, _ := ret[0].(op.AccessTokenType) |
| 44 |
return ret0 |
| 45 |
} |
| 46 |
|
| 47 |
// AccessTokenType indicates an expected call of AccessTokenType. |
| 48 |
func (mr *MockClientMockRecorder) AccessTokenType() *gomock.Call { |
| 49 |
mr.mock.ctrl.T.Helper() |
| 50 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessTokenType", reflect.TypeOf((*MockClient)(nil).AccessTokenType)) |
| 51 |
} |
| 52 |
|
| 53 |
// ApplicationType mocks base method. |
| 54 |
func (m *MockClient) ApplicationType() op.ApplicationType { |
| 55 |
m.ctrl.T.Helper() |
| 56 |
ret := m.ctrl.Call(m, "ApplicationType") |
| 57 |
ret0, _ := ret[0].(op.ApplicationType) |
| 58 |
return ret0 |
| 59 |
} |
| 60 |
|
| 61 |
// ApplicationType indicates an expected call of ApplicationType. |
| 62 |
func (mr *MockClientMockRecorder) ApplicationType() *gomock.Call { |
| 63 |
mr.mock.ctrl.T.Helper() |
| 64 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationType", reflect.TypeOf((*MockClient)(nil).ApplicationType)) |
| 65 |
} |
| 66 |
|
| 67 |
// AuthMethod mocks base method. |
| 68 |
func (m *MockClient) AuthMethod() oidc.AuthMethod { |
| 69 |
m.ctrl.T.Helper() |
| 70 |
ret := m.ctrl.Call(m, "AuthMethod") |
| 71 |
ret0, _ := ret[0].(oidc.AuthMethod) |
| 72 |
return ret0 |
| 73 |
} |
| 74 |
|
| 75 |
// AuthMethod indicates an expected call of AuthMethod. |
| 76 |
func (mr *MockClientMockRecorder) AuthMethod() *gomock.Call { |
| 77 |
mr.mock.ctrl.T.Helper() |
| 78 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMethod", reflect.TypeOf((*MockClient)(nil).AuthMethod)) |
| 79 |
} |
| 80 |
|
| 81 |
// ClockSkew mocks base method. |
| 82 |
func (m *MockClient) ClockSkew() time.Duration { |
| 83 |
m.ctrl.T.Helper() |
| 84 |
ret := m.ctrl.Call(m, "ClockSkew") |
| 85 |
ret0, _ := ret[0].(time.Duration) |
| 86 |
return ret0 |
| 87 |
} |
| 88 |
|
| 89 |
// ClockSkew indicates an expected call of ClockSkew. |
| 90 |
func (mr *MockClientMockRecorder) ClockSkew() *gomock.Call { |
| 91 |
mr.mock.ctrl.T.Helper() |
| 92 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClockSkew", reflect.TypeOf((*MockClient)(nil).ClockSkew)) |
| 93 |
} |
| 94 |
|
| 95 |
// DevMode mocks base method. |
| 96 |
func (m *MockClient) DevMode() bool { |
| 97 |
m.ctrl.T.Helper() |
| 98 |
ret := m.ctrl.Call(m, "DevMode") |
| 99 |
ret0, _ := ret[0].(bool) |
| 100 |
return ret0 |
| 101 |
} |
| 102 |
|
| 103 |
// DevMode indicates an expected call of DevMode. |
| 104 |
func (mr *MockClientMockRecorder) DevMode() *gomock.Call { |
| 105 |
mr.mock.ctrl.T.Helper() |
| 106 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DevMode", reflect.TypeOf((*MockClient)(nil).DevMode)) |
| 107 |
} |
| 108 |
|
| 109 |
// GetID mocks base method. |
| 110 |
func (m *MockClient) GetID() string { |
| 111 |
m.ctrl.T.Helper() |
| 112 |
ret := m.ctrl.Call(m, "GetID") |
| 113 |
ret0, _ := ret[0].(string) |
| 114 |
return ret0 |
| 115 |
} |
| 116 |
|
| 117 |
// GetID indicates an expected call of GetID. |
| 118 |
func (mr *MockClientMockRecorder) GetID() *gomock.Call { |
| 119 |
mr.mock.ctrl.T.Helper() |
| 120 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetID", reflect.TypeOf((*MockClient)(nil).GetID)) |
| 121 |
} |
| 122 |
|
| 123 |
// GrantTypes mocks base method. |
| 124 |
func (m *MockClient) GrantTypes() []oidc.GrantType { |
| 125 |
m.ctrl.T.Helper() |
| 126 |
ret := m.ctrl.Call(m, "GrantTypes") |
| 127 |
ret0, _ := ret[0].([]oidc.GrantType) |
| 128 |
return ret0 |
| 129 |
} |
| 130 |
|
| 131 |
// GrantTypes indicates an expected call of GrantTypes. |
| 132 |
func (mr *MockClientMockRecorder) GrantTypes() *gomock.Call { |
| 133 |
mr.mock.ctrl.T.Helper() |
| 134 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrantTypes", reflect.TypeOf((*MockClient)(nil).GrantTypes)) |
| 135 |
} |
| 136 |
|
| 137 |
// IDTokenLifetime mocks base method. |
| 138 |
func (m *MockClient) IDTokenLifetime() time.Duration { |
| 139 |
m.ctrl.T.Helper() |
| 140 |
ret := m.ctrl.Call(m, "IDTokenLifetime") |
| 141 |
ret0, _ := ret[0].(time.Duration) |
| 142 |
return ret0 |
| 143 |
} |
| 144 |
|
| 145 |
// IDTokenLifetime indicates an expected call of IDTokenLifetime. |
| 146 |
func (mr *MockClientMockRecorder) IDTokenLifetime() *gomock.Call { |
| 147 |
mr.mock.ctrl.T.Helper() |
| 148 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IDTokenLifetime", reflect.TypeOf((*MockClient)(nil).IDTokenLifetime)) |
| 149 |
} |
| 150 |
|
| 151 |
// IDTokenUserinfoClaimsAssertion mocks base method. |
| 152 |
func (m *MockClient) IDTokenUserinfoClaimsAssertion() bool { |
| 153 |
m.ctrl.T.Helper() |
| 154 |
ret := m.ctrl.Call(m, "IDTokenUserinfoClaimsAssertion") |
| 155 |
ret0, _ := ret[0].(bool) |
| 156 |
return ret0 |
| 157 |
} |
| 158 |
|
| 159 |
// IDTokenUserinfoClaimsAssertion indicates an expected call of IDTokenUserinfoClaimsAssertion. |
| 160 |
func (mr *MockClientMockRecorder) IDTokenUserinfoClaimsAssertion() *gomock.Call { |
| 161 |
mr.mock.ctrl.T.Helper() |
| 162 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IDTokenUserinfoClaimsAssertion", reflect.TypeOf((*MockClient)(nil).IDTokenUserinfoClaimsAssertion)) |
| 163 |
} |
| 164 |
|
| 165 |
// IsScopeAllowed mocks base method. |
| 166 |
func (m *MockClient) IsScopeAllowed(arg0 string) bool { |
| 167 |
m.ctrl.T.Helper() |
| 168 |
ret := m.ctrl.Call(m, "IsScopeAllowed", arg0) |
| 169 |
ret0, _ := ret[0].(bool) |
| 170 |
return ret0 |
| 171 |
} |
| 172 |
|
| 173 |
// IsScopeAllowed indicates an expected call of IsScopeAllowed. |
| 174 |
func (mr *MockClientMockRecorder) IsScopeAllowed(arg0 interface{}) *gomock.Call { |
| 175 |
mr.mock.ctrl.T.Helper() |
| 176 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsScopeAllowed", reflect.TypeOf((*MockClient)(nil).IsScopeAllowed), arg0) |
| 177 |
} |
| 178 |
|
| 179 |
// LoginURL mocks base method. |
| 180 |
func (m *MockClient) LoginURL(arg0 string) string { |
| 181 |
m.ctrl.T.Helper() |
| 182 |
ret := m.ctrl.Call(m, "LoginURL", arg0) |
| 183 |
ret0, _ := ret[0].(string) |
| 184 |
return ret0 |
| 185 |
} |
| 186 |
|
| 187 |
// LoginURL indicates an expected call of LoginURL. |
| 188 |
func (mr *MockClientMockRecorder) LoginURL(arg0 interface{}) *gomock.Call { |
| 189 |
mr.mock.ctrl.T.Helper() |
| 190 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoginURL", reflect.TypeOf((*MockClient)(nil).LoginURL), arg0) |
| 191 |
} |
| 192 |
|
| 193 |
// PostLogoutRedirectURIs mocks base method. |
| 194 |
func (m *MockClient) PostLogoutRedirectURIs() []string { |
| 195 |
m.ctrl.T.Helper() |
| 196 |
ret := m.ctrl.Call(m, "PostLogoutRedirectURIs") |
| 197 |
ret0, _ := ret[0].([]string) |
| 198 |
return ret0 |
| 199 |
} |
| 200 |
|
| 201 |
// PostLogoutRedirectURIs indicates an expected call of PostLogoutRedirectURIs. |
| 202 |
func (mr *MockClientMockRecorder) PostLogoutRedirectURIs() *gomock.Call { |
| 203 |
mr.mock.ctrl.T.Helper() |
| 204 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostLogoutRedirectURIs", reflect.TypeOf((*MockClient)(nil).PostLogoutRedirectURIs)) |
| 205 |
} |
| 206 |
|
| 207 |
// RedirectURIs mocks base method. |
| 208 |
func (m *MockClient) RedirectURIs() []string { |
| 209 |
m.ctrl.T.Helper() |
| 210 |
ret := m.ctrl.Call(m, "RedirectURIs") |
| 211 |
ret0, _ := ret[0].([]string) |
| 212 |
return ret0 |
| 213 |
} |
| 214 |
|
| 215 |
// RedirectURIs indicates an expected call of RedirectURIs. |
| 216 |
func (mr *MockClientMockRecorder) RedirectURIs() *gomock.Call { |
| 217 |
mr.mock.ctrl.T.Helper() |
| 218 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RedirectURIs", reflect.TypeOf((*MockClient)(nil).RedirectURIs)) |
| 219 |
} |
| 220 |
|
| 221 |
// ResponseTypes mocks base method. |
| 222 |
func (m *MockClient) ResponseTypes() []oidc.ResponseType { |
| 223 |
m.ctrl.T.Helper() |
| 224 |
ret := m.ctrl.Call(m, "ResponseTypes") |
| 225 |
ret0, _ := ret[0].([]oidc.ResponseType) |
| 226 |
return ret0 |
| 227 |
} |
| 228 |
|
| 229 |
// ResponseTypes indicates an expected call of ResponseTypes. |
| 230 |
func (mr *MockClientMockRecorder) ResponseTypes() *gomock.Call { |
| 231 |
mr.mock.ctrl.T.Helper() |
| 232 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResponseTypes", reflect.TypeOf((*MockClient)(nil).ResponseTypes)) |
| 233 |
} |
| 234 |
|
| 235 |
// RestrictAdditionalAccessTokenScopes mocks base method. |
| 236 |
func (m *MockClient) RestrictAdditionalAccessTokenScopes() func([]string) []string { |
| 237 |
m.ctrl.T.Helper() |
| 238 |
ret := m.ctrl.Call(m, "RestrictAdditionalAccessTokenScopes") |
| 239 |
ret0, _ := ret[0].(func([]string) []string) |
| 240 |
return ret0 |
| 241 |
} |
| 242 |
|
| 243 |
// RestrictAdditionalAccessTokenScopes indicates an expected call of RestrictAdditionalAccessTokenScopes. |
| 244 |
func (mr *MockClientMockRecorder) RestrictAdditionalAccessTokenScopes() *gomock.Call { |
| 245 |
mr.mock.ctrl.T.Helper() |
| 246 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestrictAdditionalAccessTokenScopes", reflect.TypeOf((*MockClient)(nil).RestrictAdditionalAccessTokenScopes)) |
| 247 |
} |
| 248 |
|
| 249 |
// RestrictAdditionalIdTokenScopes mocks base method. |
| 250 |
func (m *MockClient) RestrictAdditionalIdTokenScopes() func([]string) []string { |
| 251 |
m.ctrl.T.Helper() |
| 252 |
ret := m.ctrl.Call(m, "RestrictAdditionalIdTokenScopes") |
| 253 |
ret0, _ := ret[0].(func([]string) []string) |
| 254 |
return ret0 |
| 255 |
} |
| 256 |
|
| 257 |
// RestrictAdditionalIdTokenScopes indicates an expected call of RestrictAdditionalIdTokenScopes. |
| 258 |
func (mr *MockClientMockRecorder) RestrictAdditionalIdTokenScopes() *gomock.Call { |
| 259 |
mr.mock.ctrl.T.Helper() |
| 260 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestrictAdditionalIdTokenScopes", reflect.TypeOf((*MockClient)(nil).RestrictAdditionalIdTokenScopes)) |
| 261 |
} |