forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
access_request.go
152 lines (120 loc) · 4.34 KB
/
access_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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory-am/fosite (interfaces: AccessRequester)
package internal
import (
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory-am/fosite"
url "net/url"
time "time"
)
// Mock of AccessRequester interface
type MockAccessRequester struct {
ctrl *gomock.Controller
recorder *_MockAccessRequesterRecorder
}
// Recorder for MockAccessRequester (not exported)
type _MockAccessRequesterRecorder struct {
mock *MockAccessRequester
}
func NewMockAccessRequester(ctrl *gomock.Controller) *MockAccessRequester {
mock := &MockAccessRequester{ctrl: ctrl}
mock.recorder = &_MockAccessRequesterRecorder{mock}
return mock
}
func (_m *MockAccessRequester) EXPECT() *_MockAccessRequesterRecorder {
return _m.recorder
}
func (_m *MockAccessRequester) AppendRequestedScope(_param0 string) {
_m.ctrl.Call(_m, "AppendRequestedScope", _param0)
}
func (_mr *_MockAccessRequesterRecorder) AppendRequestedScope(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AppendRequestedScope", arg0)
}
func (_m *MockAccessRequester) GetClient() fosite.Client {
ret := _m.ctrl.Call(_m, "GetClient")
ret0, _ := ret[0].(fosite.Client)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetClient() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetClient")
}
func (_m *MockAccessRequester) GetGrantTypes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetGrantTypes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetGrantTypes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetGrantTypes")
}
func (_m *MockAccessRequester) GetGrantedScopes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetGrantedScopes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetGrantedScopes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetGrantedScopes")
}
func (_m *MockAccessRequester) GetID() string {
ret := _m.ctrl.Call(_m, "GetID")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetID() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetID")
}
func (_m *MockAccessRequester) GetRequestForm() url.Values {
ret := _m.ctrl.Call(_m, "GetRequestForm")
ret0, _ := ret[0].(url.Values)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetRequestForm() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestForm")
}
func (_m *MockAccessRequester) GetRequestedAt() time.Time {
ret := _m.ctrl.Call(_m, "GetRequestedAt")
ret0, _ := ret[0].(time.Time)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetRequestedAt() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestedAt")
}
func (_m *MockAccessRequester) GetRequestedScopes() fosite.Arguments {
ret := _m.ctrl.Call(_m, "GetRequestedScopes")
ret0, _ := ret[0].(fosite.Arguments)
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetRequestedScopes() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRequestedScopes")
}
func (_m *MockAccessRequester) GetSession() interface{} {
ret := _m.ctrl.Call(_m, "GetSession")
ret0, _ := ret[0].(interface{})
return ret0
}
func (_mr *_MockAccessRequesterRecorder) GetSession() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetSession")
}
func (_m *MockAccessRequester) GrantScope(_param0 string) {
_m.ctrl.Call(_m, "GrantScope", _param0)
}
func (_mr *_MockAccessRequesterRecorder) GrantScope(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GrantScope", arg0)
}
func (_m *MockAccessRequester) Merge(_param0 fosite.Requester) {
_m.ctrl.Call(_m, "Merge", _param0)
}
func (_mr *_MockAccessRequesterRecorder) Merge(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Merge", arg0)
}
func (_m *MockAccessRequester) SetRequestedScopes(_param0 fosite.Arguments) {
_m.ctrl.Call(_m, "SetRequestedScopes", _param0)
}
func (_mr *_MockAccessRequesterRecorder) SetRequestedScopes(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetRequestedScopes", arg0)
}
func (_m *MockAccessRequester) SetSession(_param0 interface{}) {
_m.ctrl.Call(_m, "SetSession", _param0)
}
func (_mr *_MockAccessRequesterRecorder) SetSession(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetSession", arg0)
}