Hi,
Apart from what Peter just said:
That’s perfectly legal XML and a perfectly legal SAML authentication request.
> Regarding the request it should have the following structure, so I also need to have the
>
> <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">Issuer but with and xmlns:saml attribute</saml:Issuer>
No, it shouldn’t. Whether the IdP *wants* it to be like that is a different question.
> Making the head of the request required to be the following manner:
>
> <samlp:AuthnRequest
> ID="_1e736a31-a41c-4c35-b17f-0f9ab4c741b3"
> Version="2.0"
> IssueInstant="2011-02-17T11:15:24Z"
> Destination="DestinationURLOFIDP"
> ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
> AssertionConsumerServiceURL="ACS-URL"
> ProviderName="Service Provider Name"
> xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
> <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">ISSUER</saml:Issuer>
That’s not wrong, but it implies the IdP is broken. If their code isn’t able to parse the SAML authentication request they get, then their code is completely broken, so that’s what should be fixed.
> Is there any way to add ProviderName using saml authsources.php or idp-remote.php and set the attribute assertion from the authnrequest to the issuer?
No.
> This IDP doesn't expose a metadata.xml anywhere, unable to get full metadata.xml.
Not really a surprise…
This IdP sounds like a home-made implementation of SAML, and it is broken in many ways. I’d recommend them to use some well established implementation and stop using their own. Of course, they can always fix their own implementation, but if they are not even able to parse XML code correctly, I’d suggest them to avoid that at all expense and go for something done by someone who knows what they are doing. XML and SAML are complex, so it’s always a good idea to avoid custom-made implementations.
—
Jaime Pérez
UNINETT / Feide
jaime...@uninett.no
jaime...@protonmail.com
9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2
"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost