mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
770 B
23 lines
770 B
@page
|
|
@using Volo.Abp.Users
|
|
@model AuthServer.Host.Pages.IndexModel
|
|
@inject ICurrentUser CurrentUser
|
|
<h1>Running the <strong>AuthServer.Host</strong> application!</h1>
|
|
<h2>Current User</h2>
|
|
<ul>
|
|
<li>IsAuthenticated: @CurrentUser.IsAuthenticated</li>
|
|
<li>UserName: @CurrentUser.UserName</li>
|
|
<li>Email: @CurrentUser.Email</li>
|
|
<li>Roles: @CurrentUser.Roles.JoinAsString(", ")</li>
|
|
@*<li>Claims: @CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString(" | ")</li>*@
|
|
<li>TenantId: @CurrentUser.TenantId</li>
|
|
</ul>
|
|
|
|
@if (CurrentUser.IsAuthenticated)
|
|
{
|
|
<a abp-button="Primary" asp-controller="Logout" asp-action="Index" asp-area="Account">Logout</a>
|
|
}
|
|
else
|
|
{
|
|
<a abp-button="Primary" asp-page="/Account/Login">Login</a>
|
|
}
|