title: How to call connect/authorize without Authorize attribute
body: <p>I have two Asp.Net Core MVC apps and login system on IdentityServer4. 
  First app is fully protected, means all controllers are behind [Authorize] attribute and that one works fine.
  Second app is public app and has no any [Authorize] attributes.</p>
  
  <p>Issue is on second app on line</p>
  
  <pre><code>@if (User.Identity.IsAuthenticated)
  {
      &lt;a href="#"&gt;@User.Identity.Name&lt;/a&gt;
  }
  </code></pre>
  
  <p>because User.Identity.IsAuthenticated is always false.
  This piece of code is on razor page which is called from simple action</p>
  
  <pre><code>public IActionResult Index()
  {
      return View();
  }
  </code></pre>
  
  <p>What I figured out is when I add [Authorize] attribute on this action then there is call to IDS4 'connect/authorize' endpath and User.Identity.IsAuthenticated is authenticated and all works fine.</p>
  
  <p>Trouble is that action should be without [Authorize] attribute and I just want to show user name and/or user email if user is logged in.</p>
  
  <p>Is there any other way to verify cookie and get user info in User.Identity?</p>