<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/5842757?s=20&v=4" /><strong>mmd-osm</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6038#issuecomment-2907897889">(openstreetmap/openstreetmap-website#6038)</a></div>
<p dir="auto">Regarding the <code class="notranslate">preferred_auth_provider</code>, I was looking for the exact URL to trigger the different layout. It seems I need to include this parameter along with the respective auth provider in the referer parameter:</p>
<ul dir="auto">
<li><a href="http://localhost:3000/user/new?referer=%2F%3Fpreferred_auth_provider%3Dgithub" rel="nofollow">http://localhost:3000/user/new?referer=%2F%3Fpreferred_auth_provider%3Dgithub</a></li>
<li><a href="http://localhost:3000/login?referer=%2Fuser%2Fnew%3Fpreferred_auth_provider%3Dgithub" rel="nofollow">http://localhost:3000/login?referer=%2Fuser%2Fnew%3Fpreferred_auth_provider%3Dgithub</a></li>
</ul>
<p dir="auto">I couldn't figure out from the lengthy discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2064057773" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4455" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4455/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4455">#4455</a>, if that's really the way this is supposed to work. Alternatives like <a href="https://www.openstreetmap.org/login?preferred_auth_provider%3Dgithub" rel="nofollow">https://www.openstreetmap.org/login?preferred_auth_provider%3Dgithub</a> don't appear to be right.</p>
<p dir="auto">A comment in session_methods.rb seems to indicate that this parameter should be piggybacked into the referrer of the oauth2 authorisation request. Oh well...</p>
<p dir="auto">For both URLs I've mentioned, Sign up and Login page layout looks ok to me. I think that's good enough for now.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/ff6e1e18-8cb7-40a8-a32b-22b6830cebe3">image.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/94f64786-7f1b-41dc-923d-88174cf3dee3">image.png (view on web)</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6038#issuecomment-2907897889">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMALLXLZKS53U4ICND3AHPJNAVCNFSM6AAAAAB5WMELHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBXHA4TOOBYHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPSUVUYKITNGIDMAXD3AHPJNA5CNFSM6AAAAAB5WMELHCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVNKMACC.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6038/c2907897889</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6038#issuecomment-2907897889",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6038#issuecomment-2907897889",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>