ngx-sp-auth 4.23.1 → 4.23.2

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.
@@ -512,81 +512,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
512
512
  }]
513
513
  }], ctorParameters: () => [{ type: LibCustomEnvironmentService }] });
514
514
 
515
- class LibCustomLoginService {
516
- constructor(_customLoginService) {
517
- this._customLoginService = _customLoginService;
518
- }
519
- // #region Propriedade Customizadas para o Componente login.component.ts
520
- get loginTitle() {
521
- return this._customLoginService.loginTitle;
522
- }
523
- get loginSubtitle() {
524
- return this._customLoginService.loginSubtitle;
525
- }
526
- get loginBackground() {
527
- return this._customLoginService.loginBackground;
528
- }
529
- get loginLogotipo() {
530
- return this._customLoginService.loginLogotipo;
531
- }
532
- get loginAltLogotipo() {
533
- return this._customLoginService.loginAltLogotipo;
534
- }
535
- get loginPageTitle() {
536
- return this._customLoginService.loginPageTitle;
537
- }
538
- get loginDesenvDomain() {
539
- return this._customLoginService.loginDesenvDomain;
540
- }
541
- get loginDesenvUser() {
542
- return this._customLoginService.loginDesenvUser;
543
- }
544
- get loginDesenvPassword() {
545
- return this._customLoginService.loginDesenvPassword;
546
- }
547
- // #endregion Propriedade Customizadas para o Componente login.component.ts
548
- // #region Métodos Customizadas para o Componente auth.service.ts
549
- /**
550
- * Método executado no auth.service.ts - método: login ()
551
- * Utilizado para inicializações diversas
552
- */
553
- authLogin() {
554
- this._customLoginService.authLogin();
555
- }
556
- /**
557
- * Método executado no auth.service.ts - método: logout ()
558
- * Utilizado para inicializações diversas
559
- */
560
- authLogout() {
561
- this._customLoginService.authLogout();
562
- }
563
- /**
564
- * Método executado no auth.service.ts - método: login ()
565
- * Utilizado para informar o redirecionamento para a tela inicial após o login ok
566
- *
567
- * @param router Objeto de Router que será utilizado
568
- */
569
- authNavigateToPage(router) {
570
- this._customLoginService.authNavigateToPage(router);
571
- }
572
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, deps: [{ token: LIB_CUSTOM_LOGIN_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable }); }
573
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, providedIn: 'root' }); }
574
- }
575
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, decorators: [{
576
- type: Injectable,
577
- args: [{ providedIn: 'root' }]
578
- }], ctorParameters: () => [{ type: undefined, decorators: [{
579
- type: Inject,
580
- args: [LIB_CUSTOM_LOGIN_SERVICE]
581
- }] }] });
582
-
583
515
  class AuthStorageService {
584
- constructor(_httpBackend, _customStorageService, _indexedDBService, _customEnvironmentService, _customLoginService, _router) {
516
+ constructor(_httpBackend, _customStorageService, _indexedDBService, _customEnvironmentService,
517
+ // private _customLoginService: LibCustomLoginService,
518
+ _router) {
585
519
  this._httpBackend = _httpBackend;
586
520
  this._customStorageService = _customStorageService;
587
521
  this._indexedDBService = _indexedDBService;
588
522
  this._customEnvironmentService = _customEnvironmentService;
589
- this._customLoginService = _customLoginService;
590
523
  this._router = _router;
591
524
  this._BASE_URL = ''; // SpInfra2LoginWS
592
525
  this._LOGOUT_BASE_URL = ''; // SpInfra2LoginWS
@@ -958,7 +891,7 @@ class AuthStorageService {
958
891
  localStorage.removeItem('configServerPassword');
959
892
  this.onLogout();
960
893
  // Método com customizações para inicializações do Logout
961
- this._customLoginService.authLogout();
894
+ // this._customLoginService.authLogout();
962
895
  });
963
896
  return this._router.navigate(["/auth/login"]);
964
897
  }
@@ -1065,13 +998,81 @@ class AuthStorageService {
1065
998
  return false;
1066
999
  }
1067
1000
  }
1068
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthStorageService, deps: [{ token: i1.HttpBackend }, { token: LibCustomStorageService }, { token: IndexedDBService }, { token: LibCustomEnvironmentService }, { token: LibCustomLoginService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1001
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthStorageService, deps: [{ token: i1.HttpBackend }, { token: LibCustomStorageService }, { token: IndexedDBService }, { token: LibCustomEnvironmentService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1069
1002
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthStorageService, providedIn: 'root' }); }
1070
1003
  }
