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

Support for Google and Facebook logins #27

Open
mycaule opened this issue Dec 20, 2017 · 6 comments
Open

Support for Google and Facebook logins #27

mycaule opened this issue Dec 20, 2017 · 6 comments

Comments

@mycaule
Copy link

mycaule commented Dec 20, 2017

Nice feature to have, it will broaden your community since lots of users have Google and Facebook accounts.

Both provide OAuth2 API for logins.

You can even write on Google Drive as a backend.

@joyously
Copy link

Isn't the login specifically tied to the storage backend?
I doubt that login would work for controlling access to other pages.

@mycaule
Copy link
Author

mycaule commented Dec 20, 2017

On Bloomberg Watchlist, you can login via Facebook and the data is stored on their backend using your Facebook ID.

Despite being a good workflow, it can be a bit complicated. The data might be stored in Bloomberg databases with the user Facebook ID attached to it.

You also need a Facebook App that the user authorize during first login.

Most professional apps with social logins use that workflow.

@LeaVerou
Copy link
Member

LeaVerou commented Dec 20, 2017

Yup, as @joyously mentioned, in Mavo the login is tied to the storage backend. There are backends however that support multiple logins, Firebase being a prime example, so I believe it could already work if you use Firebase.

I do want to support Google Drive at some point, I even started coding it long before Mavo was released, then got fed up with its API and trying to get it to work cross-origin and gave up.

Regarding Facebook, it's a bit trickier to figure out a place to store the data. A hack could be to store it in a hidden post, but I'm sure there are length limits. Also I'm not sure if its API is CORS-enabled and supports unauthenticated requests, both necessary for building anything reasonable with an API + Mavo.

@karger
Copy link
Collaborator

karger commented Dec 20, 2017 via email

@mycaule
Copy link
Author

mycaule commented Dec 20, 2017

Signing in the Bloomberg Facebook app, an app that Bloomberg host on Facebook servers.

@efeichen
Copy link
Contributor

Hey @mycaule, if you are looking for a Google Drive backend, I recently created one and it just got added to the plugin directory. You can check it out here. Feel free to try it out and open an issue! 🙂

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

5 participants