SignIn / SignUp with Google auth code via REST

300 views Asked by At

I am working on the backend for our two applications, which require sign-in and sign-up with a google account via REST - SPA app in Vue and Angular app.

I am thinking about this flow: enter image description here

  1. User from SPA or mobile application will log in google auth server with his credentials
  2. App receive auth code from google
  3. App request for sign-in / sign-up with this code to our auth service
  4. Auth service fetch information about the user from google by this token, and generate jwt token for our SPA / mobile app which return back

Can you tell me if Spring Social module provides some endpoints to handle and generate this tokens via REST or I must implement it by myself? Thank you.

0

There are 0 answers