package activitypub

  1. Overview
  2. Docs

Module Activitypub.TokenSource

Creating and storing named tokens used for authentication.

Sourcetype key = string
Sourcetype t = {
  1. name : string;
  2. key : key;
}
Sourceval default_t : t
Sourceval t_wrapper : t Ocf.Wrapper.t
Sourceval random_key : unit -> string
Sourceval make : string -> t
Sourcetype auth_token = {
  1. actor : string;
  2. key : key;
}
Sourceval string_of_auth_token : auth_token -> string
Sourceval auth_token_of_string : string -> (auth_token, string) result
Sourceval token_list_wrapper : t list Ocf.Wrapper.t
Sourceval tokens_of_file : Lwt_io.file_name -> t list Lwt.t
Sourceval file_of_tokens : t list -> Lwt_io.file_name -> unit Lwt.t