简体   繁体   English

尝试登录WSO2 APIM时,为什么会得到“ uri:/carbon/admin/login.jsp,错误:请求的令牌丢失”的消息?

[英]Why am I getting “uri:/carbon/admin/login.jsp, error:required token is missing from the request” when trying to log into WSO2 APIM?

I configured my cluster in AWS for WSO2 API Manager, with load balancers for each section: The store, the publisher, the gateway managers and the gateway workers. 我在AWS中为WSO2 API Manager配置了群集,并为每个部分配备了负载均衡器:商店,发布者,网关管理器和网关工作程序。

However, when I try to log into the Store, the Publisher or Carbon, with the correct username and password, I get the following error in the logs: 但是,当我尝试使用正确的用户名和密码登录到Store,Publisher或Carbon时,在日志中出现以下错误:

ARN - JavaLogger potential cross-site request forgery (CSRF) attack thwarted
(user:<anonymous>, ip:10.0.1.125, method:HEAD, uri:/carbon/admin/login.jsp,
error:required token is missing from the request)

That's all the information the log gives me, and I know for sure the user/pass is correct. 这就是日志提供给我的所有信息,而且我确定用户/密码正确无误。 Why can't I log in? 为什么我不能登录?

I only posted this question for share the answer, because I couldn't find anything about it on Google. 我只发布此问题以分享答案,因为我在Google上找不到任何有关此问题的信息。

My problem was that the load balancer was configure to distribute the requests evenly among it's instances. 我的问题是负载平衡器配置为在实例之间平均分配请求。 So, when I tried to log in, the request always was sent to a different node, which by definition is a CSRF attack. 因此,当我尝试登录时,请求始终发送到另一个节点,根据定义,这是CSRF攻击。

As soon as I allowed those requests to be sticky, so a login request from a node goes to itself, the log in works. 一旦我允许这些请求变得棘手,所以来自节点的登录请求就转到了自己,登录就起作用了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 wso2 ei服务器,禁止错误403,不访问核心,错误:请求中缺少必需的令牌 - wso2 ei server, error 403 forbidden, Does not access the core, error:required token is missing from the request WSO2 AM2.0.0获利-错误wso2carbon.log:表ORG_WSO2_APIMGT_STATISTICS_REQUEST没有可用的架构 - WSO2 AM2.0.0 monetization - Error wso2carbon.log:No schema is available for table ORG_WSO2_APIMGT_STATISTICS_REQUEST 我安装了WSO2 AM(API Manager)1.10.0并使用了来自AM 1.9.0的user-mgt.xml,但是现在我无法登录carbon admin UI - I installed WSO2 AM(API Manager) 1.10.0 and used the user-mgt.xml from working AM 1.9.0, but now I cannot login to carbon admin UI 尝试保存具有多个URI查询参数的WSO2 ESB API时,为什么会收到此语法错误? - Why am I obtaining this syntax error when I try to save a WSO2 ESB API having multiple URI query parameters? 为什么在尝试从WSO2 ESB流执行此REST API POST请求时遇到此错误? - Why I obtain this error trying to perform this REST API POST request from WSO2 ESB flow? 如何在PHP中检索SAML2令牌以从WSO2 APIM获取OAuth令牌 - How to retrieve SAML2 token in PHP for getting an OAuth token from WSO2 APIM WSO2 APIM 令牌交换 - WSO2 APIM Token Exchange 防止 WSO2 AM 从请求中删除授权令牌 - Prevent WSO2 AM of dropping authorization token from request WSO2 APIM无法从商店创建访问令牌 - WSO2 APIM unable to create an access token from the store 错误:无法从 APIM Admin API 检索自定义 url 信息 - WSO2 API Manager Analytics - Error: Unable to retrieve custom url info from APIM Admin API - WSO2 API Manager Analytics
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM