diff --git a/server/handlers/authorize.go b/server/handlers/authorize.go index e2e74ab..2d95458 100644 --- a/server/handlers/authorize.go +++ b/server/handlers/authorize.go @@ -180,8 +180,11 @@ func AuthorizeHandler() gin.HandlerFunc { // } handleResponse(gc, responseMode, loginURL, redirectURI, map[string]interface{}{ - "code": code, - "state": state, + "type": "authorization_response", + "response": map[string]string{ + "code": code, + "state": state, + }, }, http.StatusOK) return