#1 : Test de Keycloak.

This commit is contained in:
Loic Masi
2026-04-21 11:46:29 +02:00
parent 4157991805
commit 3a116f9bae
15 changed files with 360 additions and 27 deletions

View File

@@ -14,6 +14,24 @@
</head>
<body class="d-flex flex-column min-vh-100">
<partial name="_Header"/>
@if (User.Identity?.IsAuthenticated == true)
{
<span class="me-2">Bonjour @User.Identity.Name</span>
<a asp-controller="Account"
asp-action="Logout"
class="btn btn-outline-danger btn-sm">
Déconnexion
</a>
}
else
{
<a asp-controller="Account"
asp-action="Login"
class="btn btn-outline-primary btn-sm">
Connexion
</a>
}
<div class="container-fluid flex-grow-1 py-4">
<div class="row">
<main class="col mx-3">