@alfresco/adf-core 8.4.0-18876786165 → 8.4.0-18878438842

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8782,7 +8782,8 @@ class RedirectAuthService extends AuthService {
8782
8782
  this.oauthService.configure(config);
8783
8783
  this.oauthService.tokenValidationHandler = new JwksValidationHandler();
8784
8784
  if (config.sessionChecksEnabled) {
8785
- this.oauthService.events.pipe(filter((event) => event.type === 'session_terminated')).subscribe(() => {
8785
+ const sessionErrorTypesToPerformLogout = ['session_terminated', 'session_error'];
8786
+ this.oauthService.events.pipe(filter((event) => sessionErrorTypesToPerformLogout.includes(event.type))).subscribe(() => {
8786
8787
  this.oauthService.logOut();
8787
8788
  });
8788
8789
  }
@@ -10606,6 +10607,37 @@ const OidcAuthGuard = async () => {
10606
10607
  }
10607
10608
  };
10608
10609
 
10610
+ /*!
10611
+ * @license
10612
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
10613
+ *
10614
+ * Licensed under the Apache License, Version 2.0 (the "License");
10615
+ * you may not use this file except in compliance with the License.
10616
+ * You may obtain a copy of the License at
10617
+ *
10618
+ * http://www.apache.org/licenses/LICENSE-2.0
10619
+ *
10620
+ * Unless required by applicable law or agreed to in writing, software
10621
+ * distributed under the License is distributed on an "AS IS" BASIS,
10622
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10623
+ * See the License for the specific language governing permissions and
10624
+ * limitations under the License.
10625
+ */
10626
+ class FrontChannelLogoutComponent {
10627
+ constructor() {
10628
+ this.authService = inject(AuthService);
10629
+ }
10630
+ ngOnInit() {
10631
+ this.authService.logout();
10632
+ }
10633
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrontChannelLogoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10634
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: FrontChannelLogoutComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
10635
+ }
10636
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: FrontChannelLogoutComponent, decorators: [{
10637
+ type: Component,
10638
+ args: [{ template: '', standalone: true }]
10639
+ }] });
10640
+
10609
10641
  /*!
10610
10642
  * @license
10611
10643
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -10623,7 +10655,8 @@ const OidcAuthGuard = async () => {
10623
10655
  * limitations under the License.
10624
10656
  */
10625
10657
  const AUTH_ROUTES = [
10626
- { path: 'view/authentication-confirmation', component: AuthenticationConfirmationComponent, canActivate: [OidcAuthGuard] }
10658
+ { path: 'view/authentication-confirmation', component: AuthenticationConfirmationComponent, canActivate: [OidcAuthGuard] },
10659
+ { path: 'oidc/frontchannel_logout', component: FrontChannelLogoutComponent }
10627
10660
  ];
10628
10661
 
10629
10662
  /*!