Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
[MNT-22840] Use ticket parameter instead of alf_ticket when withCrede…
Browse files Browse the repository at this point in the history
…ntials configuration is enabled (#1392)
  • Loading branch information
tiagosalvado10 authored Jun 14, 2022
1 parent e644e4e commit a7fc2e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/alfrescoApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,12 @@ export class AlfrescoApiClient implements ee.Emitter, HttpClient {

getAlfTicket(ticket: string): string {
let alfTicketFragment = '';
const ticketParam = this.isWithCredentials() ? '&ticket=' : '&alf_ticket=';

if (ticket) {
alfTicketFragment = '&alf_ticket=' + ticket;
alfTicketFragment = ticketParam + ticket;
} else if (this.config.ticketEcm) {
alfTicketFragment = '&alf_ticket=' + this.config.ticketEcm;
alfTicketFragment = ticketParam + this.config.ticketEcm;
}

return alfTicketFragment;
Expand Down

0 comments on commit a7fc2e9

Please sign in to comment.