dreamfactorysoftware / df-oauth

OAuth support for DreamFactory 2.0
Apache License 2.0
6 stars 8 forks source link

Google OAuth fails with {"error":{"code":500,"message":"Undefined index: id"}} #31

Open play-io opened 3 years ago

play-io commented 3 years ago

Version: bitnami/dreamfactory:4.4.0

What was done:

  1. OAuth2 application was created at Google. 1.1. Redirect url: https://my-host/dreamfactory/dist/index.html?service=google (my-host is changed value)
  2. Google OAuth service was created at DF with name: google. Redirect url: https://my-host/dreamfactory/dist/index.html?service=google

Expected result:

Actual result:

We session details: Call from google https://my-host/api/v2/user/session?oauth_callback=true&service=google&state=tmclDBCGoJaDaueXr5k4PM1alFZOoOrWUi4nfJOj&code=4%2F0AY0e-g5oZ1v6OWfaOpQ983SssvUqBWA_gPFj-PYDxEI60qyBaX6bGBS1e6rRSR571H8ipg&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=0&....

ends with 500, "{"error":{"code":500,"message":"Undefined index: id"}}"

malihassan20 commented 2 years ago

@play-io are you able to resolve this issue?