Closed tonnenpinguin closed 4 years ago
@yordis you've been involved in most of the recent releases, can insights here? @ueberauth/core this might be something we need to investigate.
Is there a version 0.6.2
?
@tonnenpinguin Hi ;)
could share your config :ueberauth
? i am guessing that the composition of request_path
might be wrong.
Hi @0x6a6f74726f !
Sure thing:
config :ueberauth, Ueberauth,
providers: [
identity: {
Ueberauth.Strategy.Identity,
[
callback_methods: ["POST"],
param_nesting: "user",
name_field: :display_name
]
},
google: {Ueberauth.Strategy.Google, [default_scope: "email profile"]},
facebook: {Ueberauth.Strategy.Facebook, [default_scope: "email,public_profile"]}
]
Thanks for sharing. I suggest you add the base_path
option.
an example
config.exs
...
config :ueberauth, Ueberauth,
base_path: "/",
...
corresponding router.ex
...
scope "/", SSO.Web do
...
get("/:provider", AuthController, :request)
...
end
Sounds like a misconfiguration, @tonnenpinguin feel free to reopen, if this is still a problem
After updating ueberauth from 0.6.1 to 0.6.2 the authentication requests for all providers (identity, facebook, google) stopped working and I started seeing the following error message.
This was quite hard to debug because everything worked normally as long as the individual apps all run on the root path (e.g. localhost:4000/). In production I am adding an additional path configuration in the phoenix configuration (--> localhost:4000/auth/) and this is when things seem to stop working.
Downgrading back to 0.6.1 gets everything back to working order.
Is there any config/path settings I have to change in order for this to work as before again?