1
2
3
4
5 package internal
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 gomock "github.com/golang/mock/gomock"
12
13 fosite "github.com/ory/fosite"
14 )
15
16
17 type MockResourceOwnerPasswordCredentialsGrantStorage struct {
18 ctrl *gomock.Controller
19 recorder *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
20 }
21
22
23 type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder struct {
24 mock *MockResourceOwnerPasswordCredentialsGrantStorage
25 }
26
27
28 func NewMockResourceOwnerPasswordCredentialsGrantStorage(ctrl *gomock.Controller) *MockResourceOwnerPasswordCredentialsGrantStorage {
29 mock := &MockResourceOwnerPasswordCredentialsGrantStorage{ctrl: ctrl}
30 mock.recorder = &MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder{mock}
31 return mock
32 }
33
34
35 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder {
36 return m.recorder
37 }
38
39
40 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(arg0 context.Context, arg1, arg2 string) error {
41 m.ctrl.T.Helper()
42 ret := m.ctrl.Call(m, "Authenticate", arg0, arg1, arg2)
43 ret0, _ := ret[0].(error)
44 return ret0
45 }
46
47
48 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(arg0, arg1, arg2 interface{}) *gomock.Call {
49 mr.mock.ctrl.T.Helper()
50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).Authenticate), arg0, arg1, arg2)
51 }
52
53
54 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
55 m.ctrl.T.Helper()
56 ret := m.ctrl.Call(m, "CreateAccessTokenSession", arg0, arg1, arg2)
57 ret0, _ := ret[0].(error)
58 return ret0
59 }
60
61
62 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
63 mr.mock.ctrl.T.Helper()
64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2)
65 }
66
67
68 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
69 m.ctrl.T.Helper()
70 ret := m.ctrl.Call(m, "CreateRefreshTokenSession", arg0, arg1, arg2)
71 ret0, _ := ret[0].(error)
72 return ret0
73 }
74
75
76 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
77 mr.mock.ctrl.T.Helper()
78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2)
79 }
80
81
82 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error {
83 m.ctrl.T.Helper()
84 ret := m.ctrl.Call(m, "DeleteAccessTokenSession", arg0, arg1)
85 ret0, _ := ret[0].(error)
86 return ret0
87 }
88
89
90 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
91 mr.mock.ctrl.T.Helper()
92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteAccessTokenSession), arg0, arg1)
93 }
94
95
96 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error {
97 m.ctrl.T.Helper()
98 ret := m.ctrl.Call(m, "DeleteRefreshTokenSession", arg0, arg1)
99 ret0, _ := ret[0].(error)
100 return ret0
101 }
102
103
104 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call {
105 mr.mock.ctrl.T.Helper()
106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteRefreshTokenSession), arg0, arg1)
107 }
108
109
110 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error) {
111 m.ctrl.T.Helper()
112 ret := m.ctrl.Call(m, "GetAccessTokenSession", arg0, arg1, arg2)
113 ret0, _ := ret[0].(fosite.Requester)
114 ret1, _ := ret[1].(error)
115 return ret0, ret1
116 }
117
118
119 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
120 mr.mock.ctrl.T.Helper()
121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2)
122 }
123
124
125 func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error) {
126 m.ctrl.T.Helper()
127 ret := m.ctrl.Call(m, "GetRefreshTokenSession", arg0, arg1, arg2)
128 ret0, _ := ret[0].(fosite.Requester)
129 ret1, _ := ret[1].(error)
130 return ret0, ret1
131 }
132
133
134 func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
135 mr.mock.ctrl.T.Helper()
136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2)
137 }
138
View as plain text