]> git.openstreetmap.org Git - rails.git/commit
Add query parameter that to suppress display of signup UI elements
authorSimon Poole <simon@poole.ch>
Sun, 7 Jun 2026 10:00:57 +0000 (10:00 +0000)
committerSimon Poole <simon@poole.ch>
Tue, 9 Jun 2026 17:38:45 +0000 (17:38 +0000)
commitc5ac15eb1b03eef5afe8b510c0bfbc50aa39e315
treebc418d4abc0a88d69d3a064122e582e9dec77152
parent5a7e994a3babd7f3d88d35bd26e4f2296311cc5f
Add query parameter that to suppress display of signup UI elements

This adds support for a query paramater "allow_signup" that will
suppress the rendering of signup UI elements during the OAuth2
authorisation flow.

This is the same solution as github implements for their "webflow"
OAuth2 process.

Resolves https://github.com/openstreetmap/openstreetmap-website/issues/5118
app/controllers/concerns/session_methods.rb
app/views/layouts/_header.html.erb
app/views/layouts/site.html.erb
app/views/sessions/new.html.erb
test/integration/oauth2_test.rb