Does anyone have much experience with external logins for members? I'm having issues trying to work out how data is supposed to be saved to member properties.
I'm using the classic example as per the [documentation](
https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers#example) but struggling to find an example where member properties are updated .
Login works, AutoLinking works, my code runs, good values are set as the claim value, and I have properties of the same alias at the claim type, but no values are set against my members. Am I missing a step?
OnExternalLogin = (user, loginInfo) => {
if (loginInfo.Principal.FindFirst(ClaimTypes.GivenName) is Claim firstNameClaim)
{
user.Claims.Add(new IdentityUserClaim<string> {
ClaimType = "firstName",
ClaimValue = firstNameClaim.Value,
UserId = user.Id
});
}
if (loginInfo.Principal.FindFirst(ClaimTypes.Surname) is Claim surnameClaim)
{
user.Claims.Add(new IdentityUserClaim<string> {
ClaimType = "surname",
ClaimValue = surnameClaim.Value,
UserId = user.Id
});
}
var continueSignIn = true;
return continueSignIn;
}