Skip to content

Commit 449a5b1

Browse files
Dirk Holzapfeldoomspork
Dirk Holzapfel
authored andcommitted
make state parameter replacable by params (#19)
1 parent 1548af1 commit 449a5b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ueberauth/strategy/facebook.ex

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defmodule Ueberauth.Strategy.Facebook do
2929
authorize_url = conn.params
3030
|> maybe_replace_param(conn, "auth_type", :auth_type)
3131
|> maybe_replace_param(conn, "scope", :default_scope)
32+
|> maybe_replace_param(conn, "state", :state)
3233
|> Enum.filter(fn {k,_v} -> Enum.member?(allowed_params, k) end)
3334
|> Enum.map(fn {k,v} -> {String.to_existing_atom(k), v} end)
3435
|> Keyword.put(:redirect_uri, callback_url(conn))

0 commit comments

Comments
 (0)