That very URL has code examples, there is nothing more to it, once you
have configured (as per the documentation) the SP and IDP correctly.
You don't programm the data exchange yourself, you use SimpleSAMLphp's
API to handle all that for you.
If you don't want that, feel free to try to implement the necessary
profiles yourself.
-peter
Most definitely not. That is not how SAML Web Browser SSO works. You
should read the SAML Tech Overview before continuing:
http://wiki.oasis-open.org/security/Saml2TechOverview
Bottom line: use HTTP-Redirect at the SP. It's simpler and is usually
the Right Thing To Do.
Tom
That's okay, I was a newbie at one time :-)
> I've successfully set up a simpleSAMLphp as my SP, but I'm getting the
> following error back from the IdP:
>
> "sspmod_saml_Error: Responder/InvalidNameIDPolicy: NameID Format not
> supported: urn:oasis:names:tc:SAML:2.0:nameid-format:transient"
>
> This happens after I'm successfully logged in from the IdP site, right
> when I'm redirected back to simpleSAMLphp's page.
>
> Any ideas on what could be causing this, or tips on how to investigate
> this better?
> Could this be a problem in the IdP itself?
So you don't control the IdP, right? Well, the IdP wants some other
NameID, that's clear as day. Does the IdP say (in its metadata) what
NameIDs it supports? If not, you'll have to determine that out of band
and configure your SP accordingly.
Tom
To what? (I'm just curious :)
> The weird thing is that the IdP metadata says it supports
> "urn:oasis:names:tc:SAML:2.0:nameid-format:transient"; I guess they're
> broadcasting that wrong.
Well, no, the IdP can say it supports a lot of things, but in the end
it depends on what it receives in the AuthnRequest and a host of other
things. Does the IdP call out other NameID formats in its metadata?
I don't know how SSP treats NameIDFormat in metadata on both ends. Can
someone say a few words about that?
Thanks,
Tom
If I recall correctly:
- The SP ignores it and requests whatever format is in its
configuration.
- The IdP uses the first entry as a default format if the SP doesn't
request a specific NameID format.
Regards,
Olav Morken
UNINETT / Feide
No, I mean how did you change your SP configuration? What did you
change NameIDFormat to so it worked? After you changed your config,
did you supply the IdP with new metadata?
>> Does the IdP call out other NameID formats in its metadata?
>
> Yes, the IdP metadata contains 4 different NameIDs. Here:
>
> <NameIDFormat>urn:mace:shibboleth:1.0:nameIdentifier</NameIDFormat>
> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</
> NameIDFormat>
> <NameIDFormat>urn:clareity:safemls:nameid-format:loginid</
> NameIDFormat>
> <NameIDFormat>com.clareity.safemls:nameid-format:loginid</
> NameIDFormat>
So which one of these did you end up using?
Tom
If you don't configure SS to expect the format returned, then it doesn't
like it.
thanks,
Paul
>--
>You received this message because you are subscribed to the Google Groups
>"simpleSAMLphp" group.
>To post to this group, send email to simple...@googlegroups.com.
>To unsubscribe from this group, send email to
>simplesamlph...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/simplesamlphp?hl=en.
>
I was wrong before. When you ask for a transient identifier, you
should receive a transient identifier, not because the transient
format appears in metadata, but because of the following requirement
in SAML V2.0 Core:
"When a Format defined in Section 8.3 other than
urn:oasis:names:tc:SAML:1.1:nameid- format:unspecified or
urn:oasis:names:tc:SAML:2.0:nameid-format:encrypted is used, then if
the identity provider returns any assertions: the Format value of the
<NameID> within the <Subject> of any <Assertion> MUST be identical to
the Format value supplied in the <NameIDPolicy>."
If the IdP can't (or won't) honor the request, it must return an error
(which it apparently did it your case).
On the SP side, if you ask for a particular format, you should expect
to receive it, but of course you can't guarantee that an IdP will
behave according to the spec. So the SP should have some way to check
make sure it receives a NameID of a particular format.
Tom
If that were true, it would be a bug in your IdP implementation, but
it's not true since the error message posted earlier in this thread
was an IdP error message.
> If you don't configure SS to expect the format returned, then it doesn't
> like it.
That doesn't appear to be what's going on here. AFAICT, the SP asked
for transient and the IdP returned an error. Then the SP asked for the
custom NameID and received it. If all that's true, you should probably
adjust the IdP metadata to reflect its actual policy.
Tom