Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: OIDC with hcp flag #11283

Merged
merged 2 commits into from
Apr 7, 2021
Merged

Bug Fix: OIDC with hcp flag #11283

merged 2 commits into from
Apr 7, 2021

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Apr 6, 2021

There was an issue using OIDC when coming from a Vault HCP cluster. This PR fixes that by adding a conditional using the feature-flag service.

Tested locally by flipping the flag.

@vercel vercel bot temporarily deployed to Preview – vault April 6, 2021 14:38 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 6, 2021 14:45 Inactive
@@ -131,7 +132,7 @@ export default Component.extend({
// The namespace can be either be passed as a query paramter, or be embedded
// in the state param in the format `<state_id>,ns=<namespace>`. So if
// `namespace` is empty, check for namespace in state as well.
if (namespace === '') {
if (namespace === '' || this.featureFlagService.managedNamespaceRoot) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see here in code for what this returns.

@Monkeychip Monkeychip added this to the 1.7 milestone Apr 6, 2021
@Monkeychip Monkeychip added ui bug Used to indicate a potential bug labels Apr 6, 2021
@austingebauer austingebauer self-requested a review April 7, 2021 13:39
Copy link
Contributor

@austingebauer austingebauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@Monkeychip Monkeychip merged commit 97c99ce into master Apr 7, 2021
@Monkeychip Monkeychip deleted the ui/oidc-hcp-fix branch April 7, 2021 16:46
Monkeychip added a commit that referenced this pull request Apr 7, 2021
* add conditional

* add changelog
Monkeychip added a commit that referenced this pull request Apr 7, 2021
* add conditional

* add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants