在Spring安全Saml中是否有办法根据请求参数设置forceAuthn = true。 https://stackoverflow.com/a/27833355/2587871根据请求覆盖该值?
基本上作为服务提供我们使用Oauth和SAML idp。因此,当客户端发送prompt = login时,我们也想在SAML方面兑现它。
我能够使用以下选项实现此功能。
WebSSOProfileOptions webProfile = super.getProfileOptions(context, exception);
if(prompt=login){
webProfile.setForceAuthN(true);
}
return webProfile;