[server] fix scope response type + add extra claims to access token

This commit is contained in:
Lakhan Samani
2023-02-08 09:39:08 +05:30
parent 4018da6697
commit 70242debe1
4 changed files with 39 additions and 14 deletions

View File

@@ -284,7 +284,7 @@ func AuthorizeHandler() gin.HandlerFunc {
"access_token": authToken.AccessToken.Token,
"id_token": authToken.IDToken.Token,
"state": state,
"scope": scope,
"scope": strings.Join(scope, " "),
"token_type": "Bearer",
"expires_in": authToken.AccessToken.ExpiresAt,
}