ueberauth / ueberauth_google

Google OAuth2 Strategy for Überauth.
MIT License
164 stars 85 forks source link

Does not work with Google Identity Service #84

Open luka-TU opened 3 years ago

luka-TU commented 3 years ago

The library does not seem to work with the rather new (Google Identity Service)[https://developers.google.com/identity/gsi/web/guides/overview].

Example of the callback request:

[info] POST /auth/google/callback
[debug] Processing with AppWeb.OauthController.callback/2
  Parameters: %{"clientId" => "xyz", "credential" => "jwt_from_google", "g_csrf_token" => "123123213", "provider" => "google", "select_by" => "btn"}
  Pipelines: [:browser]
%Plug.Conn{
  adapter: {Plug.Cowboy.Conn, :...},
  assigns: %{current_user: nil},
  body_params: %{
    "clientId" => "xyz",
    "credential" => "jwt_from_google",
    "g_csrf_token" => "1213123",
    "select_by" => "btn"
  },
  cookies: %{

So it seems nothing gets parsed and assigned to the conn.