微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

其他端点无法访问 Cookie

如何解决其他端点无法访问 Cookie

我正在创建一个基于 saml 的 okta 身份验证,因为我有一个端点来验证来自 IDP 的 saml 响应并创建一个“org.apache.cxf.websso.context”cookie。

我在本地主机上运行应用程序。最初我试图访问 http://localhost:8080/application/endpoint,我目前没有登录它会将我重定向到 okta 进行身份验证。身份验证后重定向到另一个应用程序端点 (http://localhost:8080/saml/validate),该端点验证 saml 响应并创建 cookie。 Saml 验证端点将 cookie 保存在响应标头中并将其重定向到初始端点。

# If you remove all the syntactic sugar,what you are doing is this:
width = 600
height = 400
size = (width,height)

# But you can create the variables in the same line
width,height = 600,400
# Then assign it to size
size = width,height # is the same as saying size = (width,height)

# Then you can just put it all to the same line
size = width,400

但不知何故在重定向到初始 URI 过滤器服务后无法选择 cookie,因此它陷入了身份验证、cookie 创建和再次身份验证的循环中。

在这里做错了什么?

注意 - 我可以看到 cookie 正在保存,它只是由 http://localhost:8080/application/endpoint 创建的 cookie 不能被 http://localhost:8080/saml/validate 访问,反之亦然。>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。