Microsoft login - add prompt param configure

Closes #34583

Signed-off-by: kqq <971340511@qq.com>
Co-authored-by: kqq <971340511@qq.com>
This commit is contained in:
kqq 2024-11-04 20:17:05 +08:00 committed by GitHub
parent 8be4237fd4
commit 822d3fde32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,13 @@ public class MicrosoftIdentityProviderFactory extends AbstractIdentityProviderFa
@Override
public List<ProviderConfigProperty> 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.")