I'm working on an ASP.net Core 2.0 application which uses an IdentityServer4 token server for authentication. My application has Razor Pages, which I'd like to use Cookie authentication with, and it also has an API, which I'd like to use Bearer tokens with.I'm working on an ASP.net Core 2.0 application