Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue trying to link slim+oauth2+facebook login #12

Open
tsmgeek opened this issue Nov 8, 2017 · 0 comments
Open

Issue trying to link slim+oauth2+facebook login #12

tsmgeek opened this issue Nov 8, 2017 · 0 comments

Comments

@tsmgeek
Copy link

tsmgeek commented Nov 8, 2017

I am not sure which dependency would be best to put this but it could make a good example.

I have a API which is secured using this library, all well and good if user exists in the oauth users table, issue comes when I want to auth a user via social login which will be for an app I am developing.

  1. tell user to go to FB auth
  2. user auths request and is redirected back to API (or just gets the return code)
  3. return code is supplied to API and I use Facebook SDK to confirm its all good and register user if does not already exist
  4. now problem is how do I return an access token to the client based on the user in question that has been validated via social login.

In a session based system all is good but the api should be stateless, rather relying on oauth tokens.
This is something that seems to be lacking in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants