PowAssent v0.1.0 PowAssent.Strategy.Twitter View Source
Twitter OAuth 1.0 strategy.
Usage
config :my_app, :pow_assent,
providers: [
vk: [
consumer_key: "REPLACE_WITH_CONSUMER_KEY",
consumer_secret: "REPLACE_WITH_CONSUMER_SECRET",
strategy: PowAssent.Strategy.Twitter
]
]
Link to this section Summary
Functions
Callback implementation for PowAssent.Strategy.authorize_url/2
Callback implementation for PowAssent.Strategy.callback/3
Callback implementation for PowAssent.Strategy.OAuth.Base.default_config/1
Callback implementation for PowAssent.Strategy.OAuth.Base.get_user/2
Callback implementation for PowAssent.Strategy.OAuth.Base.normalize/2
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(), url: binary()}} | {:error, %{conn: Plug.Conn.t(), error: any()}}
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, %{conn: Plug.Conn.t(), user: map()}} | {:error, %{conn: Plug.Conn.t(), error: any()}}
Callback implementation for PowAssent.Strategy.callback/3
.
Callback implementation for PowAssent.Strategy.OAuth.Base.default_config/1
.
Callback implementation for PowAssent.Strategy.OAuth.Base.get_user/2
.
Callback implementation for PowAssent.Strategy.OAuth.Base.normalize/2
.