Reputation: 1623
I am developing web application in React and Django(Rest Framework)., i want to users can login with google account
.,
I approach i followed is implicit grant flow
.,where i get the access token
in the front end., and sent the access token to the back-end. then the back-end should verify the access token with google
., and return the new jwt token
for future requests. once the user logged out., same cycle continues.,
By My client don't want repeat the same implicit grant flow
for other devices(mobile for example)., they want authentication
to be handled entirely by back-end. so i am planning to use code exchange flow
.
the approach i am planning.
callback url
.In the above approach the connection between client and server is broke in step 3., how to we know the back-end got the access-token. user logged in?
Upvotes: 0
Views: 115