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

Force auto redirect to the identity provider login page #44

Closed
olivier-jobert opened this issue Jun 18, 2020 · 1 comment
Closed

Force auto redirect to the identity provider login page #44

olivier-jobert opened this issue Jun 18, 2020 · 1 comment
Assignees
Milestone

Comments

@olivier-jobert
Copy link

Hello,

do you plan to add a feature to force auto redirect to the identity provider login page instead of showing the default SonarQube login page (where Log in with OpenID button is displayed when your plugin is activated) ?

For the moment, I use the sonar.forceAuthentication option to force redirect non logged user to the SonarQube login page but I would be able to had a parameter that allow to force redirect to login page of a chosen IdP.

Thanks

@tjuerge tjuerge self-assigned this Aug 22, 2021
@tjuerge
Copy link
Contributor

tjuerge commented Aug 22, 2021

The new Auto-Login servlet only works in combination with "Force user authentication" (property sonar.forceAuthentication). The Servlet redirects from SonarQube's login page automatically to the identity provider's login page. If Auto-Login is enabled then no logout from SonarQube is possible anymore. This is because SQ's logout redirects to the login page which triggers Auto-Login.

To manually login (e.g. as an administrator) Auto-login can be temporarily disabled by using the URL <sonarServerBaseURL>/?auto-login=false in a new browser session (without cookie from previous SonarQube login).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants