Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

symfony5 - SAML unexpected response

I'm trying to set up a SAML authentication with a ADFS IPD on a Symfony Project using hslavich/oneloginsamlbundle. I already succeed with it a few times before but this time, it seems it's a more general question.

The response that I get from the IDP is quite confusing as I get tags in XML that aren't prefixed by "saml:". For example, I have

<Assertion ID="..." IssueInstant="2021-01-07T11:22:41.094Z" Version="2.0" xmlns="urn:oasis:names:tc:SAML:2.0:assertion">

where I expect something like

<saml:Assertion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" ID="_d71a3a8e9fcc45c9e9d248ef7049393fc8f04e5f75" Version="2.0" IssueInstant="2014-07-17T01:01:48Z">

This difference obviously make the Response controller throw an exception as it doesn't get the needed informations and my contact at the IDP provider tell me he can't do anything as all the output is generated following the metadata informations.

So finally my question : is there any way to specify the response format I need in the metadata (below) ?

<md:EntityDescriptor validUntil="2021-01-09T09:43:30Z" cacheDuration="PT604800S" entityID="https://myurl.com/saml/metadata">
<md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://myurl.com/saml/logout"/>
<md:NameIDFormat>
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
</md:NameIDFormat>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://myurl.com/saml/acs" index="1"/>
</md:SPSSODescriptor>
</md:EntityDescriptor>

Any help is appreciated


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...