diff --git a/client/pages/login.vue b/client/pages/login.vue
index 35e00726e..9526b4999 100644
--- a/client/pages/login.vue
+++ b/client/pages/login.vue
@@ -15,7 +15,7 @@
-
@@ -31,7 +31,8 @@ export default {
error: null,
processing: false,
username: '',
- password: null
+ password: null,
+ ssoAvailable: false
}
},
watch: {
@@ -143,10 +144,19 @@ export default {
})
}
}
+ },
+ async checkSSO() {
+ const res = await fetch("/oidc/login", {mode: "no-cors"})
+ if (res.status >= 400 && res.status < 600) {
+ this.ssoAvailable = false
+ return
+ }
+ this.ssoAvailable = true
}
},
mounted() {
this.checkAuth()
+ this.checkSSO()
}
}
\ No newline at end of file