Index.cshtml
@{
Layout = null;
}
<html>
<head>
<meta charset="utf-8" />
<title>AuthenticationExample</title>
</head>
<body>
<h2 class="site-header">
AuthenticationExample
</h2>
<div class="login-section">
Logged in as: <a href="/SignOut">@User.FindFirst("name").Value</a>
</div>
</body>
</html>