File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/oidc-mytoken/lib
2
2
3
3
go 1.13
4
4
5
- require github.com/oidc-mytoken/api v0.5.1
5
+ require github.com/oidc-mytoken/api v0.6.0
Original file line number Diff line number Diff line change 1
1
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
2
2
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
- github.com/oidc-mytoken/api v0.5.0 h1:cKIKr7JA4E1ZKSHhcBNWuqplihvgrLndu7/lthSVc04 =
4
- github.com/oidc-mytoken/api v0.5.0 /go.mod h1:RMeAl6ICLnemFQU4g57IHCP8m9WZg8PjXNVkodMiNi8 =
5
- github.com/oidc-mytoken/api v0.5.1 h1:4+0tFa00wUubNaHjiVGFoNEhfcwmXKFfTuNZLWmJggc =
6
- github.com/oidc-mytoken/api v0.5.1 /go.mod h1:RMeAl6ICLnemFQU4g57IHCP8m9WZg8PjXNVkodMiNi8 =
3
+ github.com/oidc-mytoken/api v0.6.0 h1:J+/gNLB7bIh5Cf8HGtGIGak/AILdp5DLPvXPsUGApck =
4
+ github.com/oidc-mytoken/api v0.6.0 /go.mod h1:ljMG5L38yap1K+zvYBjsYXy2XYw6Vy0A4wACnnTHaCQ =
7
5
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
8
6
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
9
7
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
10
- github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY =
11
- github.com/stretchr/testify v1.7.0 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
8
+ github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY =
9
+ github.com/stretchr/testify v1.7.1 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
12
10
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
13
11
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
14
12
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo =
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func (s SSHGrantEndpoint) APIAdd(
95
95
if err != nil {
96
96
return
97
97
}
98
- if err = callbacks .Init (initRes .AuthorizationURL ); err != nil {
98
+ if err = callbacks .Init (initRes .ConsentURI ); err != nil {
99
99
return
100
100
}
101
101
resp , err := s .APIPoll (initRes .PollingInfo , callbacks .Callback )
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func (my MytokenEndpoint) APIFromAuthorizationFlow(
112
112
if err != nil {
113
113
return api.MytokenResponse {}, err
114
114
}
115
- if err = callbacks .Init (authRes .AuthorizationURL ); err != nil {
115
+ if err = callbacks .Init (authRes .ConsentURI ); err != nil {
116
116
return api.MytokenResponse {}, err
117
117
}
118
118
resp , err := my .APIPoll (authRes .PollingInfo , callbacks .Callback )
@@ -156,7 +156,7 @@ func (my MytokenEndpoint) APIInitAuthorizationFlow(
156
156
},
157
157
OIDCFlow : api .OIDCFlowAuthorizationCode ,
158
158
},
159
- RedirectType : "native" ,
159
+ ClientType : api . ClientTypeNative ,
160
160
}
161
161
err = my .DoHTTPRequest ("POST" , req , & resp )
162
162
return
You can’t perform that action at this time.
0 commit comments