Is it possible to support both Azure AD Tokens and Custom tokens for different areas of an application?
==Updated to add more detail==
I essentially want to use both the AddJwtBearer along with AddMicrosoftIdentityWebApp method where My MVC Controller uses the Azure AD and my SignalR Hub uses the Jwt Bearer Token.
services
.AddJwtBearer(...) --> SignalR
.AddMicrosoftIdentityWebApp(...); --> MVC Controller
I have no problem authenticating against one or the other but I have not been able to authenticate both at the same time in a single ASP.NET Core site. It seems like the minute I add the Microsoft Identity it makes the whole site use Azure AD and sending any custom token to the site fails with Authentication Failed.
Is there a way to configure this?
Admin Controller --> Azure AD Auth
SignalR Hub --> Custom Jwt Token