Commit 5f964567 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'sh-fix-oauth2-callback-caps' into 'master'

Downcase aliased OAuth2 callback providers

Closes #57156

See merge request gitlab-org/gitlab-ce!24877
parents 2b0f4df0 1f188236
---
title: Downcase aliased OAuth2 callback providers
merge_request: 24877
author:
type: fixed
# Alias import callbacks under the /users/auth endpoint so that # Alias import callbacks under the /users/auth endpoint so that
# the OAuth2 callback URL can be restricted under http://example.com/users/auth # the OAuth2 callback URL can be restricted under http://example.com/users/auth
# instead of http://example.com. # instead of http://example.com.
Devise.omniauth_providers.each do |provider| Devise.omniauth_providers.map(&:downcase).each do |provider|
next if provider == 'ldapmain' next if provider == 'ldapmain'
get "/users/auth/-/import/#{provider}/callback", to: "import/#{provider}#callback", as: "users_import_#{provider}_callback" get "/users/auth/-/import/#{provider}/callback", to: "import/#{provider}#callback", as: "users_import_#{provider}_callback"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment