<p></p>
<p>For anyone reading this and scratching their heads what this discussion is all about.<br>
I tried to work out the feasibility of an end-to-end sign up process using Discourse and the Rails port, i.e.</p>
<ul>
<li>installing discourse</li>
<li>registering a new OAuth 2 client on Rails for Discourse application</li>
<li>configuring the oauth2-basic plugin on Discourse</li>
<li>Sign up as new user on Discourse, which includes logging in via the Rails port via OAuth2, and redirect back to Discourse</li>
<li>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).</li>
<li>profit!</li>
</ul>
<p>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.</p>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1408#issuecomment-712749783">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOYMN7XAZLWJGTDSDLSLVP2VANCNFSM4C3VTPOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLKCWFIZQMK7MFOG77TSLVP2VA5CNFSM4C3VTPOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJ53FVY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1408#issuecomment-712749783",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1408#issuecomment-712749783",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>