forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_strategy.go
127 lines (103 loc) · 4.48 KB
/
core_strategy.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory-am/fosite/handler/core (interfaces: CoreStrategy)
package internal
import (
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory-am/fosite"
context "golang.org/x/net/context"
)
// Mock of CoreStrategy interface
type MockCoreStrategy struct {
ctrl *gomock.Controller
recorder *_MockCoreStrategyRecorder
}
// Recorder for MockCoreStrategy (not exported)
type _MockCoreStrategyRecorder struct {
mock *MockCoreStrategy
}
func NewMockCoreStrategy(ctrl *gomock.Controller) *MockCoreStrategy {
mock := &MockCoreStrategy{ctrl: ctrl}
mock.recorder = &_MockCoreStrategyRecorder{mock}
return mock
}
func (_m *MockCoreStrategy) EXPECT() *_MockCoreStrategyRecorder {
return _m.recorder
}
func (_m *MockCoreStrategy) AccessTokenSignature(_param0 string) string {
ret := _m.ctrl.Call(_m, "AccessTokenSignature", _param0)
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) AccessTokenSignature(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AccessTokenSignature", arg0)
}
func (_m *MockCoreStrategy) AuthorizeCodeSignature(_param0 string) string {
ret := _m.ctrl.Call(_m, "AuthorizeCodeSignature", _param0)
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) AuthorizeCodeSignature(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AuthorizeCodeSignature", arg0)
}
func (_m *MockCoreStrategy) GenerateAccessToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error) {
ret := _m.ctrl.Call(_m, "GenerateAccessToken", _param0, _param1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockCoreStrategyRecorder) GenerateAccessToken(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GenerateAccessToken", arg0, arg1)
}
func (_m *MockCoreStrategy) GenerateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester) (string, string, error) {
ret := _m.ctrl.Call(_m, "GenerateAuthorizeCode", _param0, _param1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockCoreStrategyRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GenerateAuthorizeCode", arg0, arg1)
}
func (_m *MockCoreStrategy) GenerateRefreshToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error) {
ret := _m.ctrl.Call(_m, "GenerateRefreshToken", _param0, _param1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockCoreStrategyRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GenerateRefreshToken", arg0, arg1)
}
func (_m *MockCoreStrategy) RefreshTokenSignature(_param0 string) string {
ret := _m.ctrl.Call(_m, "RefreshTokenSignature", _param0)
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) RefreshTokenSignature(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RefreshTokenSignature", arg0)
}
func (_m *MockCoreStrategy) ValidateAccessToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error {
ret := _m.ctrl.Call(_m, "ValidateAccessToken", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) ValidateAccessToken(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ValidateAccessToken", arg0, arg1, arg2)
}
func (_m *MockCoreStrategy) ValidateAuthorizeCode(_param0 context.Context, _param1 fosite.Requester, _param2 string) error {
ret := _m.ctrl.Call(_m, "ValidateAuthorizeCode", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ValidateAuthorizeCode", arg0, arg1, arg2)
}
func (_m *MockCoreStrategy) ValidateRefreshToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error {
ret := _m.ctrl.Call(_m, "ValidateRefreshToken", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCoreStrategyRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ValidateRefreshToken", arg0, arg1, arg2)
}