Merge pull request #4737 from Yetangitu/explicit_oidc_autolaunch
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
Run Component Tests / Run Component Tests (push) Has been cancelled

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
}