Correct OIDC mode handling in restricted app.

This commit is contained in:
Leo Vasanko
2026-02-16 23:38:23 +00:00
parent bcecb390e1
commit ce68af5be3
2 changed files with 19 additions and 3 deletions
+7 -2
View File
@@ -66,7 +66,7 @@ const props = defineProps({
mode: {
type: String,
default: 'login',
validator: (value) => ['login', 'reauth', 'forbidden'].includes(value)
validator: (value) => ['login', 'reauth', 'forbidden', 'oidc'].includes(value)
},
oidcQueryString: {
type: String,
@@ -275,7 +275,12 @@ watch(initializing, (newVal) => {
onMounted(async () => {
await fetchSettings()
await validateSession()
// OIDC mode doesn't depend on session state - skip validation
if (props.mode !== 'oidc') {
await validateSession()
} else {
currentView.value = 'login'
}
initializing.value = false
// Add click handler for inline links