<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>AutoLoginFilter Import Failed in Class file</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121775375" />
  <subtitle>AutoLoginFilter Import Failed in Class file</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121775375</id>
  <updated>2026-04-04T00:57:55Z</updated>
  <dc:date>2026-04-04T00:57:55Z</dc:date>
  <entry>
    <title>RE: AutoLoginFilter Import Failed in Class file</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121776542" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121776542</id>
    <updated>2023-05-11T07:09:26Z</updated>
    <published>2023-05-11T07:09:25Z</published>
    <summary type="html">&lt;p&gt;AutoLoginFilter is packaged in portal-impl, which is not exported -
  thus you can't have external modules depend on it.&lt;/p&gt;
&lt;p&gt;That being said, you can just add another filter that is completely
  independent of AutoLoginFilter and do the additional work there - you
  don't need to depend on that component just to provide more data to
  the session. Your filters have a declarable order (as you're already
  using in your sample), so you can pick where your filter should be in
  the chain - before or after the original AutoLoginFilter.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-05-11T07:09:25Z</dc:date>
  </entry>
  <entry>
    <title>AutoLoginFilter Import Failed in Class file</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121775374" />
    <author>
      <name>Anish Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121775374</id>
    <updated>2023-05-10T14:18:54Z</updated>
    <published>2023-05-10T10:06:12Z</published>
    <summary type="html">&lt;p&gt;I am trying to override the implementation of
  &lt;strong&gt;com.liferay.portal.security.sso.openid.connect.internal.servlet.filter.auto.login.OpenIdConnectAutoLoginFilter&lt;/strong&gt;
  to set some additional session data to the session before granting the
  authentication. For this while I am creating my own filter which
  extends
  &lt;strong&gt;com.liferay.portal.servlet.filters.autologin.AutoLoginFilter&lt;/strong&gt; the
  eclipse showing class not found in the import statement.&lt;/p&gt;
&lt;p&gt;Below is the Custom Filter class I am trying to create.
    The &lt;strong&gt;import
  com.liferay.portal.servlet.filters.autologin.AutoLoginFilter; &lt;/strong&gt; shows
  could not resolve;&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;import com.liferay.portal.servlet.filters.autologin.AutoLoginFilter;
import javax.servlet.Filter;
import org.osgi.service.component.annotations.Component;
import com.liferay.portal.security.sso.openid.connect.constants.OpenIdConnectConstants;


@Component(
	configurationPid = &amp;quot;com.liferay.portal.security.sso.openid.connect.configuration.OpenIdConnectConfiguration&amp;quot;,
	property = {
		&amp;quot;after-filter=Virtual Host Filter&amp;quot;, &amp;quot;servlet-context-name=&amp;quot;,
		&amp;quot;servlet-filter-name=SSO OpenId Connect Auto Login Filter&amp;quot;,
		&amp;quot;url-pattern=&amp;quot; + OpenIdConnectConstants.REDIRECT_URL_PATTERN
	},
	service = {Filter.class}
)
public class CustomOpenIdConnectAutoLoginFilter extends AutoLoginFilter {

}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Below is the present gradle.build file&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-javascript"&gt;dependencies {
	compileOnly group: &amp;quot;com.liferay.portal&amp;quot;, name: &amp;quot;release.portal.api&amp;quot;

	cssBuilder group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.css.builder&amp;quot;, version: &amp;quot;3.1.0&amp;quot;
	
	compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.portal.security.sso.openid.connect.impl&amp;quot;, version: &amp;quot;7.0.21&amp;quot;

	compileOnly group: &amp;quot;com.liferay.portal&amp;quot;, name: &amp;quot;com.liferay.portal.kernel&amp;quot;, version: &amp;quot;3.0.0&amp;quot;

	compileOnly group: &amp;quot;javax.servlet&amp;quot;, name: &amp;quot;javax.servlet-api&amp;quot;, version: &amp;quot;3.0.1&amp;quot;
	
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do I need to add any gradle dependancy to get this class in my
  portlet module.&lt;br&gt; Let me know your suggestions.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Anish Kumar</dc:creator>
    <dc:date>2023-05-10T10:06:12Z</dc:date>
  </entry>
</feed>
