Skip to content
Snippets Groups Projects
Commit f8671e4c authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre Committed by GitLab Release Tools Bot
Browse files

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

Downcase aliased OAuth2 callback providers

Closes #57156

See merge request gitlab-org/gitlab-ce!24877

(cherry picked from commit 5f964567)

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