pub struct GoogleIdentityStsV1ExchangeOauthTokenRequest {
pub client_id: Option<String>,
pub code: Option<String>,
pub code_verifier: Option<String>,
pub grant_type: Option<String>,
pub redirect_uri: Option<String>,
pub refresh_token: Option<String>,
pub scope: Option<String>,
}
Expand description
Request message for ExchangeOauthToken
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- oauthtoken (request)
Fields§
§client_id: Option<String>
Optional. The client identifier for the OAuth 2.0 client that requested the provided token. It is REQUIRED when the client (https://www.rfc-editor.org/rfc/rfc6749#section-1.1) is not authenticating with the authorization server, i.e. when authentication method is [client authentication] (https://www.rfc-editor.org/rfc/rfc6749#section-3.2.1).
code: Option<String>
Optional. The authorization code that was previously from workforce identity federation’s authorize
endpoint. Required if the flow is authorization code flow, i.e. if grant_type is ‘authorization_code’
code_verifier: Option<String>
Optional. The code verifier for the PKCE request, Google Cloud CLI originally generates it before the authorization request. PKCE is used to protect authorization code from interception attacks. See https://www.rfc-editor.org/rfc/rfc7636#section-1.1 and https://www.rfc-editor.org/rfc/rfc7636#section-3. It is required when the flow is authorization code flow, i.e. if grant_type is ‘authorization_code’
grant_type: Option<String>
Required. The grant types are as follows: - ‘authorization_code’ : an authorization code flow, i.e. exchange of authorization code for the Oauth access token - ‘refresh_token’ : a refresh token flow, i.e. obtain a new access token by providing the refresh token. See https://www.rfc-editor.org/rfc/rfc6749#section-6
redirect_uri: Option<String>
Optional. redirect_url is required when the flow is authorization code flow i.e. if grant_type is authorization_code
See https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3
refresh_token: Option<String>
Optional. The Refresh token is the credential that is used to obtain a new access token when the current access token becomes invalid or expires. Required when using refresh token flow, i.e. if grant_type
is ‘refresh_token’ See https://www.rfc-editor.org/rfc/rfc6749#section-1.5 and https://www.rfc-editor.org/rfc/rfc6749#section-6
scope: Option<String>
Optional. An optional list of scopes that are requested for the token to be returned. See https://www.rfc-editor.org/rfc/rfc6749#section-3.3 Must be a list of space-delimited, case-sensitive strings. Note: Currently, the scopes in the request are not supported
Trait Implementations§
source§impl Clone for GoogleIdentityStsV1ExchangeOauthTokenRequest
impl Clone for GoogleIdentityStsV1ExchangeOauthTokenRequest
source§fn clone(&self) -> GoogleIdentityStsV1ExchangeOauthTokenRequest
fn clone(&self) -> GoogleIdentityStsV1ExchangeOauthTokenRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more