<?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>How to force Liferay 7.2.1Ga2 to use my Custom Implementation</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119424161" />
  <subtitle>How to force Liferay 7.2.1Ga2 to use my Custom Implementation</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119424161</id>
  <updated>2026-04-03T22:22:33Z</updated>
  <dc:date>2026-04-03T22:22:33Z</dc:date>
  <entry>
    <title>RE: How to force Liferay 7.2.1Ga2 to use my Custom Implementation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119435462" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119435462</id>
    <updated>2020-06-18T15:21:32Z</updated>
    <published>2020-06-18T15:21:32Z</published>
    <summary type="html">You can at least skip the first step you mention in the thread above.&lt;br /&gt;&lt;br /&gt;Just copy the query paramters from the URL when you click on the &amp;#34;OpenID Connect&amp;#34; button in your login page. Paste the query parameters (without the leading question mark) into the &amp;#34;query parameters&amp;#34; field in the page configuration.</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-06-18T15:21:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to force Liferay 7.2.1Ga2 to use my Custom Implementation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119432314" />
    <author>
      <name>Axel LEFEVRE</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119432314</id>
    <updated>2020-06-18T10:31:11Z</updated>
    <published>2020-06-18T10:31:11Z</published>
    <summary type="html">Hi Dominik,&lt;br /&gt;&lt;br /&gt;Thanks a lot, it works like a charm !!&lt;br /&gt;&lt;br /&gt;Did you by anychance also change the Liferay flow for the connexion ?&lt;br /&gt;I need to have only a &amp;#34;Sign In&amp;#34; button that will go to my keycloak login page.&lt;br /&gt;&lt;br /&gt;My question is similar to the one in the Thread : https://liferay.dev/forums/-/message_boards/message/110950730</summary>
    <dc:creator>Axel LEFEVRE</dc:creator>
    <dc:date>2020-06-18T10:31:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to force Liferay 7.2.1Ga2 to use my Custom Implementation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119422640" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119422640</id>
    <updated>2020-06-17T14:39:25Z</updated>
    <published>2020-06-17T14:39:25Z</published>
    <summary type="html">I did a custom implementation of a OpenIdConnectUserInfoProcessor for Liferay 7.1.3 GA 4 once. There I found that the package of OpenIdConnectUserInfoProcessor (com.liferay.portal.security.sso.openid.connect.internal) was not exported by the MANIFEST.MF, so without any further customization I was not able to use that package.&lt;br /&gt;&lt;br /&gt;Maybe the same or a similar issue is the reason for your problem?&lt;br /&gt;&lt;br /&gt;Here is a link to a blog post which contains the above issue as a part of the post, including a link to the source code I used. Maybe it helps.&lt;br /&gt;&lt;br /&gt;​​​​​​​&lt;a href="https://liferay.dev/blogs/-/blogs/integrating-verimi-with-liferay"&gt;https://liferay.dev/blogs/-/blogs/integrating-verimi-with-liferay&lt;/a&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-06-17T14:39:25Z</dc:date>
  </entry>
  <entry>
    <title>How to force Liferay 7.2.1Ga2 to use my Custom Implementation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119424160" />
    <author>
      <name>Axel LEFEVRE</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119424160</id>
    <updated>2020-06-17T13:34:22Z</updated>
    <published>2020-06-17T13:34:22Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;&lt;br&gt;I'm want to override OpenIdConnectUserInfoProcessorImpl. So I created my custom implementation like this (for testing) : &lt;br&gt;&lt;pre&gt;&lt;code&gt;
    @Component(immediate = true,
        property = {
            "service.ranking:Integer=100"
        },
        service = OpenIdConnectUserInfoProcessor.class)
public class CustomOpenIdConnectUserInfoProcessorImpl
        implements OpenIdConnectUserInfoProcessor {

    private static Log log = LogFactoryUtil.getLog(CustomOpenIdConnectUserInfoProcessorImpl.class);

    public CustomOpenIdConnectUserInfoProcessorImpl() {
        log.info("My custom is constructed ");
    }

    @Override
    public long processUserInfo(UserInfo userInfo, long companyId)
            throws PortalException {
        log.info("User connected : " + userInfo.getPreferredUsername());
        String emailAddress = userInfo.getEmailAddress();
        String preferredUsername = userInfo.getPreferredUsername();
        return 0L;
    }
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;And I added a .config file in osgi/configs named "com.liferay.portal.security.sso.openid.connect.internal.OpenIdConnectServiceHandlerImpl.config" and containing this : &lt;br&gt;&lt;pre&gt;&lt;code&gt;
    _openIdConnectUserInfoProcessor.target="(component.name=com.mycustom.sso.CustomOpenIdConnectUserInfoProcessorImpl)"
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But when I restart Liferay, this error appears : &lt;br&gt;&lt;pre&gt;&lt;code&gt;[main][OpenIdConnectServiceHandlerImpl:93] bundle com.liferay.portal.security.sso.openid.connect.impl:4.0.17 (1812)[com.liferay.portal.security.sso.openid.connect.internal.OpenIdConnectServiceHandlerImpl(3376)] : The _openIdConnectUserInfoProcessor field has thrown an exception&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;And It seems that Liferay doesn't use my custom class&lt;br&gt;&lt;br&gt;Can someone help me to understand what I'm doing wrong ?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Axel LEFEVRE</dc:creator>
    <dc:date>2020-06-17T13:34:22Z</dc:date>
  </entry>
</feed>
