hashicorp / hashicorp/consul

Redirect to primary DC upon logout

Open
#11,649 1 comment 0 reactions 0 assignees View on GitHub
needs-discussion theme/ui type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

### Overview of the Issue

We have OIDC Auth method in the primary DC and global replication of the tokens.
If we then change to a secondary DC and logout and then try to login again it tries to login to the secondary DC which doesn't have any OIDC auth method.

We would like it so it redirects to the primary DC upon logout.

### Reproduction Steps

Steps to reproduce this issue/view the area for improvement, eg:

1. Login to the UI using OIDC
1. Change DC and then logout
1. Click the Log in button and no OIDC option is available

### Describe the solution you'd like

After logout the user should be redirected to the primary DC.

### Consul Version

1.10.4+ent

### Browser and Operating system details

Chrome, Version 94.0.4606.54 (Official Build) (64-bit), Arch Linux

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the logout flow: authenticate with OIDC, switch to a secondary data center, log out, and select Log in. Trace how the UI chooses the data center after logout and verify that completion redirects to the primary data center, where the OIDC option is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.