TCognitoOpenIDConnectTokenRequest
Class in AWS.CognitoOIDC
Token request class.
Ancestors
Properties
ClientId
property ClientId: string
ClientSecret
property ClientSecret: string
Code
property Code: string
CodeVerifier
property CodeVerifier: string
GrantType
property GrantType: string
Scope
property Scope: string
RedirectUri
property RedirectUri: string
RefreshToken
property RefreshToken: string
Constructors
Create
constructor Create(const AClientId, AClientSecret, AGrantType: string);
Constructor for TCognitoOpenIDConnectTokenRequest.
Parameters
| Name | Description |
|---|---|
AClientId | Specify the ID of the app client in your user pool. |
AClientSecret | Specify the client secret for the app client. |
AGrantType | Specify the grant type. |
Methods
ForAuthorizationCode
class function ForAuthorizationCode( const AClientId, AClientSecret, ACode, ARedirectUri: string; const ACodeVerifier: string = ''): TCognitoOpenIDConnectTokenRequest; static;
TCognitoOpenIDConnectTokenRequest
Construct an authorization_code request.
Parameters
| Name | Description |
|---|---|
AClientId | Specify the ID of the app client in your user pool. |
AClientSecret | Specify the client secret for the app client. |
ACode | Specify an authorization code. |
ARedirectUri | Specify the RedirectUri that was used to get the authorization code. |
ACodeVerifier | Specify the proof key if the authorization code was requested with PKCE. |
Returns
Returns a TCognitoOpenIDConnectTokenRequest instance.
ForClientCredentials
class function ForClientCredentials( const AClientId, AClientSecret: string; const AScope: string = ''): TCognitoOpenIDConnectTokenRequest; static;
TCognitoOpenIDConnectTokenRequest
Construct a client_credentials request.
Parameters
| Name | Description |
|---|---|
AClientId | Specify the ID of the app client in your user pool. |
AClientSecret | Specify the client secret for the app client. |
AScope | Specify the scope(s). |
Returns
Returns a TCognitoOpenIDConnectTokenRequest instance.
ForRefreshToken
class function ForRefreshToken( const AClientId, AClientSecret, ARefreshToken: string): TCognitoOpenIDConnectTokenRequest; static;
TCognitoOpenIDConnectTokenRequest
Construct a refresh_token request.
Parameters
| Name | Description |
|---|---|
AClientId | Specify the ID of the app client in your user pool. |
AClientSecret | Specify the client secret for the app client. |
ARefreshToken | Specify a refresh token to regenerate a new access ID and tokens. |
Returns
Returns a TCognitoOpenIDConnectTokenRequest instance.