I am not able to follow this workflow here. What I have done so far:
- created a service for Google and Facebook OAuth
- created a role which has access rights for everything
What do I want to achieve?
One of these:
- Login in Dreamfactory with FB or Google
- Login in the demo app
- Access SOMETHING like …/api/v2/user/session
In the redirected url the adress contains infos like code and state session_state and authuser=0. But I am not logged in.
In my opinion, when I got redirected back to DF after granting the request in Google, DF should take the grant token and exchange it in an access token, which does not seem to happen.
Also the curl example above is not working for me.The first three steps are easy, but how do I login in in Facebook or Google with curl? I have taken the Google Location and used it in a browser, acceprted it and have taken the code from there and continued with the next crul step, but same result, I have no access to …/api/v2/user/session?service=google, DF complains that no session is set in this case.
Any advice what I can check for using OAuth in DF to give access rights to users? Just some mor Infos I am using the Bitnami stack of DF 2.1 and I have not configured any “Service Definition” with Swagger. I am sticking to the Facebook docu and to to posted comments on this page.