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

身份验证上下文为空,获取错误页面

如何解决身份验证上下文为空,获取错误页面

可以使用以下步骤重新创建此内容

  1. 创建有效的登录请求。
  2. 在浏览器中点击返回
  3. 尝试使用有效凭据登录
TID: [-1234] [] [2021-02-15 17:31:28,787] [6b1c0dfe-00f5-485a-9d33-443a4d4790ca] ERROR {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} - Context does not exist. Probably due to invalidated cache. Requested client: my ip,URI :POST:/commonauth,User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/88.0.4324.150 Safari/537.36,Referer: https://aisoip-dev2.alseco.kz/authenticationendpoint/login.do?%3Fclient_id=Qlf9xILuytVmWx915VTdqOuyxkoa&commonAuthCallerPath=%2Foauth2%2Fauthorize&forceAuth=false&nonce=9VPTztKjSDA2dSKblCNjqPG4swm8Ah-KO3YHEX708Bg&passiveAuth=false&redirect_uri=https%3A%2F%2Faisoip-tst2.alseco.kz%2Fauth&response_type=code&scope=openid&state=vH2oJ7aDTFOj6mjplSaHEECpG1qdR_rq0JrkqSflGPQ%3D&tenantDomain=carbon.super&sessionDataKey=4eecaf00-8e55-45d5-94f3-d5e77ae3dba7&relyingParty=Qlf9xILuytVmWx915VTdqOuyxkoa&type=oidc&sp=AISOIP&isSaaSApp=false&authenticators=BasicAuthenticator%3ALOCAL%3BAuthCertificateAuthenticator%3ALOCAL%3ALOCAL&authFailure=true&authFailureMsg=login.fail.message
TID: [-1234] [] [2021-02-15 17:31:28,794] [6b1c0dfe-00f5-485a-9d33-443a4d4790ca]  WARN {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} - Authentication context is null,redirect parameter filtering will not be done for 4eecaf00-8e55-45d5-94f3-d5e77ae3dba7

解决方法

两次使用相同的 sessionDataKey 会导致返回身份验证上下文为 null,最终会出现错误页面。 如果您按照 handling browser back button and bookmarked login page 操作,可以使用浏览器银行按钮支持和使用登录页面保存的链接而不会出现此类错误。

您在这里要做的是,添加一个注册资源,该资源将包含您配置的不同服务提供商的重定向 URL。

  1. 通过登录管理控制台导航到主菜单 -> 注册表 -> 浏览
  2. 通过选择方法创建文本内容并提供资源名称relyingPartyRedirectUrls
  3. ,在/_system/config/identity/config下添加资源
  4. 导航到创建的 relyingPartyRedirectUrls 资源并添加属性。
  5. 属性名称应为依赖方名称,值应为重定向 URL
  • 如果您要为 SAML 应用配置此项:属性名称 -> 应用的“发行者名称”

  • 如果您为 Oauth 应用程序配置此:属性名称 -> 应用程序的“OAuth 客户端密钥”

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