TClientAuthResponse Class
Holds the raw parameters returned by the authorization server in a redirect callback.
Remarks
This class captures the URL parameters delivered to the redirect URI after an authorization request. Depending on the response type and mode, the server may populate Code (authorization code flow), AccessToken (implicit flow), IdToken, or Error and ErrorDescription when the request failed.
Syntax
Unit: Sphinx.OidcClient
TClientAuthResponse = class(TObject);
Properties
| Name | Description |
|---|---|
| AccessToken | Gets or sets the access token returned in implicit flow responses. |
| Code | Gets or sets the authorization code returned in code flow responses. |
| Error | Gets or sets the OAuth2 error code when the server returned an error. |
| ErrorDescription | Gets or sets the human-readable description of the error. |
| Expiration | Gets the absolute expiration date and time of the access token. |
| ExpiresIn | Gets or sets the lifetime of the access token in seconds. |
| IdToken | Gets or sets the identity token returned in implicit or hybrid flows. |
| Scope | Gets or sets the space-separated list of scopes granted by the server. |
| State | Gets or sets the state parameter echoed back by the server. |
| TokenType | Gets or sets the token type, typically Bearer. |