Nicolas Grandchamp

Results 15 comments of Nicolas Grandchamp

`MyCustomField` is a property on `User` class?

The sample already do that. Check https://github.com/grandchamp/Identity.Dapper/blob/master/samples/Identity.Dapper.Samples.Web/Entities/CustomUser.cs, there's a `Address` property. And you'll have to do `services.AddIdentity`.

Oh, now i understand what you meant. If you use `userManager.AddClaimAsync()`, when you login the Identity don't automatically generates the claim for your user?

Yep. Then you'll logout and login, check if Identity auto-fills your custom claim.

I think so. What i'm telling you is: Somewhere your code (maybe on your register page?) you'll call `userManager.AddClaimAsync()` to add your custom claim to your user. Then, i think...

It calls `userRepository.InsertClaimsAsync` that will `INSERT` the claim on `UserClaimTable`.

I understand your point. Maybe this helps: http://benfoster.io/blog/customising-claims-transformation-in-aspnet-core-identity

Well, maybe it's out of scope of this project, but surely it'll help on your personal needs. I was thinking that it was something related to any implementation here.

For the first, it should been added to database. Probably a bug or misconfiguration. For the second, i don't call directly, nor i need it. Identity does this by itself.

Hi @iamrmin, thanks for the help! You can upload on the root of the repository. I don't plan to change anything in code now, it's still in alpha because i...