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

JWT and Social Login Authentication #85

Open
Danil0v3s opened this issue Jun 12, 2018 · 0 comments
Open

JWT and Social Login Authentication #85

Danil0v3s opened this issue Jun 12, 2018 · 0 comments

Comments

@Danil0v3s
Copy link

I'm trying to build a Spring Boot application that uses only Google and Facebook login and generate JWT tokens. This application will serve as a back-end for my app. I already have it running on NodeJS but I wanted to learn more about Spring Boot since it can be coded using Kotlin. The flow I'm using in my NodeJS server is the following:

  1. The user selects Facebook Login on the app and goes to facebook and it returns a Token;
  2. The app sends a request to the server in '/login/facebook' passing the Token somehow;
  3. The server checks if that token is valid by calling the Graph API '/me' request;
  4. If it's valid, then creates a new user, store it, authenticate and generate a JWT and send back to user.

But my problem is that I don't know what to search to achieve that. I don't want to someone to code everything for me and just send me the link, that would be great, but I want to learn, I'd like to know the steps I must take to make that work. Thanks in advance

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

No branches or pull requests

1 participant