Skip to content

Commit

Permalink
make state parameter replacable by params (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Holzapfel authored and doomspork committed Jul 19, 2016
1 parent 1548af1 commit 449a5b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ueberauth/strategy/facebook.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule Ueberauth.Strategy.Facebook do
authorize_url = conn.params
|> maybe_replace_param(conn, "auth_type", :auth_type)
|> maybe_replace_param(conn, "scope", :default_scope)
|> maybe_replace_param(conn, "state", :state)
|> Enum.filter(fn {k,_v} -> Enum.member?(allowed_params, k) end)
|> Enum.map(fn {k,v} -> {String.to_existing_atom(k), v} end)
|> Keyword.put(:redirect_uri, callback_url(conn))
Expand Down

0 comments on commit 449a5b1

Please sign in to comment.