You are here

public function MiniOrangeAcs::get_status_message in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

File

src/MiniOrangeAcs.php, line 178

Class

MiniOrangeAcs
The MiniOrangeAcs class.

Namespace

Drupal\miniorange_saml

Code

public function get_status_message($statusCode) {
  switch ($statusCode) {
    case 'RequestDenied':
      return 'You are not allowed to login into the site. Please contact your Administrator.';
      break;
    case 'Requester':
      return 'The request could not be performed due to an error on the part of the requester.';
      break;
    case 'Responder':
      return 'The request could not be performed due to an error on the part of the SAML responder or SAML authority.';
      break;
    case 'VersionMismatch':
      return 'The SAML responder could not process the request because the version of the request message was incorrect.';
      break;
    default:
      return 'Unknown';
  }
}