Skip to content
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

AspNetCore.Identity sample: cannot resolve IMongoClient #132

Open
morganreesoval opened this issue Jun 16, 2023 · 0 comments
Open

AspNetCore.Identity sample: cannot resolve IMongoClient #132

morganreesoval opened this issue Jun 16, 2023 · 0 comments

Comments

@morganreesoval
Copy link

We're running into an issue adding IdentityServer with Mongo stores + AspNetCore.Identity in our project. I cloned this repo and tried to run the AspNetIdentity.Sample, and a similar issue occurs, relating to failure to resolve IMongoClient. I notice the code to add IMongoClient exists in the IdentityServer.Sample but not the AspNetIdentity.Sample.

Does the call to add IMongoClient as a singleton need to be present when using AddIdentityMongoDbProvider? If so, in which order does it need to go when registering services, as we've also noticed having the calls in the wrong order causes exceptions to be thrown, crashing the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant