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

Allow to bypass the oauth loading page #2149

Merged
merged 3 commits into from
Nov 9, 2020
Merged

Allow to bypass the oauth loading page #2149

merged 3 commits into from
Nov 9, 2020

Conversation

andresmgot
Copy link
Contributor

Description of the change

As per #2109, allow users to configure Kubeapps so it skips the login/welcome page and redirect directly to the OAuth login URI.

To use it, a value is exposed in the chart: --set authProxy.skipKubeappsLoginPage=true.

Applicable issues

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Nice, thanks.

@@ -1,6 +1,6 @@
apiVersion: v1
name: kubeapps
version: 4.0.4
version: 4.0.5
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe land this after @antgamdia 's PR with the ClusterRole, so they're both included in the chart update (once you've reviewed his).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, @antgamdia changes cannot be used until the new endpoint (/refresh) is available so the change in the chart is not going to be usable yet.

} else {
dispatch(setAuthenticated(false, false, ""));
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps just

return isAuthed;

instead?

mount(<LoginForm {...defaultProps} checkCookieAuthentication={checkCookieAuthentication} />);
expect(checkCookieAuthentication).not.toHaveBeenCalled();
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this was already been covered in the tests under "oauth login form" (sorry I forgot to mention that).

Andres Martinez Gotor added 2 commits November 9, 2020 10:23
@andresmgot andresmgot merged commit a4d79be into master Nov 9, 2020
@andresmgot andresmgot deleted the skipOauthLogin branch November 26, 2020 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip the user login page when OIDC is used
2 participants