Skip to content

Commit 822d3fd

Browse files
Microsoft login - add prompt param configure
Closes keycloak#34583 Signed-off-by: kqq <[email protected]> Co-authored-by: kqq <[email protected]>
1 parent 8be4237 commit 822d3fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/src/main/java/org/keycloak/social/microsoft/MicrosoftIdentityProviderFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ public String getId() {
5454

5555
@Override
5656
public List<ProviderConfigProperty> getConfigProperties() {
57+
// The supported authentication URI parameters can be found in the Microsoft identity documentation
58+
// https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc#send-the-sign-in-request
5759
return ProviderConfigurationBuilder.create()
60+
.property().name("prompt")
61+
.label("Prompt")
62+
.helpText("Indicates the type of user interaction that is required. The only valid values at this time are login, none, consent, and select_account.")
63+
.type(ProviderConfigProperty.STRING_TYPE).add()
5864
.property().name("tenantId")
5965
.label("Tenant ID")
6066
.helpText("Uses single-tenant auth endpoints when specified, uses 'common' multi-tenant endpoints otherwise.")

0 commit comments

Comments
 (0)