Module Values.OAuthCredentialsSource

The OAuth credentials required for OAuth type authentication.

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

    The identifier for the desired client.

    *)
  2. clientSecret : ClientSecret.t;
    (*

    The client secret used by the OAuth client to authenticate to the authorization server.

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

    The access token used to access protected SAPOData resources.

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

    The refresh token used to refresh expired access token.

    *)
  5. oAuthRequest : ConnectorOAuthRequest.t option;
    (*

    The OAuth requirement needed to request security tokens from the connector endpoint.

    *)
}
Sourceval context_ : string
Sourceval make : ?accessToken:??? -> ?refreshToken:??? -> ?oAuthRequest:??? -> clientId:ClientId.t -> clientSecret:ClientSecret.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ClientId.t | `Structure of (string * [> `String of AuthCode.t ]) list ]) 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