@PublicAPI public class KeycloakOidcProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_ANY_CERTIFICATE
When Keycloak URL uses the HTTPS protocol, this parameter indicates which kind of TLS certificate to consider for the Keycloak server.
|
static String |
FALLBACK_GROUP_MEMBERSHIP
group fall back property, check user group membership group file if user is not found in corresponding Keycloak group.
|
static String |
FALLBACK_TENANT_MEMBERSHIP
tenant fall back property, check user tenant membership tenant file if user is not found in LDAP or if tenant Keycloak attribute is not defined.
|
static String |
FALLBACK_USER_AUTH
Fall back property, check user/password and group in files if user is not found in Keycloak.
|
static String |
KEYCLOAK_PRINCIPAL_ATTRIBUTE
The attribute in Keycloak access token to be used to extract the user/principal name
|
static String |
KEYCLOAK_PROACTIVE_CLIENT_ID
Keycloak ProActive client ID
|
static String |
KEYCLOAK_PROACTIVE_CLIENT_SECRET
Keycloak ProActive client ID
|
static String |
KEYCLOAK_PROACTIVE_SCOPE
Scope of the information to be returned by Keycloak for the ProActive client.
|
static String |
KEYCLOAK_PUBLIC_KEY
Keycloak RSA public key used to decrypt the access tokens
|
static String |
KEYCLOAK_REALM
Keycloak realm in which ProActive client is configured
|
static String |
KEYCLOAK_URL
URL of a Keycloak server configured for ProActive authentication
|
static String |
KEYCLOAK_USE_RESOURCE_ROLE_MAPPINGS
Use the resource_access roles in Keycloak access token to extract the user/principal roles
true or false
|
Constructor and Description |
---|
KeycloakOidcProperties(String propertiesFileName)
Creates a new instance of KeycloakProperties
|
Modifier and Type | Method and Description |
---|---|
org.keycloak.adapters.KeycloakDeployment |
getKeycloakDeployment()
Returns the Keycloak deployment configuration
|
String |
getProperty(String key)
Retrieves the value of the property
|
boolean |
isFallbackGroupMembership()
Returns whether to use the Fallback mechanism to determine the user group
|
boolean |
isFallbackTenantMembership()
Returns whether to use the Fallback mechanism to determine the user tenant
|
boolean |
isFallbackUserAuth()
Returns whether to use the Fallback mechanism for user authentication
|
public static final String KEYCLOAK_URL
public static final String ALLOW_ANY_CERTIFICATE
public static final String KEYCLOAK_REALM
public static final String KEYCLOAK_PROACTIVE_CLIENT_ID
public static final String KEYCLOAK_PROACTIVE_CLIENT_SECRET
public static final String KEYCLOAK_PROACTIVE_SCOPE
public static final String KEYCLOAK_PUBLIC_KEY
public static final String KEYCLOAK_PRINCIPAL_ATTRIBUTE
public static final String KEYCLOAK_USE_RESOURCE_ROLE_MAPPINGS
public static final String FALLBACK_USER_AUTH
public static final String FALLBACK_GROUP_MEMBERSHIP
public static final String FALLBACK_TENANT_MEMBERSHIP
public KeycloakOidcProperties(String propertiesFileName)
propertiesFileName
- properties file namepublic String getProperty(String key)
key
- property namepublic boolean isFallbackUserAuth()
public boolean isFallbackGroupMembership()
public boolean isFallbackTenantMembership()
public org.keycloak.adapters.KeycloakDeployment getKeycloakDeployment()