java在自定义KeyClope SPI验证器中处理用户的取消
我需要在自定义KeyClope SPI验证器中处理用户的取消。 我实现了它,效果很好。所有我需要的是取消登录流,并从乞讨开始,当用户点击取消
@Override
public void action(AuthenticationFlowContext context) {
logger.debug("action called ... context = " + context);
String cancel = context.getHttpRequest().getDecodedFormParameters().getFirst("cancel");
if (cancel != null) {
context.cancelLogin();
context.resetFlow();
return;
}
// OK handling...
}
在我的情况下,我得到的是登录页面,但URL错误:
当我第一次进入安全页面时,不是这样的URL:
# 1 楼答案
啊,我所需要的就是只留下一行(或者在返回之前放在最后一行):
在我的自定义应用程序上,我需要使用KK将重定向给我的参数来处理端点