CPub.Web.Authentication.Strategy.Mastodon.OAuth (CPub v0.3.0) View Source

An implementation of OAuth2 for Pleroma/Mastodon compatible providers.

Link to this section Summary

Functions

Constructs a client for requests to Pleroma/Mastodon compatible providers.

Link to this section Functions

Link to this function

authorize_url(client, params)

View Source

Specs

authorize_url(OAuth2.Client.t(), map()) :: OAuth2.Client.t()

Callback implementation for OAuth2.Strategy.authorize_url/2.

Specs

client(keyword()) :: OAuth2.Client.t()

Constructs a client for requests to Pleroma/Mastodon compatible providers.

Link to this function

get_token(client, params, headers)

View Source

Specs

Callback implementation for OAuth2.Strategy.get_token/3.