View helpers to render authorization links.
Generates an authorization link for a provider.
Generates a provider deauthorization link.
Generates list of authorization links for all configured providers.
authorization_link(Conn.t(), atom()) :: Phoenix.HTML.safe()
The link is used to sign up or register a user using a provider. If
:invited_user is assigned to the conn, the invitation token will be passed
on through the URL query params.
deauthorization_link(Conn.t(), atom()) :: Phoenix.HTML.safe()
The link is used to remove authorization with the provider.
provider_links(Conn.t()) :: [Phoenix.HTML.safe()]
The list of providers will be fetched from the configuration, and
authorization_link/2 will be called on each.
If a user is assigned to the conn, the authorized providers for a user will
be looked up with PowAssent.Plug.providers_for_current_user/1.
deauthorization_link/2 will be used for any already authorized providers.