WardrikOAuth. Registration
(wardrik_oauth v0.1.0-rc.1)
Copy Markdown
Makes Wardrik a client of an authorization server it has no client_id for.
This happens once. The client is kept in the store for every node.
- If the server reads Client ID Metadata Documents and
pageishttps, theclient_idis{page}/client. Nothing is registered. - Otherwise, Wardrik registers itself at the server's
registration_endpoint(RFC 7591). - If neither is possible, it returns
{:error, {:no_client, name}}.
Summary
Functions
Returns provider with a client: its own, the one kept, or one registered now.
Returns the Client ID Metadata Document served at {page}/client.
Deletes the client registered for the provider name.
Returns provider with the client kept for it, if there is one.
Functions
@spec client(map(), WardrikOAuth.Provider.t(), WardrikOAuth.Metadata.t()) :: {:ok, WardrikOAuth.Provider.t()} | {:error, term()}
Returns provider with a client: its own, the one kept, or one registered now.
Returns the Client ID Metadata Document served at {page}/client.
Deletes the client registered for the provider name.
@spec registered(map(), WardrikOAuth.Provider.t()) :: WardrikOAuth.Provider.t()
Returns provider with the client kept for it, if there is one.