我正在尝试实施 SAML2 SSO,但收到错误saml2.sigver.SignatureError: Signature missing for response。我正在使用djangosaml2,反过来使用pysaml2。寻找签名时似乎遇到了问题:https://github.com/IdentityPython/pysaml2/blob/master/src/saml2/sigver.py#L1648
看起来它正在尝试在响应属性中查找签名,但是我的 IDP 在响应属性中没有返回签名,但是可以在响应中找到签名作为其自己的元素ns2:Signature。
我是否应该要求 IDP 提供不同的响应,或者我是否缺少配置选项?
Login process started
Trying binding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST for IDP None
Redirecting user to the IdP via urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST binding.
Saving the session_id in the OutstandingQueries cache
Invalid or malformed SAML Assertion.
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/djangosaml2/views.py", line 271, in assertion_consumer_service
response = client.parse_authn_request_response(xmlstr, BINDING_HTTP_POST, outstanding_queries)
File "/usr/local/lib/python3.4/dist-packages/saml2/client_base.py", line 712, in parse_authn_request_response
binding, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/saml2/entity.py", line 1150, in …Run Code Online (Sandbox Code Playgroud) 尝试测试一些拖放功能,看起来剧作家没有拖放功能,所以我使用mouse.move(), mouse.down()& mouse.up()。
然而我的尝试似乎失败了,目标没有被移动。代码如下:
test("drag and drop test", async () => {
await page.goto("https://www.w3schools.com/html/html5_draganddrop.asp");
await page.waitForSelector("#accept-choices");
await page.click("#accept-choices");
await page.waitForSelector("#div1");
let xStart, yStart, xFinish, yFinish, elementHandle, rect;
elementHandle = await page.$("#div1");
rect = await elementHandle.boundingBox();
xStart = rect.x + rect.width / 2;
yStart = rect.y + rect.height / 2;
elementHandle = await page.$("#div2");
rect = await elementHandle.boundingBox();
xFinish = rect.x + rect.width / 2;
yFinish = rect.y + rect.height / 2;
console.log(`move from (${xStart}, ${yStart}) to …Run Code Online (Sandbox Code Playgroud)