AspNetClaims updating a claim from a role
The fact that an extension method is needed to remove claims in either the aspnetuserclaim and aspnetuserroleclaims is not the best way to interact with the system. It would be best if
just like there is
pseudo code
RoleManager
http://stackoverflow.com/questions/24587414/how-to-update-a-claim-in-asp-net-identity
Can I do a PR?
@haok didn't we do this already? maybe only for user and not for role?
Yeah someone added ReplaceClaim for UserManager, but we didn't add anything for role claims.
@jvelezc feel free to submit a PR
https://github.com/aspnet/Identity/blob/dev/src/Microsoft.AspNetCore.Identity/UserManager.cs#L978
Bumping to post RTM
Easy fix to make
This is breaking change unfortunately as we need to add ReplaceClaim to IRoleClaimStore, its a fairly straightforward change, but needs to wait for now
Noone has asked for this in 2 years, so closing