简体   繁体   English

如何验证用户是否已经登录到ADFS

[英]how to verify if user already login to ADFS

My web app need to authenticate with ADFS for single sign on (SSO). 我的Web应用程序需要通过ADFS进行身份验证才能进行单点登录(SSO)。 Which mean if user is already login to ADFS, when user access web app, web app need to verify if the user is already login to ADFS. 这意味着如果用户已经登录到ADFS,则当用户访问Web应用程序时,Web应用程序需要验证用户是否已经登录到ADFS。 If yes then redirect user to page 1, else page 2. I am using java-saml from ( https://github.com/mguessan/java-saml ). 如果是,则将用户重定向到第1页,否则将其重定向到第2页。我正在使用来自( https://github.com/mguessan/java-saml )的java-saml。 Is it possible to verify if the user is already login to ADFS? 是否可以验证用户是否已经登录到ADFS?

Looking at https://github.com/mguessan/java-saml , it seems it does not provide a Servlet Filter implementation, like eg Spring Security SAML implementation or other toolkit are doing it. 看着https://github.com/mguessan/java-saml ,似乎它没有提供Servlet Filter实现,例如Spring Security SAML实现或其他工具包正在这样做。 If you always want to do SSO (and do not want to provide a local login), it might be best to create a filter on your own and directly trigger so called SP-initiated SSO flow to ADFS based SAML IdP. 如果您始终希望执行SSO(并且不想提供本地登录名),则最好自行创建一个过滤器,然后直接将所谓的SP发起的SSO流触发到基于ADFS的SAML IdP。 Just have a look at https://github.com/mguessan/java-saml/blob/master/samples/java-saml-tookit-jspsample/src/main/webapp/dologin.jsp 只需看看https://github.com/mguessan/java-saml/blob/master/samples/java-saml-tookit-jspsample/src/main/webapp/dologin.jsp

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM