Module Values.CreateOAuth2TokenRequestBodySource

Request body payload for CreateOAuth2Token operation The operation type is determined by the grant_type parameter: grant_type=authorization_code: Requires code, redirect_uri, code_verifier grant_type=refresh_token: Requires refresh_token

Sourcetype nonrec t = {
  1. clientId : ClientId.t;
    (*

    The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows

    *)
  2. grantType : GrantType.t;
    (*

    OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"

    *)
  3. code : AuthorizationCode.t option;
    (*

    The authorization code received from /v1/authorize Required only when grant_type=authorization_code

    *)
  4. redirectUri : RedirectUri.t option;
    (*

    The redirect URI that must match the original authorization request Required only when grant_type=authorization_code

    *)
  5. codeVerifier : CodeVerifier.t option;
    (*

    PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code

    *)
  6. refreshToken : RefreshToken.t option;
    (*

    The refresh token returned from auth_code redemption Required only when grant_type=refresh_token

    *)
}
Sourceval context_ : string
Sourceval make : ?code:??? -> ?redirectUri:??? -> ?codeVerifier:??? -> ?refreshToken:??? -> clientId:ClientId.t -> grantType:GrantType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ClientId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t