| 1 |
// Code generated by MockGen. DO NOT EDIT. |
| 2 |
// Source: github.com/zitadel/oidc/v3/pkg/op (interfaces: Storage) |
| 3 |
|
| 4 |
// Package mock is a generated GoMock package. |
| 5 |
package mock |
| 6 |
|
| 7 |
import ( |
| 8 |
context "context" |
| 9 |
reflect "reflect" |
| 10 |
time "time" |
| 11 |
|
| 12 |
jose "github.com/go-jose/go-jose/v4" |
| 13 |
gomock "github.com/golang/mock/gomock" |
| 14 |
oidc "github.com/zitadel/oidc/v3/pkg/oidc" |
| 15 |
op "github.com/zitadel/oidc/v3/pkg/op" |
| 16 |
) |
| 17 |
|
| 18 |
// MockStorage is a mock of Storage interface. |
| 19 |
type MockStorage struct { |
| 20 |
ctrl *gomock.Controller |
| 21 |
recorder *MockStorageMockRecorder |
| 22 |
} |
| 23 |
|
| 24 |
// MockStorageMockRecorder is the mock recorder for MockStorage. |
| 25 |
type MockStorageMockRecorder struct { |
| 26 |
mock *MockStorage |
| 27 |
} |
| 28 |
|
| 29 |
// NewMockStorage creates a new mock instance. |
| 30 |
func NewMockStorage(ctrl *gomock.Controller) *MockStorage { |
| 31 |
mock := &MockStorage{ctrl: ctrl} |
| 32 |
mock.recorder = &MockStorageMockRecorder{mock} |
| 33 |
return mock |
| 34 |
} |
| 35 |
|
| 36 |
// EXPECT returns an object that allows the caller to indicate expected use. |
| 37 |
func (m *MockStorage) EXPECT() *MockStorageMockRecorder { |
| 38 |
return m.recorder |
| 39 |
} |
| 40 |
|
| 41 |
// AuthRequestByCode mocks base method. |
| 42 |
func (m *MockStorage) AuthRequestByCode(arg0 context.Context, arg1 string) (op.AuthRequest, error) { |
| 43 |
m.ctrl.T.Helper() |
| 44 |
ret := m.ctrl.Call(m, "AuthRequestByCode", arg0, arg1) |
| 45 |
ret0, _ := ret[0].(op.AuthRequest) |
| 46 |
ret1, _ := ret[1].(error) |
| 47 |
return ret0, ret1 |
| 48 |
} |
| 49 |
|
| 50 |
// AuthRequestByCode indicates an expected call of AuthRequestByCode. |
| 51 |
func (mr *MockStorageMockRecorder) AuthRequestByCode(arg0, arg1 interface{}) *gomock.Call { |
| 52 |
mr.mock.ctrl.T.Helper() |
| 53 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthRequestByCode", reflect.TypeOf((*MockStorage)(nil).AuthRequestByCode), arg0, arg1) |
| 54 |
} |
| 55 |
|
| 56 |
// AuthRequestByID mocks base method. |
| 57 |
func (m *MockStorage) AuthRequestByID(arg0 context.Context, arg1 string) (op.AuthRequest, error) { |
| 58 |
m.ctrl.T.Helper() |
| 59 |
ret := m.ctrl.Call(m, "AuthRequestByID", arg0, arg1) |
| 60 |
ret0, _ := ret[0].(op.AuthRequest) |
| 61 |
ret1, _ := ret[1].(error) |
| 62 |
return ret0, ret1 |
| 63 |
} |
| 64 |
|
| 65 |
// AuthRequestByID indicates an expected call of AuthRequestByID. |
| 66 |
func (mr *MockStorageMockRecorder) AuthRequestByID(arg0, arg1 interface{}) *gomock.Call { |
| 67 |
mr.mock.ctrl.T.Helper() |
| 68 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthRequestByID", reflect.TypeOf((*MockStorage)(nil).AuthRequestByID), arg0, arg1) |
| 69 |
} |
| 70 |
|
| 71 |
// AuthorizeClientIDSecret mocks base method. |
| 72 |
func (m *MockStorage) AuthorizeClientIDSecret(arg0 context.Context, arg1, arg2 string) error { |
| 73 |
m.ctrl.T.Helper() |
| 74 |
ret := m.ctrl.Call(m, "AuthorizeClientIDSecret", arg0, arg1, arg2) |
| 75 |
ret0, _ := ret[0].(error) |
| 76 |
return ret0 |
| 77 |
} |
| 78 |
|
| 79 |
// AuthorizeClientIDSecret indicates an expected call of AuthorizeClientIDSecret. |
| 80 |
func (mr *MockStorageMockRecorder) AuthorizeClientIDSecret(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 81 |
mr.mock.ctrl.T.Helper() |
| 82 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeClientIDSecret", reflect.TypeOf((*MockStorage)(nil).AuthorizeClientIDSecret), arg0, arg1, arg2) |
| 83 |
} |
| 84 |
|
| 85 |
// CreateAccessAndRefreshTokens mocks base method. |
| 86 |
func (m *MockStorage) CreateAccessAndRefreshTokens(arg0 context.Context, arg1 op.TokenRequest, arg2 string) (string, string, time.Time, error) { |
| 87 |
m.ctrl.T.Helper() |
| 88 |
ret := m.ctrl.Call(m, "CreateAccessAndRefreshTokens", arg0, arg1, arg2) |
| 89 |
ret0, _ := ret[0].(string) |
| 90 |
ret1, _ := ret[1].(string) |
| 91 |
ret2, _ := ret[2].(time.Time) |
| 92 |
ret3, _ := ret[3].(error) |
| 93 |
return ret0, ret1, ret2, ret3 |
| 94 |
} |
| 95 |
|
| 96 |
// CreateAccessAndRefreshTokens indicates an expected call of CreateAccessAndRefreshTokens. |
| 97 |
func (mr *MockStorageMockRecorder) CreateAccessAndRefreshTokens(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 98 |
mr.mock.ctrl.T.Helper() |
| 99 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessAndRefreshTokens", reflect.TypeOf((*MockStorage)(nil).CreateAccessAndRefreshTokens), arg0, arg1, arg2) |
| 100 |
} |
| 101 |
|
| 102 |
// CreateAccessToken mocks base method. |
| 103 |
func (m *MockStorage) CreateAccessToken(arg0 context.Context, arg1 op.TokenRequest) (string, time.Time, error) { |
| 104 |
m.ctrl.T.Helper() |
| 105 |
ret := m.ctrl.Call(m, "CreateAccessToken", arg0, arg1) |
| 106 |
ret0, _ := ret[0].(string) |
| 107 |
ret1, _ := ret[1].(time.Time) |
| 108 |
ret2, _ := ret[2].(error) |
| 109 |
return ret0, ret1, ret2 |
| 110 |
} |
| 111 |
|
| 112 |
// CreateAccessToken indicates an expected call of CreateAccessToken. |
| 113 |
func (mr *MockStorageMockRecorder) CreateAccessToken(arg0, arg1 interface{}) *gomock.Call { |
| 114 |
mr.mock.ctrl.T.Helper() |
| 115 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessToken", reflect.TypeOf((*MockStorage)(nil).CreateAccessToken), arg0, arg1) |
| 116 |
} |
| 117 |
|
| 118 |
// CreateAuthRequest mocks base method. |
| 119 |
func (m *MockStorage) CreateAuthRequest(arg0 context.Context, arg1 *oidc.AuthRequest, arg2 string) (op.AuthRequest, error) { |
| 120 |
m.ctrl.T.Helper() |
| 121 |
ret := m.ctrl.Call(m, "CreateAuthRequest", arg0, arg1, arg2) |
| 122 |
ret0, _ := ret[0].(op.AuthRequest) |
| 123 |
ret1, _ := ret[1].(error) |
| 124 |
return ret0, ret1 |
| 125 |
} |
| 126 |
|
| 127 |
// CreateAuthRequest indicates an expected call of CreateAuthRequest. |
| 128 |
func (mr *MockStorageMockRecorder) CreateAuthRequest(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 129 |
mr.mock.ctrl.T.Helper() |
| 130 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuthRequest", reflect.TypeOf((*MockStorage)(nil).CreateAuthRequest), arg0, arg1, arg2) |
| 131 |
} |
| 132 |
|
| 133 |
// DeleteAuthRequest mocks base method. |
| 134 |
func (m *MockStorage) DeleteAuthRequest(arg0 context.Context, arg1 string) error { |
| 135 |
m.ctrl.T.Helper() |
| 136 |
ret := m.ctrl.Call(m, "DeleteAuthRequest", arg0, arg1) |
| 137 |
ret0, _ := ret[0].(error) |
| 138 |
return ret0 |
| 139 |
} |
| 140 |
|
| 141 |
// DeleteAuthRequest indicates an expected call of DeleteAuthRequest. |
| 142 |
func (mr *MockStorageMockRecorder) DeleteAuthRequest(arg0, arg1 interface{}) *gomock.Call { |
| 143 |
mr.mock.ctrl.T.Helper() |
| 144 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAuthRequest", reflect.TypeOf((*MockStorage)(nil).DeleteAuthRequest), arg0, arg1) |
| 145 |
} |
| 146 |
|
| 147 |
// GetClientByClientID mocks base method. |
| 148 |
func (m *MockStorage) GetClientByClientID(arg0 context.Context, arg1 string) (op.Client, error) { |
| 149 |
m.ctrl.T.Helper() |
| 150 |
ret := m.ctrl.Call(m, "GetClientByClientID", arg0, arg1) |
| 151 |
ret0, _ := ret[0].(op.Client) |
| 152 |
ret1, _ := ret[1].(error) |
| 153 |
return ret0, ret1 |
| 154 |
} |
| 155 |
|
| 156 |
// GetClientByClientID indicates an expected call of GetClientByClientID. |
| 157 |
func (mr *MockStorageMockRecorder) GetClientByClientID(arg0, arg1 interface{}) *gomock.Call { |
| 158 |
mr.mock.ctrl.T.Helper() |
| 159 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientByClientID", reflect.TypeOf((*MockStorage)(nil).GetClientByClientID), arg0, arg1) |
| 160 |
} |
| 161 |
|
| 162 |
// GetKeyByIDAndClientID mocks base method. |
| 163 |
func (m *MockStorage) GetKeyByIDAndClientID(arg0 context.Context, arg1, arg2 string) (*jose.JSONWebKey, error) { |
| 164 |
m.ctrl.T.Helper() |
| 165 |
ret := m.ctrl.Call(m, "GetKeyByIDAndClientID", arg0, arg1, arg2) |
| 166 |
ret0, _ := ret[0].(*jose.JSONWebKey) |
| 167 |
ret1, _ := ret[1].(error) |
| 168 |
return ret0, ret1 |
| 169 |
} |
| 170 |
|
| 171 |
// GetKeyByIDAndClientID indicates an expected call of GetKeyByIDAndClientID. |
| 172 |
func (mr *MockStorageMockRecorder) GetKeyByIDAndClientID(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 173 |
mr.mock.ctrl.T.Helper() |
| 174 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyByIDAndClientID", reflect.TypeOf((*MockStorage)(nil).GetKeyByIDAndClientID), arg0, arg1, arg2) |
| 175 |
} |
| 176 |
|
| 177 |
// GetPrivateClaimsFromScopes mocks base method. |
| 178 |
func (m *MockStorage) GetPrivateClaimsFromScopes(arg0 context.Context, arg1, arg2 string, arg3 []string) (map[string]interface{}, error) { |
| 179 |
m.ctrl.T.Helper() |
| 180 |
ret := m.ctrl.Call(m, "GetPrivateClaimsFromScopes", arg0, arg1, arg2, arg3) |
| 181 |
ret0, _ := ret[0].(map[string]interface{}) |
| 182 |
ret1, _ := ret[1].(error) |
| 183 |
return ret0, ret1 |
| 184 |
} |
| 185 |
|
| 186 |
// GetPrivateClaimsFromScopes indicates an expected call of GetPrivateClaimsFromScopes. |
| 187 |
func (mr *MockStorageMockRecorder) GetPrivateClaimsFromScopes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 188 |
mr.mock.ctrl.T.Helper() |
| 189 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrivateClaimsFromScopes", reflect.TypeOf((*MockStorage)(nil).GetPrivateClaimsFromScopes), arg0, arg1, arg2, arg3) |
| 190 |
} |
| 191 |
|
| 192 |
// GetRefreshTokenInfo mocks base method. |
| 193 |
func (m *MockStorage) GetRefreshTokenInfo(arg0 context.Context, arg1, arg2 string) (string, string, error) { |
| 194 |
m.ctrl.T.Helper() |
| 195 |
ret := m.ctrl.Call(m, "GetRefreshTokenInfo", arg0, arg1, arg2) |
| 196 |
ret0, _ := ret[0].(string) |
| 197 |
ret1, _ := ret[1].(string) |
| 198 |
ret2, _ := ret[2].(error) |
| 199 |
return ret0, ret1, ret2 |
| 200 |
} |
| 201 |
|
| 202 |
// GetRefreshTokenInfo indicates an expected call of GetRefreshTokenInfo. |
| 203 |
func (mr *MockStorageMockRecorder) GetRefreshTokenInfo(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 204 |
mr.mock.ctrl.T.Helper() |
| 205 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenInfo", reflect.TypeOf((*MockStorage)(nil).GetRefreshTokenInfo), arg0, arg1, arg2) |
| 206 |
} |
| 207 |
|
| 208 |
// Health mocks base method. |
| 209 |
func (m *MockStorage) Health(arg0 context.Context) error { |
| 210 |
m.ctrl.T.Helper() |
| 211 |
ret := m.ctrl.Call(m, "Health", arg0) |
| 212 |
ret0, _ := ret[0].(error) |
| 213 |
return ret0 |
| 214 |
} |
| 215 |
|
| 216 |
// Health indicates an expected call of Health. |
| 217 |
func (mr *MockStorageMockRecorder) Health(arg0 interface{}) *gomock.Call { |
| 218 |
mr.mock.ctrl.T.Helper() |
| 219 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockStorage)(nil).Health), arg0) |
| 220 |
} |
| 221 |
|
| 222 |
// KeySet mocks base method. |
| 223 |
func (m *MockStorage) KeySet(arg0 context.Context) ([]op.Key, error) { |
| 224 |
m.ctrl.T.Helper() |
| 225 |
ret := m.ctrl.Call(m, "KeySet", arg0) |
| 226 |
ret0, _ := ret[0].([]op.Key) |
| 227 |
ret1, _ := ret[1].(error) |
| 228 |
return ret0, ret1 |
| 229 |
} |
| 230 |
|
| 231 |
// KeySet indicates an expected call of KeySet. |
| 232 |
func (mr *MockStorageMockRecorder) KeySet(arg0 interface{}) *gomock.Call { |
| 233 |
mr.mock.ctrl.T.Helper() |
| 234 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeySet", reflect.TypeOf((*MockStorage)(nil).KeySet), arg0) |
| 235 |
} |
| 236 |
|
| 237 |
// RevokeToken mocks base method. |
| 238 |
func (m *MockStorage) RevokeToken(arg0 context.Context, arg1, arg2, arg3 string) *oidc.Error { |
| 239 |
m.ctrl.T.Helper() |
| 240 |
ret := m.ctrl.Call(m, "RevokeToken", arg0, arg1, arg2, arg3) |
| 241 |
ret0, _ := ret[0].(*oidc.Error) |
| 242 |
return ret0 |
| 243 |
} |
| 244 |
|
| 245 |
// RevokeToken indicates an expected call of RevokeToken. |
| 246 |
func (mr *MockStorageMockRecorder) RevokeToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 247 |
mr.mock.ctrl.T.Helper() |
| 248 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockStorage)(nil).RevokeToken), arg0, arg1, arg2, arg3) |
| 249 |
} |
| 250 |
|
| 251 |
// SaveAuthCode mocks base method. |
| 252 |
func (m *MockStorage) SaveAuthCode(arg0 context.Context, arg1, arg2 string) error { |
| 253 |
m.ctrl.T.Helper() |
| 254 |
ret := m.ctrl.Call(m, "SaveAuthCode", arg0, arg1, arg2) |
| 255 |
ret0, _ := ret[0].(error) |
| 256 |
return ret0 |
| 257 |
} |
| 258 |
|
| 259 |
// SaveAuthCode indicates an expected call of SaveAuthCode. |
| 260 |
func (mr *MockStorageMockRecorder) SaveAuthCode(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 261 |
mr.mock.ctrl.T.Helper() |
| 262 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveAuthCode", reflect.TypeOf((*MockStorage)(nil).SaveAuthCode), arg0, arg1, arg2) |
| 263 |
} |
| 264 |
|
| 265 |
// SetIntrospectionFromToken mocks base method. |
| 266 |
func (m *MockStorage) SetIntrospectionFromToken(arg0 context.Context, arg1 *oidc.IntrospectionResponse, arg2, arg3, arg4 string) error { |
| 267 |
m.ctrl.T.Helper() |
| 268 |
ret := m.ctrl.Call(m, "SetIntrospectionFromToken", arg0, arg1, arg2, arg3, arg4) |
| 269 |
ret0, _ := ret[0].(error) |
| 270 |
return ret0 |
| 271 |
} |
| 272 |
|
| 273 |
// SetIntrospectionFromToken indicates an expected call of SetIntrospectionFromToken. |
| 274 |
func (mr *MockStorageMockRecorder) SetIntrospectionFromToken(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { |
| 275 |
mr.mock.ctrl.T.Helper() |
| 276 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIntrospectionFromToken", reflect.TypeOf((*MockStorage)(nil).SetIntrospectionFromToken), arg0, arg1, arg2, arg3, arg4) |
| 277 |
} |
| 278 |
|
| 279 |
// SetUserinfoFromScopes mocks base method. |
| 280 |
func (m *MockStorage) SetUserinfoFromScopes(arg0 context.Context, arg1 *oidc.UserInfo, arg2, arg3 string, arg4 []string) error { |
| 281 |
m.ctrl.T.Helper() |
| 282 |
ret := m.ctrl.Call(m, "SetUserinfoFromScopes", arg0, arg1, arg2, arg3, arg4) |
| 283 |
ret0, _ := ret[0].(error) |
| 284 |
return ret0 |
| 285 |
} |
| 286 |
|
| 287 |
// SetUserinfoFromScopes indicates an expected call of SetUserinfoFromScopes. |
| 288 |
func (mr *MockStorageMockRecorder) SetUserinfoFromScopes(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { |
| 289 |
mr.mock.ctrl.T.Helper() |
| 290 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserinfoFromScopes", reflect.TypeOf((*MockStorage)(nil).SetUserinfoFromScopes), arg0, arg1, arg2, arg3, arg4) |
| 291 |
} |
| 292 |
|
| 293 |
// SetUserinfoFromToken mocks base method. |
| 294 |
func (m *MockStorage) SetUserinfoFromToken(arg0 context.Context, arg1 *oidc.UserInfo, arg2, arg3, arg4 string) error { |
| 295 |
m.ctrl.T.Helper() |
| 296 |
ret := m.ctrl.Call(m, "SetUserinfoFromToken", arg0, arg1, arg2, arg3, arg4) |
| 297 |
ret0, _ := ret[0].(error) |
| 298 |
return ret0 |
| 299 |
} |
| 300 |
|
| 301 |
// SetUserinfoFromToken indicates an expected call of SetUserinfoFromToken. |
| 302 |
func (mr *MockStorageMockRecorder) SetUserinfoFromToken(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { |
| 303 |
mr.mock.ctrl.T.Helper() |
| 304 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserinfoFromToken", reflect.TypeOf((*MockStorage)(nil).SetUserinfoFromToken), arg0, arg1, arg2, arg3, arg4) |
| 305 |
} |
| 306 |
|
| 307 |
// SignatureAlgorithms mocks base method. |
| 308 |
func (m *MockStorage) SignatureAlgorithms(arg0 context.Context) ([]jose.SignatureAlgorithm, error) { |
| 309 |
m.ctrl.T.Helper() |
| 310 |
ret := m.ctrl.Call(m, "SignatureAlgorithms", arg0) |
| 311 |
ret0, _ := ret[0].([]jose.SignatureAlgorithm) |
| 312 |
ret1, _ := ret[1].(error) |
| 313 |
return ret0, ret1 |
| 314 |
} |
| 315 |
|
| 316 |
// SignatureAlgorithms indicates an expected call of SignatureAlgorithms. |
| 317 |
func (mr *MockStorageMockRecorder) SignatureAlgorithms(arg0 interface{}) *gomock.Call { |
| 318 |
mr.mock.ctrl.T.Helper() |
| 319 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignatureAlgorithms", reflect.TypeOf((*MockStorage)(nil).SignatureAlgorithms), arg0) |
| 320 |
} |
| 321 |
|
| 322 |
// SigningKey mocks base method. |
| 323 |
func (m *MockStorage) SigningKey(arg0 context.Context) (op.SigningKey, error) { |
| 324 |
m.ctrl.T.Helper() |
| 325 |
ret := m.ctrl.Call(m, "SigningKey", arg0) |
| 326 |
ret0, _ := ret[0].(op.SigningKey) |
| 327 |
ret1, _ := ret[1].(error) |
| 328 |
return ret0, ret1 |
| 329 |
} |
| 330 |
|
| 331 |
// SigningKey indicates an expected call of SigningKey. |
| 332 |
func (mr *MockStorageMockRecorder) SigningKey(arg0 interface{}) *gomock.Call { |
| 333 |
mr.mock.ctrl.T.Helper() |
| 334 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningKey", reflect.TypeOf((*MockStorage)(nil).SigningKey), arg0) |
| 335 |
} |
| 336 |
|
| 337 |
// TerminateSession mocks base method. |
| 338 |
func (m *MockStorage) TerminateSession(arg0 context.Context, arg1, arg2 string) error { |
| 339 |
m.ctrl.T.Helper() |
| 340 |
ret := m.ctrl.Call(m, "TerminateSession", arg0, arg1, arg2) |
| 341 |
ret0, _ := ret[0].(error) |
| 342 |
return ret0 |
| 343 |
} |
| 344 |
|
| 345 |
// TerminateSession indicates an expected call of TerminateSession. |
| 346 |
func (mr *MockStorageMockRecorder) TerminateSession(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 347 |
mr.mock.ctrl.T.Helper() |
| 348 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateSession", reflect.TypeOf((*MockStorage)(nil).TerminateSession), arg0, arg1, arg2) |
| 349 |
} |
| 350 |
|
| 351 |
// TokenRequestByRefreshToken mocks base method. |
| 352 |
func (m *MockStorage) TokenRequestByRefreshToken(arg0 context.Context, arg1 string) (op.RefreshTokenRequest, error) { |
| 353 |
m.ctrl.T.Helper() |
| 354 |
ret := m.ctrl.Call(m, "TokenRequestByRefreshToken", arg0, arg1) |
| 355 |
ret0, _ := ret[0].(op.RefreshTokenRequest) |
| 356 |
ret1, _ := ret[1].(error) |
| 357 |
return ret0, ret1 |
| 358 |
} |
| 359 |
|
| 360 |
// TokenRequestByRefreshToken indicates an expected call of TokenRequestByRefreshToken. |
| 361 |
func (mr *MockStorageMockRecorder) TokenRequestByRefreshToken(arg0, arg1 interface{}) *gomock.Call { |
| 362 |
mr.mock.ctrl.T.Helper() |
| 363 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenRequestByRefreshToken", reflect.TypeOf((*MockStorage)(nil).TokenRequestByRefreshToken), arg0, arg1) |
| 364 |
} |
| 365 |
|
| 366 |
// ValidateJWTProfileScopes mocks base method. |
| 367 |
func (m *MockStorage) ValidateJWTProfileScopes(arg0 context.Context, arg1 string, arg2 []string) ([]string, error) { |
| 368 |
m.ctrl.T.Helper() |
| 369 |
ret := m.ctrl.Call(m, "ValidateJWTProfileScopes", arg0, arg1, arg2) |
| 370 |
ret0, _ := ret[0].([]string) |
| 371 |
ret1, _ := ret[1].(error) |
| 372 |
return ret0, ret1 |
| 373 |
} |
| 374 |
|
| 375 |
// ValidateJWTProfileScopes indicates an expected call of ValidateJWTProfileScopes. |
| 376 |
func (mr *MockStorageMockRecorder) ValidateJWTProfileScopes(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 377 |
mr.mock.ctrl.T.Helper() |
| 378 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateJWTProfileScopes", reflect.TypeOf((*MockStorage)(nil).ValidateJWTProfileScopes), arg0, arg1, arg2) |
| 379 |
} |