Open erossini-chi opened 2 years ago
My implementation for that is as follows:
ExternalProvidersConfiguration
add this line
public string AzureDisplayName { get; set; }
appsettings
you can add a new property AzureDisplayName
with the name you want to displayStartupHelpers.cs
change line 411
authenticationBuilder.AddMicrosoftIdentityWebApp(options =>
{
options.ClientSecret = externalProviderConfiguration.AzureAdSecret;
options.ClientId = externalProviderConfiguration.AzureAdClientId;
options.TenantId = externalProviderConfiguration.AzureAdTenantId;
options.Instance = externalProviderConfiguration.AzureInstance;
options.Domain = externalProviderConfiguration.AzureDomain;
options.CallbackPath = externalProviderConfiguration.AzureAdCallbackPath;
}, cookieScheme: null, displayName: externalProviderConfiguration.AzureDisplayName);
Done!
I configure Azure Active Directory in my STS project and it is working. The only think I like to change is in the UI. The login button text says "OpenIdConnect".
I like to change it in "Azure Active Directory". How can I do that?
Because I was struggle to find the info, as a reference, I tell you where I found the info to put in the settings: