-
Notifications
You must be signed in to change notification settings - Fork 91
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
Items to complete for V2 #14
Comments
In order to set string as object id |
Yup. That's how it works now. However the spec for AspNet.Identity v2 allows you to set the type for the primary key (int,string,guid,etc). As shown on the IdentityUser model as
So in order to honor that contract I need to refactor the fetching functions to understand TKey when doing a mongo Query() operation. Right now it utilizes ObjectId.Parse() which only accepts a string not a TKey. |
I'm quite new in the mongodb area. But wouldnt it be possible to create two keys? One that is a real object id and has only a private setter, so you can't mess with it. And second unique property which represents the identity framework user id. ´´´ // This would be the unique identifier identity framework expects As far as i understand this, the only thing you'd need to do for that is to check if there is another object with the same value in Id when creating a new user, so that it can be used as a unique key. |
Hi, is this still being actively developed? Would love to be able to use my username field as the ApplicationUser Document id. |
Right now the major items left for v2 are
The text was updated successfully, but these errors were encountered: