Mise en place de l'authentification Keycloak
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@page "/application"
|
||||
@page "/application.html"
|
||||
@attribute [Authorize]
|
||||
@inject BrowserBridge Browser
|
||||
@inject MatchStore Store
|
||||
@inject NavigationManager Navigation
|
||||
@@ -23,6 +24,7 @@
|
||||
<a class="button ghost" href="index.html">Accueil du site</a>
|
||||
<a class="button secondary" href="reglement.html">Consulter le reglement</a>
|
||||
</div>
|
||||
<UserAccessBar />
|
||||
</div>
|
||||
|
||||
<aside class="hero-preview">
|
||||
|
||||
13
ChessCubing.App/Pages/Authentication.razor
Normal file
13
ChessCubing.App/Pages/Authentication.razor
Normal file
@@ -0,0 +1,13 @@
|
||||
@page "/authentication/{action}"
|
||||
|
||||
<main class="rules-shell">
|
||||
<section class="panel panel-wide cta-panel" style="margin-top: 2rem;">
|
||||
<p class="eyebrow">Authentification</p>
|
||||
<RemoteAuthenticatorView Action="@Action" />
|
||||
</section>
|
||||
</main>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public string? Action { get; set; }
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
@page "/chrono"
|
||||
@page "/chrono.html"
|
||||
@attribute [Authorize]
|
||||
@implements IAsyncDisposable
|
||||
@inject MatchStore Store
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@page "/cube"
|
||||
@page "/cube.html"
|
||||
@attribute [Authorize]
|
||||
@implements IAsyncDisposable
|
||||
@inject BrowserBridge Browser
|
||||
@inject MatchStore Store
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<a class="button ghost" href="/ethan/">Ouvrir l'appli d'Ethan</a>
|
||||
<a class="button ghost" href="/brice/">Ouvrir l'appli de Brice</a>
|
||||
</div>
|
||||
<UserAccessBar />
|
||||
</div>
|
||||
|
||||
<aside class="hero-preview">
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<a class="button primary" href="application.html">Ouvrir l'application</a>
|
||||
<a class="button secondary" href="index.html">Retour a l'accueil</a>
|
||||
</div>
|
||||
<UserAccessBar />
|
||||
</div>
|
||||
|
||||
<aside class="hero-preview">
|
||||
|
||||
Reference in New Issue
Block a user