fix code response
This commit is contained in:
parent
3b89a976b3
commit
703c0808b2
1 changed files with 4 additions and 4 deletions
|
@ -415,11 +415,11 @@ func AuthResponseCode(w http.ResponseWriter, r *http.Request, authReq AuthReques
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
codeResponse := struct {
|
codeResponse := struct {
|
||||||
Code string
|
code string
|
||||||
State string
|
state string
|
||||||
}{
|
}{
|
||||||
Code: code,
|
code: code,
|
||||||
State: authReq.GetState(),
|
state: authReq.GetState(),
|
||||||
}
|
}
|
||||||
callback, err := AuthResponseURL(authReq.GetRedirectURI(), authReq.GetResponseType(), authReq.GetResponseMode(), &codeResponse, authorizer.Encoder())
|
callback, err := AuthResponseURL(authReq.GetRedirectURI(), authReq.GetResponseType(), authReq.GetResponseMode(), &codeResponse, authorizer.Encoder())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue