Using a SigningManager with UserManager<TUser,TKey>

Jul 24, 2014 at 7:52 AM
I'm trying to adapt the 2.1.0-alpha1 sample application to use derived entities for the User,Role,UserClaim,UserRole & UserLogin classes. To do this, I've had to change the base class of my UserManager from UserManager<TUser> to UserManager<TUser,TKey> in order to accept a UserStore that is templated with all of my derived classes in its constructor.

However, the sign-in manager class in the sample includes the override:
public override Task<ClaimsIdentity> CreateUserIdentityAsync(MyUserClass user)
{
            return user.GenerateUserIdentityAsync((MyUserManagerClass)UserManager);
 }
The problem is that GenerateUserIdentityAsync doesn't have an implementation that accepts a class derived from UserManager<TUser,TKey> - it only accepts a UserManager<TUser>. How should I implement the CreateUserIdentityAsync method in this scenario?
Jul 24, 2014 at 8:03 AM
Ignore me - I thought GenerateUserIdentityAsync was part of the framework, whereas it's actually another method in the sample application.
Marked as answer by paulhickman on 7/24/2014 at 12:16 AM