1071
1004
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthStorageService, decorators: [{
1072
1005
  type: Injectable,
1073
1006
  args: [{ providedIn: 'root' }]
1074
- }], ctorParameters: () => [{ type: i1.HttpBackend }, { type: LibCustomStorageService }, { type: IndexedDBService }, { type: LibCustomEnvironmentService }, { type: LibCustomLoginService }, { type: i1$1.Router }] });
1007
+ }], ctorParameters: () => [{ type: i1.HttpBackend }, { type: LibCustomStorageService }, { type: IndexedDBService }, { type: LibCustomEnvironmentService }, { type: i1$1.Router }] });
1008
+
1009
+ class LibCustomLoginService {
1010
+ constructor(_customLoginService) {
1011
+ this._customLoginService = _customLoginService;
1012
+ }
1013
+ // #region Propriedade Customizadas para o Componente login.component.ts
1014
+ get loginTitle() {
1015
+ return this._customLoginService.loginTitle;
1016
+ }
1017
+ get loginSubtitle() {
1018
+ return this._customLoginService.loginSubtitle;
1019
+ }
1020
+ get loginBackground() {
1021
+ return this._customLoginService.loginBackground;
1022
+ }
1023
+ get loginLogotipo() {
1024
+ return this._customLoginService.loginLogotipo;
1025
+ }
1026
+ get loginAltLogotipo() {
1027
+ return this._customLoginService.loginAltLogotipo;
1028
+ }
1029
+ get loginPageTitle() {
1030
+ return this._customLoginService.loginPageTitle;
1031
+ }
1032
+ get loginDesenvDomain() {
1033
+ return this._customLoginService.loginDesenvDomain;
1034
+ }
1035
+ get loginDesenvUser() {
1036
+ return this._customLoginService.loginDesenvUser;
1037
+ }
1038
+ get loginDesenvPassword() {
1039
+ return this._customLoginService.loginDesenvPassword;
1040
+ }
1041
+ // #endregion Propriedade Customizadas para o Componente login.component.ts
1042
+ // #region Métodos Customizadas para o Componente auth.service.ts
1043
+ /**
1044
+ * Método executado no auth.service.ts - método: login ()
1045
+ * Utilizado para inicializações diversas
1046
+ */
1047
+ authLogin() {
1048
+ this._customLoginService.authLogin();
1049
+ }
1050
+ /**
1051
+ * Método executado no auth.service.ts - método: logout ()
1052
+ * Utilizado para inicializações diversas
1053
+ */
1054
+ authLogout() {
1055
+ this._customLoginService.authLogout();
1056
+ }
1057
+ /**
1058
+ * Método executado no auth.service.ts - método: login ()
1059
+ * Utilizado para informar o redirecionamento para a tela inicial após o login ok
1060
+ *
1061
+ * @param router Objeto de Router que será utilizado
1062
+ */
1063
+ authNavigateToPage(router) {
1064
+ this._customLoginService.authNavigateToPage(router);
1065
+ }
1066
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, deps: [{ token: LIB_CUSTOM_LOGIN_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable }); }
1067
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, providedIn: 'root' }); }
1068
+ }
1069
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibCustomLoginService, decorators: [{
1070
+ type: Injectable,
1071
+ args: [{ providedIn: 'root' }]
1072
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1073
+ type: Inject,
1074
+ args: [LIB_CUSTOM_LOGIN_SERVICE]
1075
+ }] }] });
1075
1076
 
1076
1077
  class AuthUtilService {
1077
1078
  constructor(_authStorageService, _checkUrlAndMethodService, _customEnvironmentService, _message, _router) {
@@ -4734,9 +4735,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
4734
4735
  * Depende do serviço de autenticação.
4735
4736
  */
4736
4737
  class AuthAplicInterceptor {
4737
- constructor(_authCheckService, _authStorage, _customEnvironmentService) {
4738
+ constructor(_authCheckService, _customEnvironmentService) {
4738
4739
  this._authCheckService = _authCheckService;
4739
- this._authStorage = _authStorage;
4740
4740
  this._customEnvironmentService = _customEnvironmentService;
4741
4741
  }
4742
4742
  intercept(req, next) {
@@ -4766,13 +4766,13 @@ class AuthAplicInterceptor {
4766
4766
  return throwError(() => error);
4767
4767
  })));
4768
4768
  }
4769
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthAplicInterceptor, deps: [{ token: i3.CheckUrlAndMethodService }, { token: AuthStorageService }, { token: LibCustomEnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4769
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthAplicInterceptor, deps: [{ token: i3.CheckUrlAndMethodService }, { token: LibCustomEnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4770
4770
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthAplicInterceptor, providedIn: 'root' }); }
4771
4771
  }
4772
4772
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AuthAplicInterceptor, decorators: [{
4773
4773
  type: Injectable,
4774
4774
  args: [{ providedIn: 'root' }]
4775
- }], ctorParameters: () => [{ type: i3.CheckUrlAndMethodService }, { type: AuthStorageService }, { type: LibCustomEnvironmentService }] });
4775
+ }], ctorParameters: () => [{ type: i3.CheckUrlAndMethodService }, { type: LibCustomEnvironmentService }] });
4776
4776
 
4777
4777
  /** Intercepta uma chamada HTTP para inserir a autenticação da básica das APIs nos Cookies (e no header, para compatibilidade) */
4778
4778
  class AuthInfraInterceptor {