-
Notifications
You must be signed in to change notification settings - Fork 278
[MNT-25336] ADW can't start a Microsoft 365 session when using Basic … #11238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
2c2fe0e
1f58410
9319b20
a437b61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -351,19 +351,18 @@ export class BasicAlfrescoAuthService extends BaseAuthenticationService { | |
* @returns The ticket or `null` if none was found | ||
*/ | ||
getTicketEcmBase64(requestUrl: string): string | null { | ||
let ticket = null; | ||
|
||
const bpmRoot = `/${this.appConfig.get<string>(AppConfigValues.CONTEXTROOTBPM) || 'activiti-app'}/`; | ||
const ecmRoot = `/${this.appConfig.get<string>(AppConfigValues.CONTEXTROOTECM) || 'alfresco'}/`; | ||
|
||
if (requestUrl?.includes(ecmRoot) && !requestUrl.includes(bpmRoot)) { | ||
ticket = this.getContentServicesTicket(); | ||
return this.getContentServicesTicket(); | ||
} else if (requestUrl?.includes(bpmRoot) && !requestUrl.includes(ecmRoot)) { | ||
ticket = this.getProcessServicesTicket(); | ||
return this.getProcessServicesTicket(); | ||
} else if (requestUrl?.includes(ecmRoot) && requestUrl.includes(bpmRoot)) { | ||
ticket = requestUrl.indexOf(ecmRoot) < requestUrl.indexOf(bpmRoot) ? this.getContentServicesTicket() : this.getProcessServicesTicket(); | ||
return requestUrl.indexOf(ecmRoot) < requestUrl.indexOf(bpmRoot) ? this.getContentServicesTicket() : this.getProcessServicesTicket(); | ||
} else { | ||
return this.getContentServicesTicket(); | ||
|
||
} | ||
return ticket; | ||
} | ||
|
||
private getProcessServicesTicket(): string { | ||
|
Uh oh!
There was an error while loading. Please reload this page.