diff --git a/client/src/pages/AuthSelection/AuthSelection.tsx b/client/src/pages/AuthSelection/AuthSelection.tsx index d619c7f..b623a90 100644 --- a/client/src/pages/AuthSelection/AuthSelection.tsx +++ b/client/src/pages/AuthSelection/AuthSelection.tsx @@ -28,6 +28,10 @@ const AuthSelection: React.FC = () => { // Logique d'authentification pour Simple Login console.log('Simple Login Data:', simpleLoginData); }; + const handleAuthLogin = (provider: string) => { + window.location.href = 'http://localhost:3000/api/auth/' + provider; + }; + return (

Connexion

@@ -60,7 +64,7 @@ const AuthSelection: React.FC = () => { const provider = authData[providerKey]; if (provider.type === 'oauth') { return ( - ); @@ -75,7 +79,7 @@ const AuthSelection: React.FC = () => { const provider = authData[providerKey]; if (provider.type === 'oidc') { return ( - );