add security to frontend
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
"resource": "Frisbyee_client",
|
||||
"auth-server-url": "http://localhost:8080",
|
||||
"public-client": true
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user