Skip to content

Configuration API

Config object

Property Value
Name ldap_sso.settings
Install defaults config/install/ldap_sso.settings.yml
Schema config/schema/ldap_sso.schema.yml
Editable via LdapSsoAdminForm / CMI

Keys

seamlessLogin: false
ssoSplitUserRealm: true
ssoRemoteUserStripDomainName: false
cookieExpire: false
ssoVariable: REMOTE_USER
ssoExcludedPaths: {  }
ssoExcludedHosts: {  }
redirectOnLogout: true
logoutRedirectPath: '/user/login'
enableLoginConfirmationMessage: true
Key Type
seamlessLogin boolean
ssoSplitUserRealm boolean
ssoRemoteUserStripDomainName boolean
cookieExpire boolean
ssoVariable string
ssoExcludedPaths sequence of string
ssoExcludedHosts sequence of string
redirectOnLogout boolean
logoutRedirectPath string
enableLoginConfirmationMessage boolean

Reading in code

$config = \Drupal::config('ldap_sso.settings');
$variable = $config->get('ssoVariable');

Prefer injecting config.factory and calling $config_factory->get('ldap_sso.settings') in services.

Routes

Route name Path Access
ldap_sso.login_controller /user/login/sso Anonymous only (custom access)
ldap_sso.admin_form /admin/config/people/ldap/sso administer site configuration

Local task: SSO on entity.ldap_server.collection (ldap_sso.links.task.yml).

Migration history

Update hooks ldap_sso_update_80018007 moved settings from ldap_authentication.settings and normalized types. Fresh installs use config/install only; those hooks matter for older upgrades.