Is there way to do it programmatically ?
Provide us with the following info:
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
ABP Framework version: v7.2.2
UI Type: Angular
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): no
Exception message and full stack trace:
Steps to reproduce the issue:
We would like to override the user name displayed on the profile menu to use the first name and the last name of the user , instead of the user name . What is the best way to override it
.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);
},
}
}
ABP Framework version:** v6.0.0
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes / no
Exception message and stack trace:
Steps to reproduce the issue:" Handling Azure AD B2C error message containing the error code -AADB2C90091. I am trying to handle one of the specific errors returned from Azure Ad B2C , error code -AADB2C90091. (user cancelled sign up / login flow) I have tried hooking up to OnAuthenticationFailed in option.Events in the configuration. But it doesnt seem to flow there. Is there anything else I need to be doing to catch this ?