package savvy

  1. Overview
  2. Docs

Module Oauth2_clientSource

Sourcetype flow_type =
  1. | AuthorizationCode
  2. | ClientCredentials
  3. | DeviceCode
  4. | RefreshToken
Sourcetype token_auth_method =
  1. | Basic
  2. | Body
Sourcetype pkce_style =
  1. | No_Pkce
  2. | Plain
  3. | S256
Sourcetype authorization_code_config = {
  1. authorization_endpoint : Uri.t;
  2. client_id : string;
  3. client_secret : string option;
  4. pkce : pkce_style;
  5. pkce_verifier : string option;
  6. redirect_uri : Uri.t;
  7. scope : string list;
  8. token_auth_method : token_auth_method;
  9. token_endpoint : Uri.t;
}
Sourceval authorization_code_config_to_yojson : authorization_code_config -> Yojson.Safe.t
Sourcetype client_credentials_config = {
  1. client_id : string;
  2. client_secret : string;
  3. scope : string list;
  4. token_auth_method : token_auth_method;
  5. token_endpoint : Uri.t;
}
Sourceval client_credentials_config_to_yojson : client_credentials_config -> Yojson.Safe.t
Sourcetype device_code_config = {
  1. client_id : string;
  2. device_authorization_endpoint : Uri.t;
  3. token_endpoint : Uri.t;
  4. scope : string list;
}
Sourceval device_code_config_to_yojson : device_code_config -> Yojson.Safe.t
Sourcetype refresh_token_config = {
  1. client_id : string;
  2. client_secret : string;
  3. token_endpoint : Uri.t;
  4. refresh_token : string;
  5. scope : string list option;
  6. token_auth_method : token_auth_method;
}
Sourceval refresh_token_config_to_yojson : refresh_token_config -> Yojson.Safe.t
Sourcetype config =
  1. | AuthorizationCodeConfig of authorization_code_config
  2. | ClientCredentialsConfig of client_credentials_config
  3. | DeviceCodeConfig of device_code_config
  4. | RefreshTokenConfig of refresh_token_config
Sourceval config_to_yojson : config -> Yojson.Safe.t
Sourcetype token_response = {
  1. access_token : string;
  2. token_type : string;
  3. expires_in : int option;
  4. refresh_token : string option;
  5. scope : string option;
}
Sourceval token_response_to_yojson : token_response -> Yojson.Safe.t
Sourcetype device_code_response = {
  1. device_code : string;
  2. user_code : string;
  3. verification_uri : Uri.t;
  4. verification_uri_complete : Uri.t option;
  5. expires_in : int;
  6. interval : int;
}
Sourceval device_code_response_to_yojson : device_code_response -> Yojson.Safe.t
Sourcemodule DefaultInMemoryStorage : sig ... end
Sourcemodule type OAUTH2_CLIENT = sig ... end
OCaml

Innovation. Community. Security.