add security to frontend

This commit is contained in:
tuanvu
2026-01-07 09:55:12 +01:00
parent d35405842d
commit 20712412a8
10 changed files with 70 additions and 221 deletions

View File

@@ -3,4 +3,4 @@
"resource": "Frisbyee_client",
"auth-server-url": "http://localhost:8080",
"public-client": true
}
}

View File

@@ -8,7 +8,7 @@ export const Login =() =>{
return(
<div>
<div>
Authenticated : {keycloak.authenticated ? '' : ''}
Authenticated : {keycloak.authenticated ? 'oui' : 'non'}
</div>
<button onClick={() => keycloak.login()}>
Se connecter