问题
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