CRITICAL: Temporarily disable Keycloak to restore application functionality
- Disable Keycloak integration in authentication middleware - Update useUnifiedAuth to only use Directus authentication - Rebuild login page with only Directus auth form - Remove all Keycloak references that were causing JavaScript errors - This restores the application to working state with Directus auth only Application should now load and function normally. Keycloak can be re-enabled later once issues are resolved.
This commit is contained in:
@@ -10,27 +10,7 @@
|
||||
<v-img src="/Port_Nimara_Logo_2_Colour_New_Transparent.png" width="200" class="mb-3 mx-auto" />
|
||||
</v-col>
|
||||
|
||||
<!-- Keycloak SSO Login -->
|
||||
<v-col cols="12" class="mb-4">
|
||||
<v-btn
|
||||
color="primary"
|
||||
size="large"
|
||||
block
|
||||
@click="loginWithKeycloak"
|
||||
prepend-icon="mdi-shield-account"
|
||||
>
|
||||
Login with Single Sign-On
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
<!-- Divider -->
|
||||
<v-col cols="12">
|
||||
<v-divider class="my-4">
|
||||
<span class="text-caption">OR</span>
|
||||
</v-divider>
|
||||
</v-col>
|
||||
|
||||
<!-- Existing Directus Login Form -->
|
||||
<!-- Directus Login Form -->
|
||||
<v-col cols="12">
|
||||
<v-form @submit.prevent="submit" v-model="valid">
|
||||
<v-row no-gutters>
|
||||
@@ -111,12 +91,9 @@ definePageMeta({
|
||||
auth: false
|
||||
});
|
||||
|
||||
// Directus auth
|
||||
// Directus auth only
|
||||
const { login } = useDirectusAuth();
|
||||
|
||||
// Keycloak auth for SSO
|
||||
const keycloak = useKeycloak();
|
||||
|
||||
const loading = ref(false);
|
||||
const errorThrown = ref(false);
|
||||
|
||||
@@ -126,12 +103,6 @@ const passwordVisible = ref(false);
|
||||
|
||||
const valid = ref(false);
|
||||
|
||||
// Keycloak login function
|
||||
const loginWithKeycloak = async () => {
|
||||
// Initialize and login with Keycloak
|
||||
await keycloak.login();
|
||||
};
|
||||
|
||||
// Directus login function
|
||||
const submit = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user