GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse class

The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens.

Constructors

GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse({required Input<GoogleCloudIntegrationsV1alphaAccessTokenResponse> accessToken, required Input<bool> applyReauthPolicy, required Input<String> authCode, required Input<String> authEndpoint, required Input<GoogleCloudIntegrationsV1alphaParameterMapResponse> authParams, required Input<String> clientId, required Input<String> clientSecret, required Input<String> requestType, required Input<String> scope, required Input<String> tokenEndpoint, required Input<GoogleCloudIntegrationsV1alphaParameterMapResponse> tokenParams})
Creates a new GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse. accessToken The access token received from the token endpoint. applyReauthPolicy Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one. authCode The Auth Code that is used to initially retrieve the access token. authEndpoint The auth url endpoint to send the auth code request to. authParams The auth parameters sent along with the auth code request. clientId The client's id. clientSecret The client's secret. requestType Represent how to pass parameters to fetch access token scope A space-delimited list of requested scope permissions. tokenEndpoint The token url endpoint to send the token request to. tokenParams The token parameters sent along with the token request.
const
GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse.fromMap(Map<String, dynamic> map)
factory

Properties

accessToken → Input<GoogleCloudIntegrationsV1alphaAccessTokenResponse>
The access token received from the token endpoint.
final
applyReauthPolicy → Input<bool>
Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one.
final
authCode → Input<String>
The Auth Code that is used to initially retrieve the access token.
final
authEndpoint → Input<String>
The auth url endpoint to send the auth code request to.
final
authParams → Input<GoogleCloudIntegrationsV1alphaParameterMapResponse>
The auth parameters sent along with the auth code request.
final
clientId → Input<String>
The client's id.
final
clientSecret → Input<String>
The client's secret.
final
hashCode → int
The hash code for this object.
no setterinherited
requestType → Input<String>
Represent how to pass parameters to fetch access token
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → Input<String>
A space-delimited list of requested scope permissions.
final
tokenEndpoint → Input<String>
The token url endpoint to send the token request to.
final
tokenParams → Input<GoogleCloudIntegrationsV1alphaParameterMapResponse>
The token parameters sent along with the token request.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited