[openstreetmap/openstreetmap-website] Allow HTTP to localhost on list of redirect URIs for OAuth2 applications (Issue #3613)
mmd
notifications at github.com
Sun Jul 24 21:28:51 UTC 2022
I just checked my local (development) installation, and I could set http://localhost:3000 as callback URL without any issue. Looking at config/initializers/doorkeeper.rb, we explicitly disable the https requirement, when you run the site in development mode:
```ruby
force_ssl_in_redirect_uri do |uri|
!Rails.env.development? && uri.host != "127.0.0.1"
end
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3613#issuecomment-1193397491
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3613/1193397491 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220724/796f57f4/attachment.htm>
More information about the rails-dev
mailing list