zitadel
Deploy Aegis Portal / build-and-deploy (push) Failing after 1m30s

This commit is contained in:
LathanDevers
2026-07-26 20:42:45 +02:00
parent 69a1826f73
commit c92519a324
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import PocketBase from 'pocketbase';
const PB_URL = 'https://pocket.gise.be';
const PB_URL = 'https://pocket.bunker.lan';
export const pb = new PocketBase(PB_URL);
+3 -2
View File
@@ -22,7 +22,7 @@ export default function Login({ onLoginSuccess }: LoginProps) {
const [isFirstSetup, setIsFirstSetup] = useState(false);
// --------------------------------------------------------
// FLUX 1 : Connexion SSO via Zitadel (OIDC)
// 1 Connexion Zitadel (SSO)
// --------------------------------------------------------
const handleZitadelLogin = async () => {
setError('');
@@ -30,6 +30,7 @@ export default function Login({ onLoginSuccess }: LoginProps) {
try {
// PocketBase gère automatiquement la popup vers Zitadel et le retour du token
const authData = await pb.collection('aegis_users').authWithOAuth2({ provider: 'oidc' });
console.log("Données d'authentification SSO :", authData);
if (authData) {
// Zitadel a déjà géré la sécurité et le MFA de son côté.
@@ -46,7 +47,7 @@ export default function Login({ onLoginSuccess }: LoginProps) {
};
// --------------------------------------------------------
// FLUX 2 : Connexion Classique (Email + Mot de passe)
// 2 Connexion Email - Mot de passe
// --------------------------------------------------------
const handleLocalLogin = async (e: React.FormEvent) => {
e.preventDefault();