#1 : Test de Keycloak.
This commit is contained in:
13
Webzine.WebApplication/Views/Account/AccessDenied.cshtml
Normal file
13
Webzine.WebApplication/Views/Account/AccessDenied.cshtml
Normal file
@@ -0,0 +1,13 @@
|
||||
@{
|
||||
ViewData["Title"] = "Accès refusé";
|
||||
}
|
||||
|
||||
<div class="container mt-5 text-center">
|
||||
<h2>Accès refusé</h2>
|
||||
|
||||
<p>Vous n'avez pas les droits pour accéder à cette page.</p>
|
||||
|
||||
<a href="/" class="btn btn-secondary">
|
||||
Retour à l'accueil
|
||||
</a>
|
||||
</div>
|
||||
15
Webzine.WebApplication/Views/Account/Login.cshtml
Normal file
15
Webzine.WebApplication/Views/Account/Login.cshtml
Normal file
@@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = "Connexion";
|
||||
}
|
||||
|
||||
<div class="container mt-5 text-center">
|
||||
<h2>Connexion</h2>
|
||||
|
||||
<p>Vous allez être redirigé vers le serveur d'authentification.</p>
|
||||
|
||||
<a asp-controller="Account"
|
||||
asp-action="Login"
|
||||
class="btn btn-primary">
|
||||
Se connecter avec Keycloak
|
||||
</a>
|
||||
</div>
|
||||
15
Webzine.WebApplication/Views/Account/Logout.cshtml
Normal file
15
Webzine.WebApplication/Views/Account/Logout.cshtml
Normal file
@@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = "Déconnexion";
|
||||
}
|
||||
|
||||
<div class="container mt-5 text-center">
|
||||
<h2>Déconnexion</h2>
|
||||
|
||||
<p>Vous êtes sur le point de vous déconnecter.</p>
|
||||
|
||||
<form asp-controller="Account" asp-action="Logout" method="get">
|
||||
<button type="submit" class="btn btn-danger">
|
||||
Se déconnecter
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user