在 ASP.NET Core 3.1 中找不到 Sustainsys /Saml2/Acs url
Sustainsys /Saml2/Acs url not found in ASP.NET Core 3.1
我正在尝试在 ASP.NET Core 3.1 网络应用程序中使用 Sustainsys 的 Saml2 作为服务提供商。我正在使用 nuget 包 Sustainsys.Saml2.AspNetCore2
。它与 docker container kristophjunge/test-saml-idp 中的本地测试 IDP 一起工作正常,但是当我将该站点部署到 Azure 时,无法找到断言的 url /Saml2/Acs
。
这发生在用户被发送到 Azure B2C IDP 进行登录后,用户登录成功,然后 Azure B2C 调用了 /Saml2/Acs
的断言消费者服务,但 Azure B2C 无法访问它。然而,元数据 url /Saml2
是可以访问的。
根据 Sustainsys docs:
The ASP.NET Core 2 Handler is compatbile with the ASP.NET Core 2.X and 3.X authentication model.
什么可能遗漏或错误?有人可以确认 nuget 包可以在 ASP.NET Core 3.x 中使用吗?
谢谢
如果元数据 URL /Saml2 响应,处理程序是 运行。
您确定 /Saml2/Acs 不可访问吗?不就是配置错误导致响应验证失败?你在日志中看到了什么吗?
我正在尝试在 ASP.NET Core 3.1 网络应用程序中使用 Sustainsys 的 Saml2 作为服务提供商。我正在使用 nuget 包 Sustainsys.Saml2.AspNetCore2
。它与 docker container kristophjunge/test-saml-idp 中的本地测试 IDP 一起工作正常,但是当我将该站点部署到 Azure 时,无法找到断言的 url /Saml2/Acs
。
这发生在用户被发送到 Azure B2C IDP 进行登录后,用户登录成功,然后 Azure B2C 调用了 /Saml2/Acs
的断言消费者服务,但 Azure B2C 无法访问它。然而,元数据 url /Saml2
是可以访问的。
根据 Sustainsys docs:
The ASP.NET Core 2 Handler is compatbile with the ASP.NET Core 2.X and 3.X authentication model.
什么可能遗漏或错误?有人可以确认 nuget 包可以在 ASP.NET Core 3.x 中使用吗?
谢谢
如果元数据 URL /Saml2 响应,处理程序是 运行。
您确定 /Saml2/Acs 不可访问吗?不就是配置错误导致响应验证失败?你在日志中看到了什么吗?