rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 349 forks source link

Document how to add other OAuth providers #271

Open timothyclemansinsea opened 8 years ago

timothyclemansinsea commented 8 years ago

I want to support both Socrata and CartoDB. I need documentation on how to add other OAuth providers like these two.

riyadhalnur commented 8 years ago

You would have to implement an OAuth flow for the services you want. You can look at existing ones here https://github.com/rethinkdb/horizon/tree/next/server/src/auth. Having said that, I don't think Socrata or CartoDB are OAuth providers but I might be wrong.

timothyclemansinsea commented 8 years ago

I made the ticket in response to " mglukhov https://rethinkdb.slack.com/team/mglukhov _[9:23 AM]_ https://rethinkdb.slack.com/archives/horizon/p1461082999000387 ok. we don’t support those yet, but horizon is extensible, so it would be good to add other services as add-ons. you should open an issue on how to add other oauth providers (in general). github.com/rethinkdb/horizon/issues "

Socrata and CartoDB are OAuth providers: https://dev.socrata.com/docs/authentication.html and https://github.com/CartoDB/cartodb/wiki/OAuth-example

On Tue, Apr 19, 2016 at 9:50 AM, Riyadh Al Nur notifications@github.com wrote:

You would have to implement an OAuth flow for the services you want. You can look at existing ones here https://github.com/rethinkdb/horizon/tree/next/server/src/auth. Having said that, I don't think Socrata or CartoDB are OAuth providers but I might be wrong.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rethinkdb/horizon/issues/271#issuecomment-212012592

riyadhalnur commented 8 years ago

Ok, thanks for the clarification. So as i mentioned, you would have to implement the OAuth flow for these 2 services.