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.
|
@@ -2,7 +2,6 @@ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/c
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CheckUrlAndMethodService } from 'ngx-sp-infra';
|
|
4
4
|
import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
|
|
5
|
-
import { AuthStorageService } from '../storage/auth-storage.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* Intercepta uma chamada HTTP para inserir o usuário logado nos cookies (e header, para compatibilidade) em conjunto com o login para uso da API.
|
|
@@ -10,9 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
10
9
|
*/
|
|
11
10
|
export declare class AuthAplicInterceptor implements HttpInterceptor {
|
|
12
11
|
private _authCheckService;
|
|
13
|
-
private _authStorage;
|
|
14
12
|
private _customEnvironmentService;
|
|
15
|
-
constructor(_authCheckService: CheckUrlAndMethodService,
|
|
13
|
+
constructor(_authCheckService: CheckUrlAndMethodService, _customEnvironmentService: LibCustomEnvironmentService);
|
|
16
14
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
17
15
|
handle(req: HttpRequest<any>, next: HttpHandler): Promise<HttpEvent<any>>;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthAplicInterceptor, never>;
|
|
@@ -3,7 +3,6 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { RetError } from 'ngx-sp-infra';
|
|
5
5
|
import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
|
|
6
|
-
import { LibCustomLoginService } from '../custom/lib-custom-login.service';
|
|
7
6
|
import { LibCustomStorageService } from '../custom/lib-custom-storage.service';
|
|
8
7
|
import { IndexedDBService } from '../services/indexed-db.service';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +11,6 @@ export declare class AuthStorageService {
|
|
|
12
11
|
private _customStorageService;
|
|
13
12
|
private _indexedDBService;
|
|
14
13
|
private _customEnvironmentService;
|
|
15
|
-
private _customLoginService;
|
|
16
14
|
private _router;
|
|
17
15
|
private readonly _BASE_URL;
|
|
18
16
|
private readonly _LOGOUT_BASE_URL;
|
|
@@ -24,7 +22,7 @@ export declare class AuthStorageService {
|
|
|
24
22
|
private __isCheckingAuth;
|
|
25
23
|
private __authenticationCheck$;
|
|
26
24
|
private _httpClient;
|
|
27
|
-
constructor(_httpBackend: HttpBackend, _customStorageService: LibCustomStorageService, _indexedDBService: IndexedDBService, _customEnvironmentService: LibCustomEnvironmentService,
|
|
25
|
+
constructor(_httpBackend: HttpBackend, _customStorageService: LibCustomStorageService, _indexedDBService: IndexedDBService, _customEnvironmentService: LibCustomEnvironmentService, _router: Router);
|
|
28
26
|
isLoggedInSub: BehaviorSubject<boolean>;
|
|
29
27
|
private __ip;
|
|
30
28
|
get ip(): string;
|