* Leon Stringer <
leon.stringer%ntlwor...@gtempaccount.com> [2014-07-17 11:54]:
> I'm assuming that if I set "attributes.required" for my SP then users that
> don't have these would be turned away.
No, the documentation is not really clear about its use, though.
attributes.required
If you have attributes added you can here specify which should be
marked as required. The attributes should still be present in attributes.
That should probably say "should be marked as required in the
generated SAML metadata describung this SAML SP" (i.e., setting
isRequired="true" on the referenced attributes).
So this is about signalling to the IDP what attributes the SP needs in
order to work. The IDP is free to ignore that and send you something
else, or nothing. That's a fact of distributed systems / federation.
What you're talking about is authorization and enforcing of specific
attributes in your application. Refer to the SSP SP API docs on how to
do that,
https://simplesamlphp.org/docs/stable/simplesamlphp-sp-api
(e.g. call requireAuth() or login(), then getAttributes() and perform
any checks yourself in PHP code based on the attributes present.)
-peter