function shib_auth_get_idp in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_get_idp()
Get IdP name.
Return value
string IdP name
2 calls to shib_auth_get_idp()
- shib_auth_save_authmap in ./
shib_auth.module - Saves an entry into shib_authmap and also saves mail if changed.
- shib_auth_session_valid in ./
shib_auth.module - Checks whether Shibboleth SP has set the Identity Provider $_SERVER field.
File
- ./
shib_auth.module, line 266 - Drupal Shibboleth authentication module.
Code
function shib_auth_get_idp() {
if (shib_auth_getenv('Shib-Identity-Provider')) {
return shib_auth_getenv('Shib-Identity-Provider');
}
elseif (isset($_SERVER['Shib_Identity_Provider'])) {
return $_SERVER['Shib_Identity_Provider'];
}
elseif (isset($_SERVER['HTTP_SHIBIDENTITYPROVIDER'])) {
return $_SERVER['HTTP_SHIBIDENTITYPROVIDER'];
}
return '';
}