authenticate user through external authetication systemauthenticate user through external authetication systemhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=188843312024-03-29T04:34:41Z2024-03-29T04:34:41ZRE: authenticate user through external authetication systemasif aftabhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1189930802020-04-21T08:06:04Z2020-04-21T08:06:04Z<div class="quote-title">Christoph Rabel:</div><blockquote><br />The NtlmFilter only applies to /c/portal/login. I am not sure, if that can be changed and the filter also applied to other url patterns. Maybe somebody else has an idea here.<br /><a href="https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/portal-security-sso-ntlm/portal-security-sso-ntlm-impl/src/main/java/com/liferay/portal/security/sso/ntlm/internal/servlet/filter/NtlmFilter.java">https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/portal-security-sso-ntlm/portal-security-sso-ntlm-impl/src/main/java/com/liferay/portal/security/sso/ntlm/internal/servlet/filter/NtlmFilter.java</a></blockquote><br />Thank you so muchasif aftab2020-04-21T08:06:04ZRE: authenticate user through external authetication systemasif aftabhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1186899502020-03-09T04:02:08Z2020-03-09T04:02:08ZThat didn't worked, then we changed something in liferay-web.xml file and the changes are <br /><br /><filter-mapping><br /> <filter-name><strong>WebDAV Servlet Filter</strong></filter-name><br /> <url-pattern>/webdav/*</url-pattern><br /> <dispatcher>FORWARD</dispatcher><br /> <dispatcher>INCLUDE</dispatcher><br /> <dispatcher>REQUEST</dispatcher><br /> </filter-mapping><br /><br />if we hit webdav servlet url then <br /><filter><br /> <filter-name>WebDAV Servlet Filter</filter-name><br /> <filter-class>com.liferay.portal.servlet.filters.secure.SecureFilter</filter-class><br /> <init-param><br /> <param-name>digest_auth</param-name><br /> <param-value>true</param-value><br /> </init-param><br /> <init-param><br /> <param-name>portal_property_prefix</param-name><br /> <param-value>webdav.servlet.</param-value><br /> </init-param><br /> </filter><br /><br />this filter invoke we changed here <br /><filter-mapping><br /> <filter-name><strong>Auto Login Filter</strong></filter-name><br /> <url-pattern>/webdav/*</url-pattern><br /> <dispatcher>FORWARD</dispatcher><br /> <dispatcher>INCLUDE</dispatcher><br /> <dispatcher>REQUEST</dispatcher><br /> </filter-mapping><br /><br />Now on hitting /webdav/ url it is invoking our autologin hook. Here we are passing userid in url so autologin would work.But one problem is that we are not getting userid in webdavservlet then we created a component and extends httpservlet then we mention this class in web.xml by replacing <br /><br /><servlet><br /> <servlet-name>WebDAV Servlet</servlet-name><br /> <servlet-class><strong>com.liferay.portal.webdav.WebDAVServlet</strong></servlet-class><br /> <load-on-startup>1</load-on-startup><br /> <async-supported>true</async-supported><br /> </servlet><br /><br /><servlet><br /> <servlet-name>WebDAV Servlet</servlet-name><br /> <servlet-class><strong>my.custom.webdav.CustomWebDAVServlet</strong></servlet-class><br /> <load-on-startup>1</load-on-startup><br /> <async-supported>true</async-supported><br /> </servlet><br />CustomWebDAVServlet this module project we placed inside tomcat/lib/ext folder so class would be available at the time of server starting.<br />But all these changes are not recommended but have to do bcz have to finish my task.asif aftab2020-03-09T04:02:08ZRE: authenticate user through external authetication systemChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185723872020-02-23T11:00:56Z2020-02-23T11:00:56ZThe NtlmFilter only applies to /c/portal/login. I am not sure, if that can be changed and the filter also applied to other url patterns. Maybe somebody else has an idea here.<br /><a href="https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/portal-security-sso-ntlm/portal-security-sso-ntlm-impl/src/main/java/com/liferay/portal/security/sso/ntlm/internal/servlet/filter/NtlmFilter.java">https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/portal-security-sso-ntlm/portal-security-sso-ntlm-impl/src/main/java/com/liferay/portal/security/sso/ntlm/internal/servlet/filter/NtlmFilter.java</a>Christoph Rabel2020-02-23T11:00:56ZRE: authenticate user through external authetication systemasif aftabhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1185703382020-02-22T07:45:12Z2020-02-22T07:45:12ZI want to login using autlogin when someone hit webdav url.<br />Is it possible to do in liferay ?<br />I tried but not workingasif aftab2020-02-22T07:45:12ZRE: authenticate user through external authetication systemHitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=188934082012-12-31T07:36:35Z2012-12-31T07:36:35ZSamuel, isn't that to get valid user/password pair rather than validate user credentials?<br /><br /><blockquote> These classes will run in consecutive order for all unauthenticated users until one of them returns a valid user id and password combination.</blockquote><br />http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/auto-login<br /><br />I thought it was more of creating a custom Authentication Pipeline.<br /><br /><blockquote>##<br />## Authentication Pipeline<br />##<br /><br /> #<br /> # Input a list of comma delimited class names that implement<br /> # com.liferay.portal.security.auth.Authenticator. These classes will run<br /> # before or after the portal authentication begins.<br /> #<br /> # The Authenticator class defines the constant values that should be used<br /> # as return codes from the classes implementing the interface. If<br /> # authentication is successful, return SUCCESS; if the user exists but the<br /> # passwords do not match, return FAILURE; and if the user does not exist on<br /> # the system, return DNE.<br /> #<br /> # Constants in Authenticator:<br /> # public static final int SUCCESS = 1;<br /> # public static final int FAILURE = -1;<br /> # public static final int DNE = 0;</blockquote><br /><br /> # In case you have several classes in the authentication pipeline, all of<br /> # them have to return SUCCESS if you want the user to be able to login. If<br /> # one of the authenticators returns FAILURE or DNE, the login fails.<br /><br />====================<br /> #<br /> # Set this to true to enable password checking by the internal portal<br /> # authentication. If set to false, you're essentially delegating password<br /> # checking is delegated to the authenticators configured in<br /> # "auth.pipeline.pre" and "auth.pipeline.post" settings.<br /> #<br /> auth.pipeline.enable.liferay.check=trueHitoshi Ozawa2012-12-31T07:36:35ZRE: authenticate user through external authetication systemSamuel Konghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=188931672012-12-31T06:40:29Z2012-12-31T06:40:29ZLook into the "auto.login.hooks" portal property. You'll need to implement your own AutoLogin class and add your class to this property.Samuel Kong2012-12-31T06:40:29Zauthenticate user through external authetication systemDipanjan Dashttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=188843302012-12-29T