| | | 1 | | @page "/authentication/{action}" |
| | | 2 | | @using Microsoft.AspNetCore.Components.WebAssembly.Authentication |
| | | 3 | | @inject NavigationManager Navigation |
| | | 4 | | |
| | | 5 | | <RemoteAuthenticatorView Action="@Action"> |
| | | 6 | | <LoggingIn> |
| | | 7 | | <MudContainer Class="auth-container"> |
| | | 8 | | <MudPaper Elevation="3" Class="auth-paper"> |
| | | 9 | | <div class="auth-content"> |
| | | 10 | | <MudProgressCircular Color="Color.Primary" Indeterminate="true" Size="Size.Large" /> |
| | | 11 | | <MudText Typo="Typo.h6" Class="mt-4" Style="color: #F4F0EA;">Signing you in...</MudText> |
| | | 12 | | <MudText Typo="Typo.body2" Style="color: #F4F0EA;">Please wait while we authenticate you with Auth0< |
| | | 13 | | </div> |
| | | 14 | | </MudPaper> |
| | | 15 | | </MudContainer> |
| | | 16 | | </LoggingIn> |
| | | 17 | | |
| | | 18 | | <CompletingLoggingIn> |
| | | 19 | | <MudContainer Class="auth-container"> |
| | | 20 | | <MudPaper Elevation="3" Class="auth-paper auth-paper-light"> |
| | | 21 | | <div class="auth-content auth-content-dark"> |
| | | 22 | | <MudProgressCircular Color="Color.Primary" Indeterminate="true" Size="Size.Large" /> |
| | | 23 | | <MudText Typo="Typo.h6" Class="mt-4">Completing sign in...</MudText> |
| | | 24 | | </div> |
| | | 25 | | </MudPaper> |
| | | 26 | | </MudContainer> |
| | | 27 | | </CompletingLoggingIn> |
| | | 28 | | |
| | | 29 | | <LogOut> |
| | | 30 | | <MudContainer Class="auth-container"> |
| | | 31 | | <MudPaper Elevation="3" Class="auth-paper"> |
| | | 32 | | <div class="auth-content"> |
| | | 33 | | <MudProgressCircular Color="Color.Primary" Indeterminate="true" Size="Size.Large" /> |
| | | 34 | | <MudText Typo="Typo.h6" Class="mt-4" Style="color: #F4F0EA;">Signing you out...</MudText> |
| | | 35 | | </div> |
| | | 36 | | </MudPaper> |
| | | 37 | | </MudContainer> |
| | | 38 | | </LogOut> |
| | | 39 | | |
| | | 40 | | <CompletingLogOut> |
| | | 41 | | <MudContainer Class="auth-container"> |
| | | 42 | | <MudPaper Elevation="3" Class="auth-paper"> |
| | | 43 | | <div class="auth-content"> |
| | | 44 | | <MudProgressCircular Color="Color.Primary" Indeterminate="true" Size="Size.Large" /> |
| | | 45 | | <MudText Typo="Typo.h6" Class="mt-4">Completing sign out...</MudText> |
| | | 46 | | </div> |
| | | 47 | | </MudPaper> |
| | | 48 | | </MudContainer> |
| | | 49 | | </CompletingLogOut> |
| | | 50 | | |
| | | 51 | | <LogInFailed> |
| | | 52 | | <MudContainer Class="auth-container"> |
| | | 53 | | <MudPaper Elevation="3" Class="auth-paper"> |
| | | 54 | | <div class="auth-content"> |
| | | 55 | | <MudIcon Icon="@Icons.Material.Filled.Error" Color="Color.Error" Size="Size.Large" /> |
| | | 56 | | <MudText Typo="Typo.h6" Color="Color.Error" Class="mt-4">Authentication Failed</MudText> |
| | | 57 | | <MudText Typo="Typo.body2" Class="mt-2"> |
| | | 58 | | There was a problem signing you in. Please try again. |
| | | 59 | | </MudText> |
| | | 60 | | |
| | | 61 | | <MudButton Variant="Variant.Filled" |
| | | 62 | | Color="Color.Primary" |
| | | 63 | | Href="authentication/login" |
| | | 64 | | Class="mt-4"> |
| | | 65 | | Return to Login |
| | | 66 | | </MudButton> |
| | | 67 | | </div> |
| | | 68 | | </MudPaper> |
| | | 69 | | </MudContainer> |
| | | 70 | | </LogInFailed> |
| | | 71 | | </RemoteAuthenticatorView> |
| | | 72 | | |
| | | 73 | | @code { |
| | | 74 | | [Parameter] |
| | 0 | 75 | | public string? Action { get; set; } |
| | | 76 | | } |