Receive IDP parameters in SP with PHP

0

I have configured an SP server with Shibboleth and Apache, the communication with the IDP is correct, but I do not receive any data in PHP after login.

I look for the variables $ _GET, $ _POST, $ _COOKIE, $ _SESSION, and $ _SERVER, but I can not see the parameters the IDP sends me.

If I access the URL " link " the "Attributes" section is empty.

I would like to receive the data to the PHP code in the SP to handle them. Any ideas?

Thank you very much.

    
asked by O.Palm 10.10.2017 в 11:20
source

1 answer

1

Well, apparently the solution is in 2 steps,

  • Enable the sending of parameters from the IDP to the SP,
  • Modify the "attribute-map.xml" file, declaring the attributes with their correct types.

Following this information;

link

and this one;

link

It will give us clues about how we should modify our "atribute-map.xml" file, in my case it stayed like this;

<Attributes xmlns="urn:mace:shibboleth:2.0:attribute-map" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" id="emailaddress" />
    <Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier" id="nameidentifier" />
    <Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname" id="givenname" />
    <Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname" id="surname" />
</Attributes>

I hope it helps you too. Salu2

    
answered by 13.10.2017 / 09:26
source