WSO2 - 在自定义身份验证端点后重定向失败 POST

WSO2 - Fails to redirect after custom authentication endpoint POST

我创建了一个自定义身份验证端点,例如 https://www.custom-auth.localpc,当我尝试登录时,它被 WSO2 重定向到。 但是,当我单击“确定”并将 POST 发送回 http://localhost:9443/commonauth, WSO2 replies with a 302 that redirects to http://localhost:9443/https://www.custom-auth.localpc?loginStatus=true 时。

查看控制台日志时,发现如下错误:

ERROR {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} - Exception in Authentication Framework org.wso2.carbon.identity.application.authentication.framework.exception.FrameworkException: No authenticator can handle the request in step : 1

请求登录的服务提供商已正确配置,因为它使用 WSO2 默认身份验证端点。

有什么想法吗?

我认为这可能是因为 canHandle() 方法。你可以参考 other custom authenticators which are using external endpoint and try 这些是如何处理请求的。

所以,这个问题比我想的要简单得多。来自 wso2 的重定向更像是一个误导。

所以,提交数据时,usernamepassword字段必须小写

在 post 数据中发现的任何问题,它都会使用 302 重定向到 carbon 登录页面。