PowAssent v0.1.0-alpha.2 PowAssent.Strategy.Basecamp View Source

Basecamp OAuth 2.0 strategy.

Link to this section Summary

Link to this section Functions

Link to this function authorize_url(config, conn) View Source
authorize_url(Keyword.t(), Plug.Conn.t()) ::
  {:ok, %{conn: Plug.Conn.t(), state: binary(), url: binary()}}

Callback implementation for PowAssent.Strategy.authorize_url/2.

Link to this function callback(config, conn, params) View Source
callback(Keyword.t(), Plug.Conn.t(), map()) ::
  {:ok, %{client: OAuth2.Client.t(), conn: Plug.Conn.t(), user: map()}}
  | {:error, %{conn: Plug.Conn.t(), error: any()}}

Callback implementation for PowAssent.Strategy.callback/3.