Hi all,
I want to use Ueberauth for a project. So the first thing i did was to try out the ueberauth example repository:
https://github.com/ueberauth/ueberauth_example/
After configuration and starting the following thing is happening:
The redirect and the authentication with google is working fine. But when google calls the callback method the parameter ‘state’ is missing.
As fare as i understand, the parameter ‘state’ has to be in the authentication request call in the first place.
But this is not happening. If this parameter is missing Ueberauth reacts with an “Cross-Site-Request-Forgery” error.
I have no idea what i am doing wrong! Can some one help me?
This is what i did:
I registered a google OAuth client with the following callback url:
http://localhost:4000/auth/google/callback
I did all the steps described in the README
set the environment:
export GOOGLE_CLIENT_ID=...
export GOOGLE_CLIENT_SECRET=...
And start the phoenix app:
mix deps.get && npm install --prefix assets
mix phx.server
This are the software versions i used:
Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help)