<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using openid for auhentication in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328524#M15525</link>
    <description>&lt;P&gt;the plugin ## &lt;A href="https://github.com/nuxeo/nuxeo/tree/10.10/nuxeo-services/login/nuxeo-platform-login-keycloak"&gt;nuxeo-platform-login-keycloak&lt;/A&gt; works fine for me, but it doesn't support single sign-out (when user logs out from another application) I'm working on finding a way around.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 10:39:07 GMT</pubDate>
    <dc:creator>Aya_Essa</dc:creator>
    <dc:date>2020-10-06T10:39:07Z</dc:date>
    <item>
      <title>using openid for auhentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328523#M15524</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to use keycloak for authentication to Nuxeo.
I followed the steps in the documentation (&lt;A href="https://doc.nuxeo.com/nxdoc/using-openid-oauth2-in-login-screen"&gt;link&lt;/A&gt;).
I added this part in Nuxeo/templates/openid/config/openid-login-config.xml.nxftl&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	&amp;lt;#if "${nuxeo.openid.keycloak.client.id}" != ""&amp;gt;
      &amp;lt;!-- Keycloak coonect provider contribution --&amp;gt;
      &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.oauth2.openid.keycloak&amp;lt;/require&amp;gt;

      &amp;lt;extension target="org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProviderRegistry"
                 point="providers"&amp;gt;
        &amp;lt;provider&amp;gt;
          &amp;lt;name&amp;gt;KeycloakOpenIDConnect&amp;lt;/name&amp;gt;
          &amp;lt;clientId&amp;gt;${nuxeo.openid.keycloak.client.id}&amp;lt;/clientId&amp;gt;
          &amp;lt;clientSecret&amp;gt;${nuxeo.openid.keycloak.client.secret}&amp;lt;/clientSecret&amp;gt;
        &amp;lt;/provider&amp;gt;
      &amp;lt;/extension&amp;gt;
    &amp;lt;/#if&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The extension in my bundle (I used default classes) :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.platform.oauth2.openid.keycloak" version="1.0"&amp;gt;
    &amp;lt;requires&amp;gt;org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProviderRegistry&amp;lt;/requires&amp;gt;
    &amp;lt;extension point="providers" target="org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProviderRegistry"&amp;gt;
        &amp;lt;provider&amp;gt;
            &amp;lt;name&amp;gt;KeycloakOpenIDConnect&amp;lt;/name&amp;gt;
            &amp;lt;label&amp;gt;Keycloak&amp;lt;/label&amp;gt;
            &amp;lt;description&amp;gt;Login using your Keycloak account&amp;lt;/description&amp;gt;
            &amp;lt;authorizationServerURL&amp;gt;http://localhost:8180/auth/realms/myrealm/protocol/openid-connect/auth&amp;lt;/authorizationServerURL&amp;gt;
            &amp;lt;tokenServerURL&amp;gt;http://localhost:8180/auth/realms/myrealm/protocol/openid-connect/token&amp;lt;/tokenServerURL&amp;gt;
            &amp;lt;userInfoURL&amp;gt;http://localhost:8180/auth/realms/myrealm/protocol/openid-connect/userinfo&amp;lt;/userInfoURL&amp;gt;
            &amp;lt;userInfoClass&amp;gt;org.nuxeo.ecm.platform.oauth2.openid.auth.DefaultOpenIDUserInfo&amp;lt;/userInfoClass&amp;gt;
            &amp;lt;userResolverClass&amp;gt;org.nuxeo.ecm.platform.oauth2.openid.auth.StoredUserInfoResolver&amp;lt;/userResolverClass&amp;gt;
            &amp;lt;scope&amp;gt;openid&amp;lt;/scope&amp;gt;
        &amp;lt;/provider&amp;gt;
    &amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I am getting this error :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2020-09-30T11:46:56,487 ERROR [http-nio-0.0.0.0-8080-exec-4] [org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProvider] Unable to parse server response
com.google.api.client.http.HttpResponseException: 400 Bad Request
{"error":"invalid_request","error_description":"Token not provided"}
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1054) ~[google-http-client-1.19.0.jar:1.19.0]
	at org.nuxeo.ecm.platform.oauth2.openid.OpenIDConnectProvider.getUserInfo(OpenIDConnectProvider.java:218) [nuxeo-platform-login-openid-10.10.jar:?]
	at org.nuxeo.ecm.platform.oauth2.openid.auth.OpenIDConnectAuthenticator.retrieveIdentityFromOAuth(OpenIDConnectAuthenticator.java:121) [nuxeo-platform-login-openid-10.10.jar:?]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you have any idea how to resolve this .&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:00:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328523#M15524</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2020-09-30T11:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: using openid for auhentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328524#M15525</link>
      <description>&lt;P&gt;the plugin ## &lt;A href="https://github.com/nuxeo/nuxeo/tree/10.10/nuxeo-services/login/nuxeo-platform-login-keycloak"&gt;nuxeo-platform-login-keycloak&lt;/A&gt; works fine for me, but it doesn't support single sign-out (when user logs out from another application) I'm working on finding a way around.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:39:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328524#M15525</guid>
      <dc:creator>Aya_Essa</dc:creator>
      <dc:date>2020-10-06T10:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: using openid for auhentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328525#M15526</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:42:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328525#M15526</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2020-10-06T10:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: using openid for auhentication</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328526#M15527</link>
      <description>&lt;P&gt;me too, i didn't use it in a production env yet&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:44:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-openid-for-auhentication/m-p/328526#M15527</guid>
      <dc:creator>Aya_Essa</dc:creator>
      <dc:date>2020-10-06T10:44:46Z</dc:date>
    </item>
  </channel>
</rss>

