forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authorize_request.go
219 lines (172 loc) · 6.48 KB
/
authorize_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory/fosite (interfaces: AuthorizeRequester)
package internal
import (
url "net/url"
time "time"
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory/fosite"
)
// Mock of AuthorizeRequester interface
type MockAuthorizeRequester struct {
ctrl *gomock.Controller
recorder *_MockAuthorizeRequesterRecorder
}
// Recorder for MockAuthorizeRequester (not exported)
type _MockAuthorizeRequesterRecorder struct {
mock *MockAuthorizeRequester
}
func NewMockAuthorizeRequester(ctrl *gomock.Controller) *MockAuthorizeRequester {
mock := &MockAuthorizeRequester{ctrl: ctrl}
mock.recorder = &_MockAuthorizeRequesterRecorder{mock}
return mock
}
func (_m *MockAuthorizeRequester) EXPECT() *_MockAuthorizeRequesterRecorder {
return _m.recorder
}
func (_m *MockAuthorizeRequester) AppendRequestedScope(_param0 string) {
_m.ctrl.Call(_m, "AppendRequestedScope", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AppendRequestedScope", arg0)
}
func (_m *MockAuthorizeRequester) DidHandleAllResponseTypes() bool {
ret := _m.ctrl.Call(_m, "DidHandleAllResponseTypes")
ret0, _ := ret[0].(bool)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) DidHandleAllResponseTypes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DidHandleAllResponseTypes")
}
func (_m *MockAuthorizeRequester) GetClient() fosite.Client {
ret := _m.ctrl.Call(_m, "GetClient")
ret0, _ := ret[0].(fosite.Client)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetClient() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetClient")
}
func (_m *MockAuthorizeRequester) GetGrantedScopes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetGrantedScopes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetGrantedScopes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetGrantedScopes")
}
func (_m *MockAuthorizeRequester) GetID() string {
ret := _m.ctrl.Call(_m, "GetID")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetID() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetID")
}
func (_m *MockAuthorizeRequester) GetRedirectURI() *url.URL {
ret := _m.ctrl.Call(_m, "GetRedirectURI")
ret0, _ := ret[0].(*url.URL)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetRedirectURI() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRedirectURI")
}
func (_m *MockAuthorizeRequester) GetRequestForm() url.Values {
ret := _m.ctrl.Call(_m, "GetRequestForm")
ret0, _ := ret[0].(url.Values)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetRequestForm() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestForm")
}
func (_m *MockAuthorizeRequester) GetRequestedAt() time.Time {
ret := _m.ctrl.Call(_m, "GetRequestedAt")
ret0, _ := ret[0].(time.Time)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetRequestedAt() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestedAt")
}
func (_m *MockAuthorizeRequester) GetRequestedScopes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetRequestedScopes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetRequestedScopes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestedScopes")
}
func (_m *MockAuthorizeRequester) GetResponseTypes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetResponseTypes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetResponseTypes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetResponseTypes")
}
func (_m *MockAuthorizeRequester) GetSession() fosite.Session {
ret := _m.ctrl.Call(_m, "GetSession")
ret0, _ := ret[0].(fosite.Session)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetSession() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetSession")
}
func (_m *MockAuthorizeRequester) GetState() string {
ret := _m.ctrl.Call(_m, "GetState")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) GetState() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetState")
}
func (_m *MockAuthorizeRequester) GrantScope(_param0 string) {
_m.ctrl.Call(_m, "GrantScope", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) GrantScope(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GrantScope", arg0)
}
func (_m *MockAuthorizeRequester) IsRedirectURIValid() bool {
ret := _m.ctrl.Call(_m, "IsRedirectURIValid")
ret0, _ := ret[0].(bool)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) IsRedirectURIValid() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "IsRedirectURIValid")
}
func (_m *MockAuthorizeRequester) Merge(_param0 fosite.Requester) {
_m.ctrl.Call(_m, "Merge", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) Merge(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Merge", arg0)
}
func (_m *MockAuthorizeRequester) Sanitize(_param0 []string) fosite.Requester {
ret := _m.ctrl.Call(_m, "Sanitize", _param0)
ret0, _ := ret[0].(fosite.Requester)
return ret0
}
func (_mr *_MockAuthorizeRequesterRecorder) Sanitize(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Sanitize", arg0)
}
func (_m *MockAuthorizeRequester) SetID(_param0 string) {
_m.ctrl.Call(_m, "SetID", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) SetID(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetID", arg0)
}
func (_m *MockAuthorizeRequester) SetRequestedScopes(_param0 fosite.Arguments) {
_m.ctrl.Call(_m, "SetRequestedScopes", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetRequestedScopes", arg0)
}
func (_m *MockAuthorizeRequester) SetResponseTypeHandled(_param0 string) {
_m.ctrl.Call(_m, "SetResponseTypeHandled", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) SetResponseTypeHandled(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetResponseTypeHandled", arg0)
}
func (_m *MockAuthorizeRequester) SetSession(_param0 fosite.Session) {
_m.ctrl.Call(_m, "SetSession", _param0)
}
func (_mr *_MockAuthorizeRequesterRecorder) SetSession(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetSession", arg0)
}