fix state management

This commit is contained in:
Lakhan Samani
2022-03-07 23:44:19 +05:30
parent 128a2a8f75
commit 57bc091499
5 changed files with 19 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ func AuthorizeHandler() gin.HandlerFunc {
isQuery := responseMode == "query"
hostname := utils.GetHost(gc)
loginRedirectState := crypto.EncryptB64(`{"authorizerURL":"` + hostname + `","redirectURL":"` + redirectURI + `"}`)
loginRedirectState := crypto.EncryptB64(`{"authorizerURL":"` + hostname + `","redirectURL":"` + redirectURI + `", "state":"` + state + `"}`)
loginURL := "/app?state=" + loginRedirectState
if clientID == "" {