mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-11-10 01:19:37 +01:00
Merge pull request #4737 from Yetangitu/explicit_oidc_autolaunch
Explicitly launch OpenID Connect authentication with ?autoLaunch=1
This commit is contained in:
commit
f0acbb2e81
@ -299,8 +299,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (authMethods.includes('openid')) {
|
if (authMethods.includes('openid')) {
|
||||||
// Auto redirect unless query string ?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') {
|
if ((this.authFormData?.authOpenIDAutoLaunch && this.$route.query?.autoLaunch !== '0') || this.$route.query?.autoLaunch == '1') {
|
||||||
window.location.href = this.openidAuthUri
|
window.location.href = this.openidAuthUri
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user