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

New driver issue, easy fix. #12

Closed
jlaustill opened this issue Nov 13, 2015 · 1 comment
Closed

New driver issue, easy fix. #12

jlaustill opened this issue Nov 13, 2015 · 1 comment

Comments

@jlaustill
Copy link

I downloaded your package today and got it to work, but boy did I struggle having never done a custom identity before :)

There's a bugfix implemented in the mongo 2.1.1 drivers that stop your code from working, the fix is easy, just replaced [BsonRepresentation(BsonType.ObjectID)] with [BsonId] in both places it existed in the IdentityUser and IdentityRole, recompiled, and everything seems to be working for me.

Here's the two lines

    [BsonId]
    public string Id { get; private set; }

Seems kind of silly to do a fork and pull request for something this simple, but I certainly will if you wish, just let me know.

Thanks for doing this, I'm using it over at www.joshuaaustill.com, which is my little sandbox. I'll let you know if I run into anymore issues.

Have a great day!
Joshua Austill

@g0t4
Copy link
Owner

g0t4 commented Sep 25, 2016

Will be updated in ASP.NET Core Identity provider

@g0t4 g0t4 closed this as completed Sep 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants