Hello, world!
+Hello, users!
-Welcome to your new app. +Welcome to your new app.
diff --git a/src/Web/Features/UserManagement/ManageRoles.razor b/src/Web/Features/UserManagement/ManageRoles.razor index 29352105..0fed4a99 100644 --- a/src/Web/Features/UserManagement/ManageRoles.razor +++ b/src/Web/Features/UserManagement/ManageRoles.razor @@ -8,63 +8,65 @@Manage User Roles
+Manage User Roles
@if (_loading) { -Loading users...
+Loading users...
} else { @if (_error is not null) { -Available roles: @string.Join(", ", _availableRoles.Select(r => r.Name))
+Available roles: @string.Join(", ", _availableRoles.Select(r => r.Name))
} -| User | -Current Roles | -Actions | -
|---|
| @user.Name | -@user.Email | -@string.Join(", ", user.Roles) | -- @foreach (var role in _availableRoles.Where(r => !user.Roles.Contains(r.Name))) - { - - } - @foreach (var role in _availableRoles.Where(r => user.Roles.Contains(r.Name))) - { - - } - | +User | +Current Roles | +Actions |
|---|
User Profile
+ +@if (_user is null) +{ +Loading profile...
+} +else +{ +@_displayName
+@_emailAddress
+ @if (!string.IsNullOrWhiteSpace(_userId)) + { +User ID: @_userId
+ } +Identity
+-
+
- Authenticated +
- @(_user.Identity?.IsAuthenticated == true ? "Yes" : "No") +
- Authentication Type +
- @(_user.Identity?.AuthenticationType ?? "Unknown") +
Roles
+ @if (_roles.Count > 0) + { +No roles found in the current claims.
+ } +Claims
+Claims currently present on your authenticated user principal.
+No claims were found.
+| Claim Type | +Value | +
|---|---|
| @claim.Type | +@claim.Value | +