datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
87 stars 12 forks source link

R&D: Single sign-on / external authorization services #26

Closed hancush closed 1 year ago

hancush commented 5 years ago

We're plugging our suite of BGA news apps into single sign-on provider Auth0. More broadly, it's nice when you can leverage an existing account to log into new services. Log thoughts on Auth0, as well as any other external authorization services, here.

N.b., @jeancochrane actually kicked off this convo with "Four Dealbreakers in Netlify Identity", out of #6.

hancush commented 5 years ago

Auth0

First impressions

Auth0 is a serverless identity management platform that allows users to maintain their own central user store or leverage social login, all from a pretty attractive UI.

Pros

Cons

I'm sure more things will shake out as we continue to develop with Auth0, but I have to say, I'm impressed at how little time it took to get rolling.

@jeancochrane, you mentioned you've had experience with Auth0, as well. It'd be great to get your thoughts on this, or any other services on your radar.

hancush commented 4 years ago

A brief update on the Auth0 thread: I stand by Auth0 being a nice tool for greenfield projects. It's pretty simple to set up and configure, and it offers a lot of functionality (including social authentication, e.g., via Google) out of the box. If you don't mind their interface, and you don't need to migrate users, Auth0 is a solid option.

However, integrating Auth0 with a legacy user store has proven quite difficult to achieve. There are several options for doing so:

More here: https://auth0.com/docs/connections/database/custom-db/templates

It's also worth noting that it's very difficult to debug the custom Node.js scripts. They provide a facility for testing the scripts in the dashboard, however it's difficult to get anything other than a red/green indicator – neither console.log nor debugger statements seem to have any effect.

So, at this point in time, I wouldn't consider it a great option where user migration is involved – unless you want to write custom code to circumvent the shortcomings of the trickle strategy, which quite defeats the purpose of leveraging an existing service, IMO.

Semi-unrelatedly, if we were to adopt a tool for SSO, social authentication is one of my hard requirements. It strikes me that we wouldn't have a migration problem if we'd allowed users to leverage an existing profile in the first place.

smcalilly commented 1 year ago

closed in favor of #240