O.Palm
O.Palm

Reputation: 162

Get IDP params on my SP with PHP

I configured an SP server with Shibboleth and Apache. The communication with the IDP works, but I don't receive data after login on my SP.

I search on $_GET, $_POST, $_COOKIE, $_SESSION, and $_SERVER, but i don't get the IDP parameters on PHP.

When i visit the url "https://mydomain.ext/Shibboleth.sso/Session", the Attributes is empty.

I would like how to know receive parameters on PHP.

Thank's

Upvotes: 1

Views: 313

Answers (1)

codebrane
codebrane

Reputation: 4620

The Shibboleth SP needs to be told to accept attributes. e.g. in

SHIBBOLETH_HOME/etc/shibboleth/attribute-map.xml

<Attribute name="urn:oid:0.0.7" id="CB_InterestingAttribute">
  <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>
</Attribute>

and in, for example, a Sinatra app you can access it via:

ENV['CB_InterestingAttribute']

Upvotes: 1

Related Questions