@page "/" @using Volo.Abp.Users @using Volo.Abp.MultiTenancy @using System.Security.Claims @inject ICurrentUser CurrentUser @inject ICurrentTenant CurrentTenant @inject AuthenticationStateProvider AuthenticationStateProvider

Welcome to TaskScheduling!

@if (CurrentUser.IsAuthenticated) {

Current User

} @if (_claims != null) {

Current Claims

} @if (CurrentTenant.IsAvailable) {

Current Tenant

} @code { private IEnumerable? _claims; protected override async Task OnInitializedAsync() { var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync(); if (authState.User.Identity != null && authState.User.Identity.IsAuthenticated) { _claims = authState.User.Claims; } } }