Packages

A Uberauth/Assent strategy for Rumble authentication.

Retired package: Deprecated - new version exists

Current section

Files

Jump to
oauth2_rumble lib strategy assent rumble.ex
Raw

lib/strategy/assent/rumble.ex

defmodule Assent.Strategy.Rumble do
@moduledoc """
Rumble Strategy for Assent.
"""
@behaviour Assent.Strategy
alias Rumble.Strategy.OAuth2
@spec authorize_url(Keyword.t()) :: {:ok, %{url: binary()}} | {:error, term()}
def authorize_url(config) do
OAuth2.authorize_url!(config)
end
@spec callback(Keyword.t(), map()) :: {:ok, %{user: map(), token: map()}} | {:error, term()}
def callback(config, params) do
OAuth2.get_token!(config, params)
end
end