Skip to content

Commit 9db2f3b

Browse files
authored
Merge pull request #69 from cloudentity/feature/rar-token-response
RAR add authorization_details to the /token response
2 parents da283e8 + 38ae26f commit 9db2f3b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

internal/oauth2/oauth2.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,14 @@ func WaitForCallback(clientConfig ClientConfig, serverConfig ServerConfig, hc *h
282282
}
283283

284284
type TokenResponse struct {
285-
AccessToken string `json:"access_token,omitempty"`
286-
ExpiresIn int64 `json:"expires_in,omitempty"`
287-
IDToken string `json:"id_token,omitempty"`
288-
IssuedTokenType string `json:"issued_token_type,omitempty"`
289-
RefreshToken string `json:"refresh_token,omitempty"`
290-
Scope string `json:"scope,omitempty"`
291-
TokenType string `json:"token_type,omitempty"`
285+
AccessToken string `json:"access_token,omitempty"`
286+
ExpiresIn int64 `json:"expires_in,omitempty"`
287+
IDToken string `json:"id_token,omitempty"`
288+
IssuedTokenType string `json:"issued_token_type,omitempty"`
289+
RefreshToken string `json:"refresh_token,omitempty"`
290+
Scope string `json:"scope,omitempty"`
291+
TokenType string `json:"token_type,omitempty"`
292+
AuthorizationDetails []map[string]interface{} `json:"authorization_details,omitempty"`
292293
}
293294

294295
func NewTokenResponseFromForm(f url.Values) TokenResponse {

0 commit comments

Comments
 (0)