Merge pull request #4737 from Yetangitu/explicit_oidc_autolaunch

Explicitly launch OpenID Connect authentication with ?autoLaunch=1
This commit is contained in:
advplyr 2025-10-09 17:08:51 -05:00 committed by GitHub
commit f0acbb2e81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -299,8 +299,8 @@ export default {
}
if (authMethods.includes('openid')) {
// Auto redirect unless query string ?autoLaunch=0
if (this.authFormData?.authOpenIDAutoLaunch && this.$route.query?.autoLaunch !== '0') {
// Auto redirect unless query string ?autoLaunch=0 OR when explicity requested through ?autoLaunch=1
if ((this.authFormData?.authOpenIDAutoLaunch && this.$route.query?.autoLaunch !== '0') || this.$route.query?.autoLaunch == '1') {
window.location.href = this.openidAuthUri
}