fix: authorize response
This commit is contained in:
parent
9a411e673c
commit
8e655bcb5b
|
@ -152,16 +152,16 @@ func AuthorizeHandler() gin.HandlerFunc {
|
||||||
|
|
||||||
// in case, response type is code and user is already logged in send the code and state
|
// in case, response type is code and user is already logged in send the code and state
|
||||||
// and cookie session will already be rolled over and set
|
// and cookie session will already be rolled over and set
|
||||||
gc.HTML(http.StatusOK, authorizeWebMessageTemplate, gin.H{
|
// gc.HTML(http.StatusOK, authorizeWebMessageTemplate, gin.H{
|
||||||
"target_origin": redirectURI,
|
// "target_origin": redirectURI,
|
||||||
"authorization_response": map[string]interface{}{
|
// "authorization_response": map[string]interface{}{
|
||||||
"type": "authorization_response",
|
// "type": "authorization_response",
|
||||||
"response": map[string]string{
|
// "response": map[string]string{
|
||||||
"code": code,
|
// "code": code,
|
||||||
"state": state,
|
// "state": state,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
|
|
||||||
// params := "code=" + code + "&state=" + state
|
// params := "code=" + code + "&state=" + state
|
||||||
|
|
||||||
|
@ -179,10 +179,10 @@ func AuthorizeHandler() gin.HandlerFunc {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// handleResponse(gc, responseMode, loginURL, redirectURI, map[string]interface{}{
|
handleResponse(gc, responseMode, loginURL, redirectURI, map[string]interface{}{
|
||||||
// "code": code,
|
"code": code,
|
||||||
// "state": state,
|
"state": state,
|
||||||
// }, http.StatusOK)
|
}, http.StatusOK)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user