-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Models.ApplicationUser]' #4
Comments
Hi @a-a-k Thank you for using LiteDB.Identity. Could I kindly ask you to double check connection string configuration for LiteDB: Next, please check if all references have been added correctly to your project definition : At the very end please double check Configure section of Startup.cs if contains : app.UseAuthentication();
app.UseAuthorization(); And let me know how it went. Regards |
@quicksln thank you for your reply! |
Hello @a-a-k Thank you for additional information. Unfortunately, I did not have chance to try IdentityServer4 But according to IdentityServer4 documentation, in theory it should be possible to use both, please have a look on following links: https://docs.identityserver.io/en/release/reference/aspnet_identity.html Hope you find this helpful. Regards |
Hi, Piotr. |
I'm using
LiteDB.Identity
in project based on SPA (Angular) template. I changedStatup.cs
as it shown in readme. The error was thrown when I tried to access protected sources (via[Authorize]
attribute).What's going wrong?
The text was updated successfully, but these errors were encountered: