Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,330
    • Merge requests 1,330
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #208465
Closed (duplicated) (duplicated)
Open
Issue created Feb 28, 2020 by Aric Buerer@abuerer1Contributor

Geo secondary node redirects to primary when OAuth provider is configured

Summary

When an OAuth provider is configured for the secondary node, it is not used. Instead, the user is still redirected to the primary node to authenticate.

Steps to reproduce

  1. Configure an OAuth provider in gitlab.rb on the secondary node (I tested with Crowd)
  2. Navigate to the URL of the secondary node. You are redirected to the primary node to authenticate

What is the current bug behavior?

When an OAuth provider is configured for the secondary node, it is not used. Instead, the user is still redirected to the primary node to authenticate.

What is the expected correct behavior?

You should authenticate with the OAuth provider configured in the secondary node. You should not be redirected to the primary node.

Possible fixes

Add a check here to see if an OAuth provider has been configured on the secondary node: https://gitlab.com/gitlab-org/gitlab/-/blob/v12.8.1-ee/ee/app/controllers/ee/sessions_controller.rb#L16

Customer ticket: https://gitlab.zendesk.com/agent/tickets/147539 (internal use)

Slack discussion: https://gitlab.slack.com/archives/C32LCGC1H/p1582913184133200

Edited Mar 02, 2020 by Aric Buerer
Assignee
Assign to
Time tracking