java - Waffle authentication not working in Windows -
i'm trying use waffle in java tomcat 7 application, authentication windows isn't working.
i have web application works fine, added maven dependency waffle:
<dependency> <groupid>com.github.dblock.waffle</groupid> <artifactid>waffle-jna</artifactid> <version>1.7.4</version> </dependency>
and added filter in web.xml:
<filter> <filter-name>securityfilter</filter-name> <filter-class>waffle.servlet.negotiatesecurityfilter</filter-class> <init-param> <param-name>principalformat</param-name> <param-value>fqn</param-value> </init-param> <init-param> <param-name>roleformat</param-name> <param-value>both</param-value> </init-param> <init-param> <param-name>allowguestlogin</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>impersonate</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>securityfilterproviders</param-name> <param-value>waffle.servlet.spi.negotiatesecurityfilterprovider</param-value> </init-param> <init-param> <param-name>waffle.servlet.spi.negotiatesecurityfilterprovider/protocols</param-name> <param-value> ntlm negotiate </param-value> </init-param>
<filter-mapping> <filter-name>securityfilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
so, when access page, open login dialog , user logs in. problem i'm seeing when user has logged in once , dialog opens, user needs enter credentials again they're not getting saved. i've tried use waffle save credentials using sso, in console error:
[waffle.servlet.negotiatesecurityfilter] error logging in user: com.sun.jna.platform.win32.win32exception:
Comments
Post a Comment