fix code response

This commit is contained in:
Livio Amstutz 2021-10-26 16:10:18 +02:00
parent 3b89a976b3
commit 703c0808b2

View file

@ -415,11 +415,11 @@ func AuthResponseCode(w http.ResponseWriter, r *http.Request, authReq AuthReques
return
}
codeResponse := struct {
Code string
State string
code string
state string
}{
Code: code,
State: authReq.GetState(),
code: code,
state: authReq.GetState(),
}
callback, err := AuthResponseURL(authReq.GetRedirectURI(), authReq.GetResponseType(), authReq.GetResponseMode(), &codeResponse, authorizer.Encoder())
if err != nil {