Skip to content

SAML response is valid using www.samltool.com but fails on php-saml #167

@soltmar

Description

@soltmar

Hi,

I'm using Laravel with aacotroneo/laravel-saml2 package and php-saml toolkit (2.10)

When I take base64 encoded saml response and use SAML Tool website to

  1. Base64 DECODE
  2. Decrypt SAML Response
  3. Validate Saml Response

Resposne seems to be valid (and even without timing issues).
I've taken the same decoded and decrypted response inside of OneLogin_Saml2_Auth using Xdebug and it still passes through www.samltool.com

But when I'm trying to sign in using saml-php it fails giving "Reference validation failed".

In Xdebug it looks like xml is changed.
Script adds "default" to XML so it looks like < default:Assertion>...</default:Assertion>
Obviously as this XML is passed as a string to hash function it will give different hash result.

Any idea if this something on my end or problem with php-saml toolkit ?
Am I missing something ?

Let me know if you need more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions