From 822d3fde322b7adc20c6ebb31e7496ab9e06875f Mon Sep 17 00:00:00 2001 From: kqq <101536317+QingqinKong@users.noreply.github.com> Date: Mon, 4 Nov 2024 20:17:05 +0800 Subject: [PATCH] Microsoft login - add prompt param configure Closes #34583 Signed-off-by: kqq <971340511@qq.com> Co-authored-by: kqq <971340511@qq.com> --- .../social/microsoft/MicrosoftIdentityProviderFactory.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/src/main/java/org/keycloak/social/microsoft/MicrosoftIdentityProviderFactory.java b/services/src/main/java/org/keycloak/social/microsoft/MicrosoftIdentityProviderFactory.java index a958d73fe8..7352a74cbe 100644 --- a/services/src/main/java/org/keycloak/social/microsoft/MicrosoftIdentityProviderFactory.java +++ b/services/src/main/java/org/keycloak/social/microsoft/MicrosoftIdentityProviderFactory.java @@ -54,7 +54,13 @@ public class MicrosoftIdentityProviderFactory extends AbstractIdentityProviderFa @Override public List getConfigProperties() { + // The supported authentication URI parameters can be found in the Microsoft identity documentation + // https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc#send-the-sign-in-request return ProviderConfigurationBuilder.create() + .property().name("prompt") + .label("Prompt") + .helpText("Indicates the type of user interaction that is required. The only valid values at this time are login, none, consent, and select_account.") + .type(ProviderConfigProperty.STRING_TYPE).add() .property().name("tenantId") .label("Tenant ID") .helpText("Uses single-tenant auth endpoints when specified, uses 'common' multi-tenant endpoints otherwise.")