skip to Main Content

Asp.net – Scheme already exists: Bearer in .NET Core 8.0

I'm working on integrating Identity into my .NET Core 8.0 application and implementing JWT Bearer authentication. However, I'm encountering the error System.InvalidOperationException: Scheme already exists: Bearer when running the application. My Program.cs code is : using Solv.Identity.Api.Common; using Solv.Identity.Api.Configurations; using…

VIEW QUESTION

Seo – how to Map multiple .net core controller routes

I currently map my controller routes like this: var webApplication = builder.Build(); webApplication.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); This works great for my default scenario where I don't provide action name or id in the parameters. So for example the following routes work: https://example.com.com…

VIEW QUESTION
Back To Top
Search