You are here

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

Show SAML Request

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

File

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

Code

function SAML_Request_Generator() {
  $sso_url = variable_get('miniorange_saml_idp_login_url', '');
  $nameid_format = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
  $b_url = Utilities::miniorange_get_baseURL();
  $issuer = Utilities::miniorange_get_issuer();
  $acs_url = $b_url . '/?q=samlassertion';
  $samlRequestXML = Utilities::createAuthnRequest($acs_url, $issuer, $sso_url, $nameid_format, 'false', 'TRUE');
  $sendRelayState = "displaySAMLRequest";
  Utilities::Print_SAML_Request($samlRequestXML, $sendRelayState);
}