List user claims on Auth page.
This commit is contained in:
parent
3e5d94e26f
commit
d6d6ef0b47
@ -10,4 +10,14 @@
|
|||||||
|
|
||||||
<AuthorizeView>
|
<AuthorizeView>
|
||||||
Hello @context.User.Identity?.Name!
|
Hello @context.User.Identity?.Name!
|
||||||
|
|
||||||
|
@if (context.User.Claims is not null)
|
||||||
|
{
|
||||||
|
<ul>
|
||||||
|
@foreach(var claim in context.User.Claims)
|
||||||
|
{
|
||||||
|
<li>@claim.Type : @claim.Value</li>
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
}
|
||||||
</AuthorizeView>
|
</AuthorizeView>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user