diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/Pages/Index.cshtml b/samples/MicroserviceDemo/applications/AuthServer.Host/Pages/Index.cshtml
index 53bcfed077..ebedf8f8d5 100644
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/Pages/Index.cshtml
+++ b/samples/MicroserviceDemo/applications/AuthServer.Host/Pages/Index.cshtml
@@ -2,22 +2,38 @@
@using Volo.Abp.Users
@model AuthServer.Host.Pages.IndexModel
@inject ICurrentUser CurrentUser
-
Running the AuthServer.Host application!
-Current User
-
- - IsAuthenticated: @CurrentUser.IsAuthenticated
- - UserName: @CurrentUser.UserName
- - Email: @CurrentUser.Email
- - Roles: @CurrentUser.Roles.JoinAsString(", ")
- @*- Claims: @CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString(" | ")
*@
- - TenantId: @CurrentUser.TenantId
-
-
+@section styles {
+
+}
@if (CurrentUser.IsAuthenticated)
{
- Logout
+
+
+
+
+ Logout
+
+
+ @CurrentUser.UserName
+ @CurrentUser.Email
+
+ Roles: @CurrentUser.Roles.JoinAsString(", ")
+
+ Claims:
+ @Html.Raw(CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString("
"))
+
+
+
+
}
-else
+
+@if (!CurrentUser.IsAuthenticated)
{
- Login
+
+

+
Login
+
}
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/wwwroot/images/anonymous-user.png b/samples/MicroserviceDemo/applications/AuthServer.Host/wwwroot/images/anonymous-user.png
new file mode 100644
index 0000000000..fdae8cbe7f
Binary files /dev/null and b/samples/MicroserviceDemo/applications/AuthServer.Host/wwwroot/images/anonymous-user.png differ