remove notes

This commit is contained in:
Shannon
2020-09-09 18:11:38 +10:00
parent d00fb23e9a
commit 2d50245a7d

View File

@@ -25,16 +25,6 @@ namespace Umbraco.Web.Security
/// <returns/>
public override async Task<ClaimsIdentity> CreateAsync(UserManager<T, int> manager, T user, string authenticationType)
{
// TODO: This does not automatically apply claims from the User to the identity/ticket
// So how can we flow Claims from the external identity to this one?
// And can we do that without modifying the core? Can we replace the BackOfficeClaimsIdentityFactory easily? I don't actually think so...
// we would need to replace the whole user manager to do that... can that be done in v7?
// It could certainly be possible to just flow the Claims attached to user T to this identity
// Another hack would be to modify the user manager to "SupportsUserClaim" and have an in-memory store of user claims for the user id
// which would automatically be added with the base.CreateAsync.
// Another way would be to persist the extra claims with the OnExternalLogin call into the extra storage for the user
// and then implement SupportsUserClaim to extract the data from that extra storage. Not sure how backwards compat that is.
var baseIdentity = await base.CreateAsync(manager, user, authenticationType);
// now we can flow any custom claims that the actual user has currently assigned which could be done in the OnExternalLogin callback