GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeArgs

data class GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeArgs(val accessToken: Output<GoogleCloudIntegrationsV1alphaAccessTokenArgs>? = null, val applyReauthPolicy: Output<Boolean>? = null, val authCode: Output<String>? = null, val authEndpoint: Output<String>? = null, val authParams: Output<GoogleCloudIntegrationsV1alphaParameterMapArgs>? = null, val clientId: Output<String>? = null, val clientSecret: Output<String>? = null, val requestType: Output<GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType>? = null, val scope: Output<String>? = null, val tokenEndpoint: Output<String>? = null, val tokenParams: Output<GoogleCloudIntegrationsV1alphaParameterMapArgs>? = null) : ConvertibleToJava<GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeArgs>

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

fun GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeArgs(accessToken: Output<GoogleCloudIntegrationsV1alphaAccessTokenArgs>? = null, applyReauthPolicy: Output<Boolean>? = null, authCode: Output<String>? = null, authEndpoint: Output<String>? = null, authParams: Output<GoogleCloudIntegrationsV1alphaParameterMapArgs>? = null, clientId: Output<String>? = null, clientSecret: Output<String>? = null, requestType: Output<GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType>? = null, scope: Output<String>? = null, tokenEndpoint: Output<String>? = null, tokenParams: Output<GoogleCloudIntegrationsV1alphaParameterMapArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeArgs

Properties

Link copied to clipboard

The access token received from the token endpoint.

Link copied to clipboard
val applyReauthPolicy: Output<Boolean>? = null

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.

Link copied to clipboard
val authCode: Output<String>? = null

The Auth Code that is used to initially retrieve the access token.

Link copied to clipboard
val authEndpoint: Output<String>? = null

The auth url endpoint to send the auth code request to.

Link copied to clipboard

The auth parameters sent along with the auth code request.

Link copied to clipboard
val clientId: Output<String>? = null

The client's id.

Link copied to clipboard
val clientSecret: Output<String>? = null

The client's secret.

Link copied to clipboard

Represent how to pass parameters to fetch access token

Link copied to clipboard
val scope: Output<String>? = null

A space-delimited list of requested scope permissions.

Link copied to clipboard
val tokenEndpoint: Output<String>? = null

The token url endpoint to send the token request to.

Link copied to clipboard

The token parameters sent along with the token request.