添加项目文件。
This commit is contained in:
21
TechHelper.Client/Pages/Home.razor
Normal file
21
TechHelper.Client/Pages/Home.razor
Normal file
@@ -0,0 +1,21 @@
|
||||
@page "/"
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
|
||||
<AuthorizeView Roles="Administrator">
|
||||
|
||||
<MudText> Hello @context.User.Identity.Name</MudText>
|
||||
@foreach (var item in context.User.Claims)
|
||||
{
|
||||
<MudPaper class="ma-2 pa-2">
|
||||
<MudText> @item.Value </MudText>
|
||||
<MudText> @item.Issuer </MudText>
|
||||
<MudText> @item.Subject </MudText>
|
||||
<MudText> @item.Properties </MudText>
|
||||
<MudText> @item.ValueType </MudText>
|
||||
</MudPaper>
|
||||
}
|
||||
|
||||
Welcome to your new app.
|
||||
</AuthorizeView>
|
||||
|
||||
<MudText>Hello </MudText>
|
Reference in New Issue
Block a user