Correct OIDC mode handling in restricted app.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user