Skip to content

Commit

Permalink
Use 'Microsoft Entra ID' in OIDC DevUI
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Nov 30, 2024
1 parent 70e6965 commit b1049b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class OidcDevUIProcessor extends AbstractDevUIProcessor {
// Well-known providers

private static final String KEYCLOAK = "Keycloak";
private static final String AZURE = "Azure";
private static final String ENTRAID = "Microsoft Entra ID";
private static final Set<String> OTHER_PROVIDERS = Set.of("Auth0", "Okta", "Google", "Github", "Spotify");

OidcBuildTimeConfig oidcConfig;
Expand Down Expand Up @@ -151,7 +151,7 @@ private String tryToGetProviderName(String authServerUrl) {
return KEYCLOAK;
}
if (authServerUrl.contains("microsoft")) {
return AZURE;
return ENTRAID;
}
for (String provider : OTHER_PROVIDERS) {
if (authServerUrl.contains(provider.toLowerCase())) {
Expand Down

0 comments on commit b1049b8

Please sign in to comment.