Skip to content

Commit

Permalink
Merge pull request #69 from cloudentity/feature/rar-token-response
Browse files Browse the repository at this point in the history
RAR add authorization_details to the /token response
  • Loading branch information
ikawalec committed Jul 24, 2023
2 parents da283e8 + 38ae26f commit 9db2f3b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions internal/oauth2/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,14 @@ func WaitForCallback(clientConfig ClientConfig, serverConfig ServerConfig, hc *h
}

type TokenResponse struct {
AccessToken string `json:"access_token,omitempty"`
ExpiresIn int64 `json:"expires_in,omitempty"`
IDToken string `json:"id_token,omitempty"`
IssuedTokenType string `json:"issued_token_type,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
Scope string `json:"scope,omitempty"`
TokenType string `json:"token_type,omitempty"`
AccessToken string `json:"access_token,omitempty"`
ExpiresIn int64 `json:"expires_in,omitempty"`
IDToken string `json:"id_token,omitempty"`
IssuedTokenType string `json:"issued_token_type,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
Scope string `json:"scope,omitempty"`
TokenType string `json:"token_type,omitempty"`
AuthorizationDetails []map[string]interface{} `json:"authorization_details,omitempty"`
}

func NewTokenResponseFromForm(f url.Values) TokenResponse {
Expand Down

0 comments on commit 9db2f3b

Please sign in to comment.