Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

[Question] Is there any way to use Google auth with SPA? #875

Open
husudosu opened this issue Mar 30, 2022 · 1 comment
Open

[Question] Is there any way to use Google auth with SPA? #875

husudosu opened this issue Mar 30, 2022 · 1 comment

Comments

@husudosu
Copy link

I have a SPA application in Vue and using Flask backend with Flask-Security-Too. The auth with username & password works correctly, but I'd like to add Google handling to app (later Facebook too).
I imagine something like:

  • On my Vue frontend the user clicks on "Login with Google"
  • The frontend passes the userdata (e-mail, name, avatar, id etc...) for backend,
  • I save the recievied data on backend, and return session data for frontend (I'm not sure about this)
    What's the best and safest way to implement this with Flask-Security-Too?

Thanks in advance!

@jwag956
Copy link
Collaborator

jwag956 commented Mar 30, 2022

Please ask this question over here: https://github.com/Flask-Middleware/flask-security/discussions
The short answer is that flask-security-too doesn't currently support that out of the box - however
you might start here: https://docs.authlib.org/en/latest/client/flask.html

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

No branches or pull requests

2 participants