<?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 Auto login a user to OAUTH authType in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/auto-login-a-user-to-oauth-authtype/m-p/14833#M6532</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In my application business logic I have a special case when I need to auto login a pre-registered user. To do so I am using the ADF&amp;nbsp;&lt;SPAN&gt;AuthenticationService. Everything is working fine:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;            this.auth.login('myusrname', 'mypassword').subscribe(
              token =&amp;gt; {
                  console.log(token);
              },
              error =&amp;gt; {
                  console.log(error);
              }
          );&lt;/PRE&gt;&lt;SPAN&gt;Recentely we activated Alfresco Identity Service and I changed the authtype value from basic to OAUTH in app.config.json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The application is working fine but for my special component when trying to login to the predefined user the call above&amp;nbsp; is no more working.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a call in&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;AuthenticationService or&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;AlfrescoApiService that I can call use to auto login this user when OAUTH is enabled? How?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Jamil&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 Jun 2022 01:57:42 GMT</pubDate>
    <dc:creator>jamilnour</dc:creator>
    <dc:date>2022-06-10T01:57:42Z</dc:date>
    <item>
      <title>Auto login a user to OAUTH authType</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/auto-login-a-user-to-oauth-authtype/m-p/14833#M6532</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In my application business logic I have a special case when I need to auto login a pre-registered user. To do so I am using the ADF&amp;nbsp;&lt;SPAN&gt;AuthenticationService. Everything is working fine:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;            this.auth.login('myusrname', 'mypassword').subscribe(
              token =&amp;gt; {
                  console.log(token);
              },
              error =&amp;gt; {
                  console.log(error);
              }
          );&lt;/PRE&gt;&lt;SPAN&gt;Recentely we activated Alfresco Identity Service and I changed the authtype value from basic to OAUTH in app.config.json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The application is working fine but for my special component when trying to login to the predefined user the call above&amp;nbsp; is no more working.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a call in&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;AuthenticationService or&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;AlfrescoApiService that I can call use to auto login this user when OAUTH is enabled? How?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Jamil&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2022 01:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/auto-login-a-user-to-oauth-authtype/m-p/14833#M6532</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2022-06-10T01:57:42Z</dc:date>
    </item>
  </channel>
</rss>

