mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
This commit is contained in:
@@ -44,7 +44,8 @@ export class AlfrescoAuthenticationService {
|
||||
ticketBpm: this.getTicketBpm(),
|
||||
hostEcm: this.settingsService.ecmHost,
|
||||
hostBpm: this.settingsService.bpmHost,
|
||||
contextRoot: 'alfresco'
|
||||
contextRoot: 'alfresco',
|
||||
disableCsrf: true
|
||||
});
|
||||
|
||||
settingsService.bpmHostSubject.subscribe((bpmHost) => {
|
||||
@@ -55,6 +56,10 @@ export class AlfrescoAuthenticationService {
|
||||
this.alfrescoApi.changeEcmHost(ecmHost);
|
||||
});
|
||||
|
||||
settingsService.csrfSubject.subscribe((csrf) => {
|
||||
this.alfrescoApi.changeCsrfConfig(csrf);
|
||||
});
|
||||
|
||||
settingsService.providerSubject.subscribe((value) => {
|
||||
this.alfrescoApi.config.provider = value;
|
||||
});
|
||||
|
@@ -23,11 +23,13 @@ export class AlfrescoSettingsService {
|
||||
|
||||
static DEFAULT_ECM_ADDRESS: string = 'http://' + window.location.hostname + ':8080';
|
||||
static DEFAULT_BPM_ADDRESS: string = 'http://' + window.location.hostname + ':9999';
|
||||
static DEFAULT_CSRF_CONFIG: boolean = false;
|
||||
|
||||
static DEFAULT_BPM_CONTEXT_PATH: string = '/activiti-app';
|
||||
|
||||
private _ecmHost: string = AlfrescoSettingsService.DEFAULT_ECM_ADDRESS;
|
||||
private _bpmHost: string = AlfrescoSettingsService.DEFAULT_BPM_ADDRESS;
|
||||
private _csrfDisabled: boolean = AlfrescoSettingsService.DEFAULT_CSRF_CONFIG;
|
||||
|
||||
private _bpmContextPath = AlfrescoSettingsService.DEFAULT_BPM_CONTEXT_PATH;
|
||||
|
||||
@@ -35,12 +37,18 @@ export class AlfrescoSettingsService {
|
||||
|
||||
public bpmHostSubject: Subject<string> = new Subject<string>();
|
||||
public ecmHostSubject: Subject<string> = new Subject<string>();
|
||||
public csrfSubject: Subject<boolean> = new Subject<boolean>();
|
||||
public providerSubject: Subject<string> = new Subject<string>();
|
||||
|
||||
public get ecmHost(): string {
|
||||
return this._ecmHost;
|
||||
}
|
||||
|
||||
public set csrfDisabled(csrfDisabled: boolean) {
|
||||
this.csrfSubject.next(csrfDisabled);
|
||||
this._csrfDisabled = csrfDisabled;
|
||||
}
|
||||
|
||||
public set ecmHost(ecmHostUrl: string) {
|
||||
this.ecmHostSubject.next(ecmHostUrl);
|
||||
this._ecmHost = ecmHostUrl;
|
||||
|
Reference in New Issue
Block a user