Auto login a user to OAUTH authType
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 09:57 PM
Hello,
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 AuthenticationService. Everything is working fine:
this.auth.login('myusrname', 'mypassword').subscribe( token => { console.log(token); }, error => { console.log(error); } );Recentely we activated Alfresco Identity Service and I changed the authtype value from basic to OAUTH in app.config.json
The application is working fine but for my special component when trying to login to the predefined user the call above is no more working.
Is there a call in AuthenticationService or AlfrescoApiService that I can call use to auto login this user when OAUTH is enabled? How?
Thank you
Jamil
Labels:
0 REPLIES 0
