I want to be able to use Azure Ad with OpenIdConnect for the authentication in my application which I managed to make it working.
My problem is that when I use in .NET Core 2.0 the OpenIdConnect Authentication and I use this default Identity:
services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
When I try to access controllers that have the [Authorize] attribute not being logged in already it redirects me to the azure URL indefinitely.
Any suggestion on how to fix this?
Thanks