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
22
33go 1.13
44
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 11github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
22github.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 =
75github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
86github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
97github.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 =
1210gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
1311gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
1412gopkg.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(
9595 if err != nil {
9696 return
9797 }
98- if err = callbacks .Init (initRes .AuthorizationURL ); err != nil {
98+ if err = callbacks .Init (initRes .ConsentURI ); err != nil {
9999 return
100100 }
101101 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(
112112 if err != nil {
113113 return api.MytokenResponse {}, err
114114 }
115- if err = callbacks .Init (authRes .AuthorizationURL ); err != nil {
115+ if err = callbacks .Init (authRes .ConsentURI ); err != nil {
116116 return api.MytokenResponse {}, err
117117 }
118118 resp , err := my .APIPoll (authRes .PollingInfo , callbacks .Callback )
@@ -156,7 +156,7 @@ func (my MytokenEndpoint) APIInitAuthorizationFlow(
156156 },
157157 OIDCFlow : api .OIDCFlowAuthorizationCode ,
158158 },
159- RedirectType : "native" ,
159+ ClientType : api . ClientTypeNative ,
160160 }
161161 err = my .DoHTTPRequest ("POST" , req , & resp )
162162 return
You can’t perform that action at this time.
0 commit comments