@page
@using Volo.Abp.Users
@model AuthServer.Host.Pages.IndexModel
@inject ICurrentUser CurrentUser
@if (CurrentUser.IsAuthenticated)
{
Logout
@CurrentUser.UserName
@CurrentUser.Email
Roles: @CurrentUser.Roles.JoinAsString(", ")
Claims:
@Html.Raw(CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString("
"))
}
@if (!CurrentUser.IsAuthenticated)
{
}