hashicorp / hashicorp/nomad

Confusing UI sign in with OIDC on 1.7.4

Open
#19,973 5 comments 1 reaction 1 assignee Claimed by @philrenaud View on GitHub
stage/accepted theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
`1.7.4+ent`

### Issue

We use OIDC + Okta for SSO and after upgrading to 1.7.4 I get a rather confusing experience from the UI upon sign in.

### Reproduction steps

I'm attaching some screenshots as it's easier to explain this way:
![Screenshot 2024-02-14 at 09 27 04](https://github.com/hashicorp/nomad/assets/89834752/7d2cea6a-674b-4c76-887d-90087a039ff9)
Click on Sign In
![Screenshot 2024-02-14 at 09 27 32](https://github.com/hashicorp/nomad/assets/89834752/03820a15-6202-485c-938c-aa12f87637a5)
Click on Sign in with okta
![Screenshot 2024-02-14 at 09 28 02](https://github.com/hashicorp/nomad/assets/89834752/7c32225b-c1ac-4a52-b158-ce7e8ce3ff25)
Refresh the page:
![Screenshot 2024-02-14 at 09 28 30](https://github.com/hashicorp/nomad/assets/89834752/2615c668-2606-43c5-b509-c0d29018696e)

#### Expected Result

The user clearly understands whether he's logged in or not and is displayed all policies and roles attached to his token.

#### Actual Result

The user gets displayed a page with a "Token not found" error, an info message saying "Token Authenticated!" but the Sign In button is still present in the upper right corner. This is very confusing from a user point of view.

### Job file (if appropriate)

I can share the auth method configuration if that can help troubleshooting this issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.