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

Ensure token auth can be configured while oauthLoginURI is defined. #6557

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

absoludity
Copy link
Contributor

Description of the change

When switching from a container to a component with hooks, I missed that the prop was passed from the container as:

   oauthLoginURI: authProxyEnabled ? oauthLoginURI : "",

but with the component the oauthLoginURI was always defined.

Benefits

Can configure token auth again

Possible drawbacks

Applicable issues

Additional information

@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 937e0ef
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64cb07f3a30ed200088744ff

@@ -39,6 +38,7 @@ export const initialState = {
kubeappsNamespace: "kubeapps",
helmGlobalNamespace: "kubeapps-repos-global",
carvelGlobalNamespace: "kapp-controller-packaging-global",
oauthLoginURI: "/oauth/login",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I set this in our default state so to trigger the failures in the tests that should have caught it. Lesson: always use default settings in tests that match your prod default settings.

@absoludity absoludity merged commit d199023 into main Aug 3, 2023
38 checks passed
@absoludity absoludity deleted the token-login-fix branch August 3, 2023 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants