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

Asp.net – Easier way to select a string in EF Core?

I would like to get the value of @@SERVERNAME. The following code works: [Keyless] public class EntityString { public String Value { get; set; } = String.Empty; }; // inside MyDbContext.OnModelCreating modelBuilder.Entity<EntityString>(); // inside MyDbContext public IQueryable<EntityString> QueryServerName() => Set<EntityString>().FromSqlRaw("SELECT…

VIEW QUESTION
Back To Top
Search