How can I force spring-saml-extension to re-authenticate everytime?

冷暖自知 提交于 2019-12-08 06:48:16

问题


I recently ran successfully the spring-saml-sample working with ADFS 2.0.

However I noticed that ADFS only ask me once my user/pass, and then I can enter as many times I want but always with the same user (even when I did a global logout).

Is seems there is a cookie or something stored locally that is sent to ADFS.

What if I want to authenticate with a different user on the same machine? How can I configure saml-extension in order to force authentication again?


回答1:


SAML contains a mechanism for forcing IDP to re-authenticate user called forced authentication. You can enable it by setting flag forceAuthn in WebSSOProfileOptions to true. You can find more details on setting this in the Spring SAML manual, chapter 9.2.1.




回答2:


In addition to Vladimir's answer, if you are able to continue login even after global logout has been done, you should check that as well. After global logout all SP and IDP sessions should be deleted and so ideally you should not be able to use the site.



来源:https://stackoverflow.com/questions/27828746/how-can-i-force-spring-saml-extension-to-re-authenticate-everytime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!