Closed jakejscott closed 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.
Ok, I finally got around to making the sample show how to use custom PKs.
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