From 8e655bcb5bc9cfb017076d83717599d2b9975390 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Tue, 18 Oct 2022 21:29:09 +0530 Subject: [PATCH] fix: authorize response --- server/handlers/authorize.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/server/handlers/authorize.go b/server/handlers/authorize.go index d93847d..e2e74ab 100644 --- a/server/handlers/authorize.go +++ b/server/handlers/authorize.go @@ -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 // and cookie session will already be rolled over and set - gc.HTML(http.StatusOK, authorizeWebMessageTemplate, gin.H{ - "target_origin": redirectURI, - "authorization_response": map[string]interface{}{ - "type": "authorization_response", - "response": map[string]string{ - "code": code, - "state": state, - }, - }, - }) + // gc.HTML(http.StatusOK, authorizeWebMessageTemplate, gin.H{ + // "target_origin": redirectURI, + // "authorization_response": map[string]interface{}{ + // "type": "authorization_response", + // "response": map[string]string{ + // "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{}{ - // "code": code, - // "state": state, - // }, http.StatusOK) + handleResponse(gc, responseMode, loginURL, redirectURI, map[string]interface{}{ + "code": code, + "state": state, + }, http.StatusOK) return }