FEAT: Implement Keycloak client with circuit breaker and retry logic for improved authentication resilience

This commit is contained in:
2025-06-17 14:50:34 +02:00
parent d436367ee6
commit 04ed9a094d
7 changed files with 598 additions and 72 deletions

View File

@@ -67,8 +67,24 @@ const errorMessage = ref('');
// Check for error in query params
const route = useRoute();
onMounted(() => {
if (route.query.error === 'auth_failed') {
errorMessage.value = 'Authentication failed. Please try again.';
const error = route.query.error as string;
if (error) {
switch (error) {
case 'auth_failed':
errorMessage.value = 'Authentication failed. Please try again.';
break;
case 'service_unavailable':
errorMessage.value = 'Authentication service is temporarily unavailable. Please try again in a few moments.';
break;
case 'server_error':
errorMessage.value = 'Server error occurred during authentication. Please try again.';
break;
case 'access_denied':
errorMessage.value = 'Access denied. Please check your credentials and try again.';
break;
default:
errorMessage.value = 'Authentication failed. Please try again.';
}
}
});