<?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: ADF 2.6.1 Application and CAS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24432#M10621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugenio,&lt;/P&gt;&lt;P&gt;We had hoped to stay with 6.0 for the time being since this is what we have done most of our testing on.&lt;/P&gt;&lt;P&gt;We are getting the following error in the browser after the user is logged in and our ADF application is calling Alfresco's REST api:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Error: Uncaught (in promise): Error: {"error":{"errorKey":"framework.exception.ApiDefault","statusCode":401,"briefSummary":"01260004 Authorization 'Bearer' not supported.","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"&lt;A href="https://api-explorer.alfresco.com" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com&lt;/A&gt;"}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;This looks like it is related to OAUTH2. Has anyone come across this problem before? Is it a known issue in 6.0 that is resolved in 6.1.0?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 00:26:52 GMT</pubDate>
    <dc:creator>pcharsle</dc:creator>
    <dc:date>2019-02-26T00:26:52Z</dc:date>
    <item>
      <title>ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24429#M10618</link>
      <description>We use Apache mod_auth_cas with Alfresco 5.2.3 and Apereo CAS 5.2.4. This works very well and was straightforward to setup.We have now built an ADF 2.6.1 application and are unsure about whether the process we are following to include our application in the CAS authentication is correct. We are doin</description>
      <pubDate>Fri, 22 Feb 2019 01:32:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24429#M10618</guid>
      <dc:creator>pcharsle</dc:creator>
      <dc:date>2019-02-22T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24430#M10619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've done some more investigation about what we believe are Alfresco's plans to support CAS SSO. We know that Alfresco is supporting a new SSO authentication architecture built on Keycloak which is an OAUTH2 identity provider. We believe and hope that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Alfresco's new authentication architecture will support the use of other OAUTH2 identity providers (not just Keycloak)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Based on the above assumption, we are now:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Configuring our CAS server to act as an OAUTH2 provider&lt;/LI&gt;&lt;LI&gt;Upgrading to ACS version 6.0. We believe this is necessary since in the OAUTH2 process the ACS acts as a Resource Server which will need to contact the OAUTH2 identity provider to verify an access token. We think that the code to do this is not present in version 5.2.x and has only been added in 6.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We found a great article by Martin Bergljung at &lt;A href="https://community.alfresco.com/people/gravitonian/blog/2018/07/17/getting-started-with-alfresco-identity-service-ea-keycloak" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/people/gravitonian/blog/2018/07/17/getting-started-with-alfresco-identity-service-ea-keycloak&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;upon which we've based some of our assumptions.&lt;/P&gt;&lt;P&gt;Can anyone in the community advise us on whether our assumptions/approach for using CAS with our ADF application are valid?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2019 21:50:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24430#M10619</guid>
      <dc:creator>pcharsle</dc:creator>
      <dc:date>2019-02-24T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24431#M10620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul is better if you use 6.1.0 Cs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 14:13:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24431#M10620</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2019-02-25T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24432#M10621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugenio,&lt;/P&gt;&lt;P&gt;We had hoped to stay with 6.0 for the time being since this is what we have done most of our testing on.&lt;/P&gt;&lt;P&gt;We are getting the following error in the browser after the user is logged in and our ADF application is calling Alfresco's REST api:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Error: Uncaught (in promise): Error: {"error":{"errorKey":"framework.exception.ApiDefault","statusCode":401,"briefSummary":"01260004 Authorization 'Bearer' not supported.","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"&lt;A href="https://api-explorer.alfresco.com" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com&lt;/A&gt;"}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;This looks like it is related to OAUTH2. Has anyone come across this problem before? Is it a known issue in 6.0 that is resolved in 6.1.0?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 00:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24432#M10621</guid>
      <dc:creator>pcharsle</dc:creator>
      <dc:date>2019-02-26T00:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24433#M10622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your app.config.json here or in a gist?...I saw you have uploaded a zip but I prefer to not open zip from internet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&amp;nbsp;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:42:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24433#M10622</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2019-03-07T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: ADF 2.6.1 Application and CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24434#M10623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugenio,&lt;/P&gt;&lt;P&gt;The app.config.json is shown below (placeholders are replaced with the urls when we deploy). We have followed your suggestion and are now upgrading to 6.1. This is taking longer than we expected but we will shortly add a post to this forum if our cas integration is successful or not.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;{   &lt;BR /&gt;"$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",   &lt;BR /&gt;"ecmHost": "https://@@DRUPAL_HUB_URL@@",   &lt;BR /&gt;"bpmHost": "https://@@DRUPAL_HUB_URL@@",   &lt;BR /&gt;"providers": "ECM",   &lt;BR /&gt;"application": {     &lt;BR /&gt;     "name": "Health Hub Project Library"   &lt;BR /&gt;},   &lt;BR /&gt;"languages": [&lt;BR /&gt;{       "key": "en",       "label": "English"     },     &lt;BR /&gt;{       "key": "fr",       "label": "French"     },     &lt;BR /&gt;{       "key": "de",       "label": "German"     },     &lt;BR /&gt;{       "key": "it",       "label": "Italian"     },     &lt;BR /&gt;{       "key": "es",       "label": "Spanish"     },     &lt;BR /&gt;{       "key": "ja",       "label": "Japanese"     },     &lt;BR /&gt;{       "key": "nl",       "label": "Dutch"     },     &lt;BR /&gt;{       "key": "pt-BR",    "label": "Brazilian Portuguese"     },     &lt;BR /&gt;{       "key": "nb",       "label": "Norwegian"     },     &lt;BR /&gt;{       "key": "ru",       "label": "Russian"     },     &lt;BR /&gt;{       "key": "zh-CN",    "label": "Simplified Chinese"     }   &lt;BR /&gt;],   &lt;BR /&gt;"logLevel": "trace",   &lt;BR /&gt;"authType": "OAUTH",   &lt;BR /&gt;"oauth2": {     &lt;BR /&gt;  "host": "https://@@DRUPAL_HUB_URL@@/cas/oidc",     &lt;BR /&gt;  "clientId": "hhb-library",     &lt;BR /&gt;  "scope": "openid",     &lt;BR /&gt;  "secret": "ClientSecret",     &lt;BR /&gt;  "implicitFlow": true,     &lt;BR /&gt;  "silentLogin": true,     &lt;BR /&gt;  "redirectUri": "/hhb-library",     &lt;BR /&gt;  "redirectSilentIFrameUri": "https://@@DRUPAL_HUB_URL@@/cas/oidc/authorize",     &lt;BR /&gt;  "redirectUriLogout": "https://@@DRUPAL_HUB_URL@@/cas/logout"   &lt;BR /&gt; } &lt;BR /&gt;} &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 20:44:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-2-6-1-application-and-cas/m-p/24434#M10623</guid>
      <dc:creator>pcharsle</dc:creator>
      <dc:date>2019-03-07T20:44:37Z</dc:date>
    </item>
  </channel>
</rss>

