David Carr
David Carr
@usarskyy I think you are correct. There is still confusion around why you would call UseIdentity is this scenario.
Something along those lines....scope the objects inside the configure. ``` var roleManager = app.ApplicationServices.GetService(); foreach (var role in Roles.All) { } ```
Also async void is not a good pattern. Return a Task and wait if needed.
https://github.com/aspnet/Security/issues/1043
AddIdentityCore bypasses the default auth setup but that means more boilerplate code. Paste your startup for others to see.
There is no need to new up IdentityBuilder as AddIdentityCore is doing that but that is still not your issue. **Looks like you are still configuring authentication somewhere.** For the...
Glad you sorted the problem...but small refactor might be in order. 😊 ``` services.AddIdentityCore() .AddDefaultTokenProviders() .AddRoles() .AddSignInManager() .AddEntityFrameworkStores();
I think this is IIS setup and not an identity issue. Probably default website configured incorrectly.
Finding similar issues with version 1.x. Will come back with more details.
It seems indirect references are not getting compiled correctly. By referencing the library inside the parent it fixed the compilation issue we were having. (see image)  