[openstreetmap/openstreetmap-website] OAuth2 support? (#1408)
mmd
notifications at github.com
Tue Oct 20 10:19:22 UTC 2020
For anyone reading this and scratching their heads what this discussion is all about.
I tried to work out the feasibility of an end-to-end sign up process using Discourse and the Rails port, i.e.
* installing discourse
* registering a new OAuth 2 client on Rails for Discourse application
* configuring the oauth2-basic plugin on Discourse
* Sign up as new user on Discourse, which includes logging in via the Rails port via OAuth2, and redirect back to Discourse
* make sure that Discourse can fetch all details for the new user from our new JSON format user/details endpoint (this includes user id and display_name + avatar image url).
* profit!
I added about 30 lines of code in Rails to the application controller, define a new CanCanCan capability, and add proper redirect to our login page for doorkeeper. That's all demo / throw away code anyway, so it doesn't really matter anyway if there's a bit of duplication here. 30 lines will never suffice for a production ready implementation, no doubt about that.
My focus was to find out if the end-to-end process will eventually work, and we're not missing any important bits nobody thought about before. Quite a different focus, after all. As the end-to-end demo turned out to successful, I'm confident to get this running at some point in the future.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1408#issuecomment-712749783
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201020/7a303d0c/attachment.htm>
More information about the rails-dev
mailing list