dasiths / NEasyAuthMiddleware

Azure App Service Authentication (EasyAuth) middleware for ASP.NET CORE with fully customizable components and support for local debugging
MIT License
14 stars 6 forks source link

Added authentication type to constructor of ClaimsIdentity #4

Closed perfectphase closed 4 years ago

perfectphase commented 4 years ago

Using this library in a .Net Core 3.1 project and user.Identity.IsAuthenticated is always false. Seems that you must pass an authentication type as well as your claims into the ClaimsIdentity when you create it.

For reference: https://stackoverflow.com/questions/20254796/why-is-my-claimsidentity-isauthenticated-always-false-for-web-api-authorize-fil

Have set authentication type to "EasyAuth"