package savvy
A straightforward OAuth2 client
Install
Dune Dependency
Authors
Maintainers
Sources
savvy-0.4.0.tbz
sha256=a9e2b62cbf273c881d47d86db243706e41dcf52ce3107288b7edcf61cc53bb10
sha512=2903142b0f64d06c02ab91e3a3545d8e38f0bef34a57e7aa8d97d06f11f12daee43825a4c91afa39f5c6542b61e8bb3a57b1076358031ae74b5d6d0e5944cecd
doc/savvy.oauth2_client/Oauth2_client/index.html
Module Oauth2_client
Source
Source
val authorization_code_config_of_yojson :
Yojson.Safe.t ->
authorization_code_config Ppx_deriving_yojson_runtime.error_or
Source
type client_credentials_config = {
client_id : string;
client_secret : string;
scope : string list;
token_auth_method : token_auth_method;
token_endpoint : Uri.t;
}
Source
val client_credentials_config_of_yojson :
Yojson.Safe.t ->
client_credentials_config Ppx_deriving_yojson_runtime.error_or
Source
val device_code_config_of_yojson :
Yojson.Safe.t ->
device_code_config Ppx_deriving_yojson_runtime.error_or
Source
type refresh_token_config = {
client_id : string;
client_secret : string;
token_endpoint : Uri.t;
refresh_token : string;
scope : string list option;
token_auth_method : token_auth_method;
}
Source
val refresh_token_config_of_yojson :
Yojson.Safe.t ->
refresh_token_config Ppx_deriving_yojson_runtime.error_or
Source
type config =
| AuthorizationCodeConfig of authorization_code_config
| ClientCredentialsConfig of client_credentials_config
| DeviceCodeConfig of device_code_config
| RefreshTokenConfig of refresh_token_config
Source
type token_response = {
access_token : string;
token_type : string;
expires_in : int option;
refresh_token : string option;
scope : string option;
}
Source
val token_response_of_yojson :
Yojson.Safe.t ->
token_response Ppx_deriving_yojson_runtime.error_or
Source
val device_code_response_of_yojson :
Yojson.Safe.t ->
device_code_response Ppx_deriving_yojson_runtime.error_or
Source
module OAuth2Client
(_ : Storage.STORAGE_UNIT with type value = string * config) :
OAUTH2_CLIENT
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>