Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

spring - saml2 metadata doesn't have prefix namespaces (IdP and SP)

I am currently trying to solve a problem where sometimes the user logs in and he is welcomed with a 405, usually if the cache is cleared for the past hour the problem disappears. So by trying to figure out this problem I was checking the metadatas of both the IdP and my SP.

Idp Start

    <EntityDescriptor ID="IDP_ID" entityID="IDP_IDE">
    <ds:Signature>

SP start

<md:EntityDescriptor ID="SP_ID" entityID="SP_IDE">
<ds:Signature>

I asked the IdP manager if he could check my metadata to see if something was wrong and he responded that an error occured (Entity descriptor. No corresponding start element is open)

So I chcked my metadata with this tool and oh boy so many errors regarding the prefix namespace not declared (https://www.samltool.com/validate_xml.php) Also tested the IdP one and the same errors occured there.

Tried to check if I could add the namespaces myself on spring security but had no luck.

Is there a solution to this prefix problem? The metadata is generated automatically upon request so modifying the xml manually is a nono

question from:https://stackoverflow.com/questions/65844009/saml2-metadata-doesnt-have-prefix-namespaces-idp-and-sp

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

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...