Is there way to do it programmatically ?
I dont want to patch the user name property, I want to show a different property in there , instead of user name
Hi this is angular
.AddOpenIdConnect("OpenIdConnect", "Azure B2C OpenId", options => { options.SignInScheme = IdentityConstants.ExternalScheme; options.SignOutScheme = IdentityConstants.ExternalScheme; options.ForwardChallenge = "OpenIdConnect";
options.ClientId = configuration["Authentication:OpenId:ClientId"];
options.Authority = string.Format(configuration["Authentication:OpenId:Authority"], configuration["Authentication:OpenId:TenantId"]);
options.SignedOutRedirectUri = new Uri(configuration["App:AngularUrl"]).ToString();
options.ResponseType = OpenIdConnectResponseType.IdToken;
options.SaveTokens = true;
options.MetadataAddress = new Uri(string.Format(configuration["Authentication:OpenId:SignInSignUpPolicyUrl"], configuration["Authentication:OpenId:TenantId"])).ToString();
options.GetClaimsFromUserInfoEndpoint = true;
options.Scope.Add("email");
options.ClaimActions.MapAll();
options.Events = new OpenIdConnectEvents()
{
OnTokenValidated = (tokenValidatedContext) =>
{
return Task.FromResult(0);
},
}
}