function miniorange_saml_install in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
Same name and namespace in other branches
- 7 miniorange_saml.install \miniorange_saml_install()
Implements hook_install().
File
- ./
miniorange_saml.install, line 26 - Installation file for miniOrange SAML Module.
Code
function miniorange_saml_install() {
global $base_url;
\Drupal::configFactory()
->getEditable('miniorange_saml.settings')
->set('miniorange_saml_nameid_format', 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified')
->save();
\Drupal::configFactory()
->getEditable('miniorange_saml.settings')
->set('miniorange_saml_feedback', '1')
->save();
\Drupal::configFactory()
->getEditable('miniorange_saml.settings')
->set('miniorange_saml_email_attribute', 'NameID')
->save();
\Drupal::configFactory()
->getEditable('miniorange_saml.settings')
->set('miniorange_saml_username_attribute', 'NameID')
->save();
// \Drupal::configFactory()->getEditable('miniorange_saml.settings')->set('miniorange_saml_base_url', $base_url)->save();
}