@using Microsoft.AspNetCore.Authentication
@{
ViewData["Title"] = "Home Page";
}
@using Microsoft.AspNetCore.Authentication
@if (User?.Identity?.IsAuthenticated ?? false) {
Welcome, @User.Identity.Name
@foreach (var claim in Context.User.Claims) {
@claim.Type: @claim.Value
}
if (Model!=null) {
Message received from the resource controller: @Model
}
Sign out
}
else {
Welcome, anonymous
Sign in
}