daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/lib/Saml2/AuthnRequest.php b/lib/Saml2/AuthnRequest.php
  2. index e6e49a2..7faafb2 100644
  3. --- a/lib/Saml2/AuthnRequest.php
  4. +++ b/lib/Saml2/AuthnRequest.php
  5. @@ -48,7 +48,7 @@ class OneLogin_Saml2_AuthnRequest
  6.          if ($setNameIdPolicy) {
  7.              $nameIDPolicyFormat = $spData['NameIDFormat'];
  8.              if (isset($security['wantNameIdEncrypted']) && $security['wantNameIdEncrypted']) {
  9. -                $nameIDPolicyFormat = OneLogin_Saml2_Constants::NAMEID_ENCRYPTED;
  10. +                $nameIDPolicyFormat = OneLogin_Saml2_Constants::NAMEID_TRANSIENT;
  11.              }
  12.  
  13.              $nameIdPolicyStr = <<<NAMEIDPOLICY
  14. @@ -124,7 +124,8 @@ REQUESTEDAUTHN;
  15.      IssueInstant="$issueInstant"
  16.      Destination="{$idpData['singleSignOnService']['url']}"
  17.      ProtocolBinding="{$spData['assertionConsumerService']['binding']}"
  18. -    AssertionConsumerServiceURL="{$spData['assertionConsumerService']['url']}">
  19. +    AssertionConsumerServiceURL="{$spData['assertionConsumerService']['url']}"
  20. +    AttributeConsumingServiceIndex="0">
  21.      <saml:Issuer>{$spData['entityId']}</saml:Issuer>
  22.  {$nameIdPolicyStr}
  23.  {$requestedAuthnStr}
  24. diff --git a/lib/Saml2/Metadata.php b/lib/Saml2/Metadata.php
  25. index 5662624..4939525 100644
  26. --- a/lib/Saml2/Metadata.php
  27. +++ b/lib/Saml2/Metadata.php
  28. @@ -159,6 +159,7 @@ METADATA_TEMPLATE;
  29.  {$sls}        <md:NameIDFormat>{$sp['NameIDFormat']}</md:NameIDFormat>
  30.          <md:AssertionConsumerService Binding="{$sp['assertionConsumerService']['binding']}"
  31.                                       Location="{$sp['assertionConsumerService']['url']}"
  32. +                                     isDefault="true"
  33.                                       index="1" />
  34.          {$strAttributeConsumingService}
  35.      </md:SPSSODescriptor>{$strOrganization}{$strContacts}
RAW Paste Data
Top