Reputation:
I wonder how ASP.NET core behaves when there are multiple JWT schemes in project. Does it challenges all the schemes ? If yes how can I get the scheme name (in my controller function) in where the challenge was successful ?
Upvotes: 0
Views: 1340
Reputation: 11631
I think you could read the offcial document related:
and try as the document:
[Authorize(AuthenticationSchemes = AuthSchemes)]
public class MixedController : Controller
{
......
private const string AuthSchemes = "SomeName,AnotherName"
.....
}
Upvotes: 0