Module Values.OidcTokenInfoSource

Contains OAuth token information returned from the identity provider, including access tokens, ID tokens, and PKCE parameters used for secure authentication.

Sourcetype nonrec t = {
  1. codeVerifier : GenericString.t option;
    (*

    The PKCE (Proof Key for Code Exchange) code verifier, a cryptographically random string used to enhance security in the OAuth flow.

    *)
  2. codeChallenge : GenericString.t option;
    (*

    The PKCE code challenge, a transformed version of the code verifier sent during the authorization request for verification.

    *)
  3. accessToken : GenericString.t option;
    (*

    The OAuth access token that can be used to access protected resources on behalf of the authenticated user.

    *)
  4. idToken : GenericString.t option;
    (*

    The OpenID Connect ID token containing user identity information and authentication context as a signed JWT.

    *)
  5. refreshToken : GenericString.t option;
    (*

    The OAuth refresh token that can be used to obtain new access tokens without requiring the user to re-authenticate.

    *)
  6. tokenType : GenericString.t option;
    (*

    The type of access token issued, typically 'Bearer', which indicates how the token should be used in API requests.

    *)
  7. expiresIn : Long.t option;
    (*

    The lifetime of the access token in seconds, indicating when the token will expire and need to be refreshed.

    *)
}
Sourceval make : ?codeVerifier:??? -> ?codeChallenge:??? -> ?accessToken:??? -> ?idToken:??? -> ?refreshToken:??? -> ?tokenType:??? -> ?expiresIn:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Long of Long.t | `String of GenericString.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