How to use WAFFLE for SSO using stand alone java client

南笙酒味 提交于 2019-12-11 02:05:58

问题


We are trying to use WAFFLE for SSO using a standalone java client with JAAS. We've mentioned waffle.jaas.WindowsLoginModule in our jaas.conf but it is prompting for user name, password which we believe is not an ideal solution for SSO. Can any one suggest how to avoid this?

FYI - We aren't using any web/app server.


回答1:


I believe you will need both a server and client for SSO. You can have a look at this example, it doesn't use the login module but the underlying WindowsSecurityContext classes included in WAFFLE to pass the kerberos tokens back and forth to get the logged in user.




回答2:


Instead of using the waffle and making it complicated. You can easily use the System.getProperty(“user.name”) would provide the user name.



来源:https://stackoverflow.com/questions/29765414/how-to-use-waffle-for-sso-using-stand-alone-java-client

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