IdentityServer / IdentityServer3.AspNetIdentity

ASP.NET Identity support for Thinktecture IdentityServer3
Apache License 2.0
64 stars 51 forks source link

Commented out code doesn't compile or work #4

Closed jakejscott closed 10 years ago

jakejscott commented 10 years ago

Am trying to see how to use an int for the primary key of the user, but I couldn't work out what classes are meant to be used.

https://github.com/thinktecture/Thinktecture.IdentityServer.v3.AspNetIdentity/blob/master/source/SelfHost/AspNetIdentityIdentityManagerFactory.cs#L39

Also whats the difference between this sample, and the one in here: https://github.com/thinktecture/Thinktecture.IdentityServer.v3.Samples/tree/master/source/AspNetIdentity

brockallen commented 10 years ago

That commented out code was preserved from the old sample, but the design did change slightly so it's understandable that it might not work. I'll leave this issue open as a reminder to get the int PK working.

As for getting AspNetId working with a non-string PK, it's no different in IdentityServer than any other app you would build.Check the Microsoft forums for support on that topic.

brockallen commented 10 years ago

Ok, I finally got around to making the sample show how to use custom PKs.