设置DigestMethod和SignatureMethod以避免SAML“过时请求”

2024-04-19 13:13:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用OneLogin flask-saml2 SP(使用python3)连接到SAMLtest.id IDP测试站点,但是当我运行SP并尝试连接到SAMLtest.id时,返回了一个“过时请求”

IDP日志显示:

2021-01-21 23:27:24243-错误[org.opensaml.profile.action.impl.DecodeMessage:?]-配置文件操作DecodeMessage:无法解码传入请求 org.opensaml.messaging.decoder.MessageDecodingException:此消息解码器仅支持HTTP POST方法 位于org.opensaml.saml.saml2.binding.decoding.impl.HTTPPostDecoder.doDecode(HTTPPostDecoder.java:82) 2021-01-21 23:27:24244-警告[org.opensaml.profile.action.impl.LogEvent:?]-处理请求时发生未继续事件:UnableToDecode 2021-01-21 23:27:24244-调试[org.opensaml.saml.common.profile.logic.DefaultLocalErrorPredicate:?]-没有可用的SAMLBindingContext或绑定URI,错误必须在本地处理

在搜索网页时,有人建议我需要设置“DigestMethod”和“SignatureMethod”

有人知道我应该在flask-saml2代码中设置它们的位置或方式吗


Tags: orgidflask错误samlidpsaml2action