@page
@using Microsoft.AspNetCore.Authentication;
@model MyClaimsModel
@{
ViewData["Title"] = "My Claims";
}
@ViewData["Title"]
@Model.Message
@foreach (var claim in User.Claims)
{
- @claim.Type
- @claim.Value
}
AuthenticationProperties
@foreach (var prop in (await HttpContext.AuthenticateAsync()).Properties.Items)
{
- @prop.Key
- @prop.Value
}