You are here

function fix_attribute in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

1 string reference to 'fix_attribute'
miniorange_saml_menu in ./miniorange_saml.module

File

./miniorange_saml.module, line 275
Module file for miniOrange SAML Module.

Code

function fix_attribute() {
  $expected_cert = variable_get('miniorange_saml_expected_certificate');
  $current_cert = isset($expected_cert) ? Utilities::sanitize_certificate($expected_cert) : '';
  isset($current_cert) ? variable_set('miniorange_saml_idp_x509_certificate', $current_cert) : ($current_cert = '');
  $expected_issuer = variable_get('miniorange_saml_expected_issuer');
  isset($expected_issuer) ? variable_set('miniorange_saml_idp_issuer', $expected_issuer) : ($expected_cert = '');
  test_configuration();
}