@alfresco/adf-core 8.4.0-17323733946 → 8.4.0-17379007632

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.
@@ -7676,26 +7676,6 @@ class OidcAuthenticationService extends BaseAuthenticationService {
7676
7676
  */
7677
7677
  this.shouldPerformSsoLogin$ = combineLatest([this.auth.authenticated$, this.auth.isDiscoveryDocumentLoaded$]).pipe(map(([authenticated, isDiscoveryDocumentLoaded]) => !authenticated && isDiscoveryDocumentLoaded));
7678
7678
  }
7679
- /**
7680
- * @deprecated use `isLoggedIn` instead
7681
- * @returns true if the ECM provider is logged in
7682
- */
7683
- isEcmLoggedIn() {
7684
- if (this.isECMProvider() || this.isALLProvider()) {
7685
- return this.isLoggedIn();
7686
- }
7687
- return false;
7688
- }
7689
- /**
7690
- * @deprecated use `isLoggedIn` instead
7691
- * @returns true if the BPM provider is logged in
7692
- */
7693
- isBpmLoggedIn() {
7694
- if (this.isBPMProvider() || this.isALLProvider()) {
7695
- return this.isLoggedIn();
7696
- }
7697
- return false;
7698
- }
7699
7679
  isLoggedIn() {
7700
7680
  return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();
7701
7681
  }
@@ -7741,20 +7721,6 @@ class OidcAuthenticationService extends BaseAuthenticationService {
7741
7721
  getUsername() {
7742
7722
  return this.jwtHelperService.getValueFromLocalToken(JwtHelperService.USER_PREFERRED_USERNAME);
7743
7723
  }
7744
- /**
7745
- * @deprecated use `getUsername` instead
7746
- * @returns the logged username
7747
- */
7748
- getEcmUsername() {
7749
- return this.getUsername();
7750
- }
7751
- /**
7752
- * @deprecated use `getUsername` instead
7753
- * @returns the logged username
7754
- */
7755
- getBpmUsername() {
7756
- return this.getUsername();
7757
- }
7758
7724
  ssoLogin(redirectUrl) {
7759
7725
  this.auth.login(redirectUrl);
7760
7726
  }
@@ -8367,26 +8333,6 @@ class BasicAlfrescoAuthService extends BaseAuthenticationService {
8367
8333
  return '';
8368
8334
  }
8369
8335
  }
8370
- /**
8371
- * @deprecated
8372
- * @returns content auth token
8373
- */
8374
- getTicketEcm() {
8375
- return this.contentAuth.getToken();
8376
- }
8377
- /**
8378
- * @deprecated
8379
- * @returns process auth token
8380
- */
8381
- getTicketBpm() {
8382
- return this.processAuth.getToken();
8383
- }
8384
- isBpmLoggedIn() {
8385
- return this.processAuth.isLoggedIn();
8386
- }
8387
- isEcmLoggedIn() {
8388
- return this.contentAuth.isLoggedIn();
8389
- }
8390
8336
  isLoggedIn() {
8391
8337
  const authWithCredentials = this.isKerberosEnabled();
8392
8338
  if (this.isBPMProvider()) {
@@ -8458,20 +8404,6 @@ class BasicAlfrescoAuthService extends BaseAuthenticationService {
8458
8404
  hasSelectedProviderAll(provider) {
8459
8405
  return this.redirectUrl && (this.redirectUrl.provider === 'ALL' || provider === 'ALL');
8460
8406
  }
8461
- /**
8462
- * @deprecated use `getUsername()` instead
8463
- * @returns the username of the authenticated user
8464
- */
8465
- getBpmUsername() {
8466
- return this.processAuth.getUsername();
8467
- }
8468
- /**
8469
- * @deprecated use `getUsername()` instead
8470
- * @returns the username of the authenticated user
8471
- */
8472
- getEcmUsername() {
8473
- return this.contentAuth.getUsername();
8474
- }
8475
8407
  /**
8476
8408
  * Gets the username of the authenticated user.
8477
8409
  *
@@ -9036,30 +8968,6 @@ class AuthenticationService {
9036
8968
  return from(this.basicAlfrescoAuthService.logout());
9037
8969
  }
9038
8970
  }
9039
- /**
9040
- * @deprecated use `isLoggedIn` instead
9041
- * @returns true if the ECM provider is logged in
9042
- */
9043
- isEcmLoggedIn() {
9044
- if (this.isOauth()) {
9045
- return this.oidcAuthenticationService.isLoggedIn();
9046
- }
9047
- else {
9048
- return this.basicAlfrescoAuthService.isEcmLoggedIn();
9049
- }
9050
- }
9051
- /**
9052
- * @deprecated use `isLoggedIn` instead
9053
- * @returns true if the BPM provider is logged in
9054
- */
9055
- isBpmLoggedIn() {
9056
- if (this.isOauth()) {
9057
- return this.oidcAuthenticationService.isLoggedIn();
9058
- }
9059
- else {
9060
- return this.basicAlfrescoAuthService.isBpmLoggedIn();
9061
- }
9062
- }
9063
8971
  reset() {
9064
8972
  if (this.isOauth()) {
9065
8973
  return this.oidcAuthenticationService.reset();
@@ -9089,20 +8997,6 @@ class AuthenticationService {
9089
8997
  return this.basicAlfrescoAuthService.getUsername();
9090
8998
  }
9091
8999
  }
9092
- /**
9093
- * @deprecated use `getUsername` instead
9094
- * @returns the logged username
9095
- */
9096
- getEcmUsername() {
9097
- return this.getUsername();
9098
- }
9099
- /**
9100
- * @deprecated use `getUsername` instead
9101
- * @returns the logged username
9102
- */
9103
- getBpmUsername() {
9104
- return this.getUsername();
9105
- }
9106
9000
  getAuthHeaders(requestUrl, headers) {
9107
9001
  if (this.isOauth()) {
9108
9002
  return this.oidcAuthenticationService.getAuthHeaders(requestUrl, headers);
@@ -9355,7 +9249,7 @@ const AuthGuardEcm = async (_, state) => {
9355
9249
  if (authenticationService.isLoggedIn() && authenticationService.isOauth() && authGuardBaseService.isLoginFragmentPresent()) {
9356
9250
  return authGuardBaseService.redirectSSOSuccessURL();
9357
9251
  }
9358
- if (authenticationService.isEcmLoggedIn() || authGuardBaseService.withCredentials) {
9252
+ if (authenticationService.isLoggedIn() || authGuardBaseService.withCredentials) {
9359
9253
  return true;
9360
9254
  }
9361
9255
  return authGuardBaseService.redirectToUrl(state.url);