You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application with Angular frontend et 2 backends : 1 spring-boot backend that communicate with Alfresco backend.
For login : the front get a token from the alfresco backend.
Now , since there is ADF 7.0.0-alpha.2 version i would like to use alfresco-js-api and other adf component without to call the login ADF method, because I already have a token ex : "TICKET_6459b3c18f133ec38e87f262cc010d6a4999810f" from backend.
So I try to initialize the authentication element like that :
Hello,
Node version (for build issues):
Browser and version:
Current behaviour:
I have an application with Angular frontend et 2 backends : 1 spring-boot backend that communicate with Alfresco backend.
For login : the front get a token from the alfresco backend.
Now , since there is ADF 7.0.0-alpha.2 version i would like to use alfresco-js-api and other adf component without to call the login ADF method, because I already have a token ex : "TICKET_6459b3c18f133ec38e87f262cc010d6a4999810f" from backend.
So I try to initialize the authentication element like that :
`setSession(token, username) {
// this.alfrescoApiService.getInstance().login('admin', 'admin');
// this.authenticationservice.login('admin', 'admin')
//.token = 'Basic ' + btoa(next[0].message);
// this.authenticationservice.login('admin', 'admin').subscribe(
// token => {
// console.log(token);
// },
// error => {
// console.log(error);
// }
// );
}`
But when I use ADF component i get 401 error, ex:
http://localhost:4200/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-?include=path%2Cproperties%2CallowableOperations%2Cpermissions%2CaspectNames
What is missing ?
Configuration adf.module :
imports: [
// ADF modules
CoreModule.forRoot(),
ContentModule.forRoot(),
AuthModule.forRoot({ useHash: true }),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
providers: [
AppConfigService,
{
provide: TRANSLATION_PROVIDER,
multi: true,
useValue: {
name: 'app',
source: 'assets'
}
}
]
The text was updated successfully, but these errors were encountered: