Oidc.Client
Types and functions to work with clients
type t = {
id : string; |
response_types : string list; |
grant_types : string list; |
redirect_uris : Uri.t list; |
secret : string option; |
token_endpoint_auth_method : string; |
}
OIDC Client
val make :
?secret:string ->
response_types:string list ->
grant_types:string list ->
redirect_uris:Uri.t list ->
token_endpoint_auth_method:string ->
string ->
t
Create a OIDC Client
type meta = {
}
Metadata used in registration of dynamic clients
val make_meta :
?response_types:string list ->
?grant_types:string list ->
?application_type:string ->
?contacts:string list ->
?client_name:string ->
?token_endpoint_auth_method:string ->
?logo_uri:Uri.t ->
?client_uri:Uri.t ->
?policy_uri:Uri.t ->
?tos_uri:Uri.t ->
?jwks_uri:Uri.t ->
?sector_identifier_uri:Uri.t ->
?subject_type:string ->
?id_token_signed_response_alg:Jose.Jwa.alg ->
redirect_uris:Uri.t list ->
unit ->
meta
val meta_to_yojson : meta -> Yojson.Safe.t
val meta_to_string : meta -> string
type dynamic_response = {
}
The actual response response should also include the metadata
val dynamic_is_expired : dynamic_response -> bool
This is useful to know if you have to re-register your client
val dynamic_of_yojson :
Yojson.Safe.t ->
( dynamic_response, string ) Stdlib.result
val dynamic_of_string : string -> ( dynamic_response, string ) Stdlib.result
val of_dynamic_and_meta : dynamic:dynamic_response -> meta:meta -> t
Createa a OIDC Client from dynamic
and meta