You are here

function saml_sp_drupal_login_update_8303 in SAML Service Provider 8.3

Same name and namespace in other branches
  1. 4.x modules/saml_sp_drupal_login/saml_sp_drupal_login.install \saml_sp_drupal_login_update_8303()

Add config option to force authentication.

File

modules/saml_sp_drupal_login/saml_sp_drupal_login.install, line 38
Update functions for the SAML SP Drupal Login module.

Code

function saml_sp_drupal_login_update_8303() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('saml_sp_drupal_login.config');
  $config
    ->set('force_authentication', FALSE);
  $config
    ->save(TRUE);
}