mmd-osm left a comment (openstreetmap/openstreetmap-website#6038)
Regarding the `preferred_auth_provider`, 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:
* http://localhost:3000/user/new?referer=%2F%3Fpreferred_auth_provider%3Dgithub
*
http://localhost:3000/login?referer=%2Fuser%2Fnew%3Fpreferred_auth_provider%3Dgithub
I couldn't figure out from the lengthy discussion in #4455, if that's really
the way this is supposed to work. Alternatives like
https://www.openstreetmap.org/login?preferred_auth_provider%3Dgithub don't
appear to be right.
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...
For both URLs I've mentioned, Sign up and Login page layout looks ok to me. I
think that's good enough for now.


--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6038#issuecomment-2907897889
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6038/c2907897...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev