[openstreetmap/openstreetmap-website] Welcome page interrupts Oauth authorization flow for newly created OSM accounts (Issue #4246)

Anton Khorev notifications at github.com
Wed Nov 8 17:28:54 UTC 2023


Web app opens a popup window:
https://github.com/osmlab/osm-auth/blob/8744617fa7f318e769c39e0e314c4fe537d26ec6/src/osm-auth.mjs#L133

and sets up a callback for it:
https://github.com/osmlab/osm-auth/blob/8744617fa7f318e769c39e0e314c4fe537d26ec6/src/osm-auth.mjs#L195

When the redirect landing page is reached in the popup window, the callback is invoked on the opener window:
https://github.com/osmlab/osm-auth/blob/8744617fa7f318e769c39e0e314c4fe537d26ec6/land.html#L5

If another window gets to the redirect landing page, there's no opener with the callback.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4246#issuecomment-1802343046
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/4246/1802343046 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231108/a67438e0/attachment.htm>


More information about the rails-dev mailing list