Skip to content

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

@OzBob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions