|
386 | 386 | try {
|
387 | 387 | response = await fetch(`${this.serviceUrl ?? ""}${input}`, {
|
388 | 388 | method,
|
389 |
| - // eslint-disable-next-line @typescript-eslint/naming-convention |
390 |
| - headers: (this.accessToken !== undefined) |
391 |
| - ? { Authorization: "Bearer " + this.accessToken } |
392 |
| - : undefined, |
393 | 389 | body: (body !== undefined) ? JSON.stringify(body) : undefined,
|
394 | 390 | signal: controller.signal,
|
395 | 391 | });
|
|
485 | 481 | authApp,
|
486 | 482 | user: userName,
|
487 | 483 | nonce,
|
488 |
| - sessionType: "bearer", |
| 484 | + sessionType: "cookie", |
489 | 485 | },
|
490 | 486 | })).json();
|
491 | 487 |
|
|
513 | 509 | authApp,
|
514 | 510 | username,
|
515 | 511 | password,
|
516 |
| - sessionType: "bearer" |
| 512 | + sessionType: "cookie" |
517 | 513 | },
|
518 | 514 | }, undefined, undefined, undefined, false);
|
519 | 515 |
|
|
733 | 729 | const redirectUrl = encodeURIComponent(MrsBaseApp.getUrlWithNewSearchString(`authApp=${authApp}`));
|
734 | 730 |
|
735 | 731 | globalThis.location.href =
|
736 |
| - `${this.serviceUrl}/authentication/login?app=${authApp}&sessionType=bearer` + |
| 732 | + `${this.serviceUrl}/authentication/login?app=${authApp}&sessionType=cookie` + |
737 | 733 | `&onCompletionRedirect=${redirectUrl}`;
|
738 | 734 | } else {
|
739 | 735 | globalThis.location.href = MrsBaseApp.getUrlWithNewSearchString();
|
|
1017 | 1013 | const servicePath = currentLocation.searchParams.get("service");
|
1018 | 1014 | const redirectUrl = currentLocation.searchParams.get("redirectUrl");
|
1019 | 1015 | const ociUrl = `${currentLocation.protocol}//${currentLocation.host}${servicePath}/` +
|
1020 |
| - `authentication/login?authApp=${appName}&sessionType=bearer&onCompletionRedirect=${redirectUrl}` |
| 1016 | + `authentication/login?authApp=${appName}&sessionType=cookie&onCompletionRedirect=${redirectUrl}` |
1021 | 1017 |
|
1022 | 1018 | return html`
|
1023 | 1019 | <a href="${ociUrl}">
|
|
1101 | 1097 | const fullRedirectUrl = encodeURIComponent(this.getUrlWithNewSearchString(
|
1102 | 1098 | `authApp=${authApp}&redirectUrl=${redirectUrl}`));
|
1103 | 1099 |
|
1104 |
| - const loginPath = `${serviceUrl}${authPath}/login?app=${authApp}&sessionType=bearer` + |
| 1100 | + const loginPath = `${serviceUrl}${authPath}/login?app=${authApp}&sessionType=cookie` + |
1105 | 1101 | `&onCompletionRedirect=${fullRedirectUrl}`;
|
1106 | 1102 |
|
1107 | 1103 | window.location.href = loginPath;
|
|
0 commit comments