Wisdom Jere

Results 5 comments of Wisdom Jere

I discovered that removing [Authorize] attribute works. Must be an issue with authorization so below is my JWT configuration. ```csharp internal static IServiceCollection AddJwtAuthentication(this IServiceCollection services, AppConfiguration appConfig) { var...

Below is my Program.cs file. The same wire up works in .NET 6 ```csharp var builder = WebApplication.CreateBuilder(args); var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found.");...

I have tried setting breakpoints on each event. None of the breakpoints are reachable.

I will try to set up a minimalistic project to reproduce the bug.

Thank you that worked I was able to detect the cause. Calling app.UseHttpsRedirection() after app.UseAuthorization() fixed the problem. ```csharp app.UseAuthentication(); app.UseAuthorization(); app.UseHttpsRedirection(); ```