[openstreetmap/openstreetmap-website] Add localhost to allowed http redirect_uris for OAuth (PR #4287)
Sam
notifications at github.com
Tue Oct 24 12:40:18 UTC 2023
## Further context to understand the use case
- I am developing an application that uses OSM OAuth for login.
- During development I manage my services in containers.
- There is an Nginx reverse proxy that sits in front and proxies services to domains like:
```
app.localhost --> frontend
backend.app.localhost --> backend
s3.app.localhost --> minio
service3.app.localhost --> service3
```
- I need to be able to set the redirect URL in the OpenStreetMap settings to `http://app.localhost/oauth`, which loops back to 127.0.0.1.
## Current workaround
- I get around this by binding the port for the app to my host machine localhost, e.g. `-p 7050:7050`.
- I then set the redirect URL to http://127.0.0.1:7050.
- The service is accessible via http://app.localhost, but the login redirects to http://127.0.0.1 and it still works.
## Steps forward
By the sounds of it there is no interest in proceeding with this PR.
If the extra context has helped clarify why this is useful, then I will happily update the PR to include redirect urls that end in `.localhost`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4287#issuecomment-1777127844
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4287/c1777127844 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231024/ce87a8c0/attachment-0001.htm>
More information about the rails-dev
mailing list