Skip to content

ClaimesIdentityFactory broken when upgrade to AspNet.Identity.Core v2 #39

Description

@OzBob

hi Pranav

After doing an update of the all Nuget packages including to AspNet.Identity.Core v2 ...

In IdentityExtensions\MyClaimsIdentityFactory.cs
Error:
The type 'TUser' must be a reference type in order to use it as parameter 'TUser' in the generic type or method 'Microsoft.AspNet.Identity.ClaimsIdentityFactory'

The fix is to change:

public class MyClaimsIdentityFactory<TUser> : ClaimsIdentityFactory<TUser> where TUser : IUser<string>

to

public class MyClaimsIdentityFactory<TUser> : ClaimsIdentityFactory<TUser> where TUser : class, IUser<string>

I'll learn how to do a Git Pull request and see if I can add it to the repo ....

regards
Rob

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions