@valtimo/security 4.15.3-next-main.16 → 4.17.0
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.
- package/bundles/valtimo-security.umd.js +592 -592
- package/bundles/valtimo-security.umd.js.map +1 -1
- package/bundles/valtimo-security.umd.min.js.map +1 -1
- package/esm2015/lib/error/error-routing.module.js +40 -40
- package/esm2015/lib/error/error.component.js +41 -41
- package/esm2015/lib/error/error.js +19 -19
- package/esm2015/lib/error/http-error.interceptor.js +55 -55
- package/esm2015/lib/guard/auth-guard.service.js +45 -45
- package/esm2015/lib/security.module.js +30 -30
- package/esm2015/lib/user-provider.service.js +81 -81
- package/esm2015/public_api.js +24 -24
- package/esm2015/valtimo-security.js +7 -7
- package/fesm2015/valtimo-security.js +260 -260
- package/fesm2015/valtimo-security.js.map +1 -1
- package/lib/error/error-routing.module.d.ts +2 -2
- package/lib/error/error.component.d.ts +9 -9
- package/lib/error/error.d.ts +7 -7
- package/lib/error/http-error.interceptor.d.ts +10 -10
- package/lib/guard/auth-guard.service.d.ts +12 -12
- package/lib/security.module.d.ts +2 -2
- package/lib/user-provider.service.d.ts +21 -21
- package/package.json +1 -1
- package/public_api.d.ts +5 -5
- package/valtimo-security.d.ts +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Error } from './error';
|
|
4
|
-
export declare class ErrorComponent implements OnInit {
|
|
5
|
-
private activatedRoute;
|
|
6
|
-
err: Error;
|
|
7
|
-
constructor(activatedRoute: ActivatedRoute);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Error } from './error';
|
|
4
|
+
export declare class ErrorComponent implements OnInit {
|
|
5
|
+
private activatedRoute;
|
|
6
|
+
err: Error;
|
|
7
|
+
constructor(activatedRoute: ActivatedRoute);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
}
|
package/lib/error/error.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
export declare const InterceptorSkip = "X-Skip-Interceptor";
|
|
3
|
-
export declare const InterceptorSkipHeader: HttpHeaders;
|
|
4
|
-
export interface Error {
|
|
5
|
-
title: string;
|
|
6
|
-
error: number;
|
|
7
|
-
}
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
export declare const InterceptorSkip = "X-Skip-Interceptor";
|
|
3
|
+
export declare const InterceptorSkipHeader: HttpHeaders;
|
|
4
|
+
export interface Error {
|
|
5
|
+
title: string;
|
|
6
|
+
error: number;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ToastrService } from 'ngx-toastr';
|
|
4
|
-
import { NGXLogger } from 'ngx-logger';
|
|
5
|
-
export declare class HttpErrorInterceptor implements HttpInterceptor {
|
|
6
|
-
private toastr;
|
|
7
|
-
private logger;
|
|
8
|
-
constructor(toastr: ToastrService, logger: NGXLogger);
|
|
9
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
|
-
}
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ToastrService } from 'ngx-toastr';
|
|
4
|
+
import { NGXLogger } from 'ngx-logger';
|
|
5
|
+
export declare class HttpErrorInterceptor implements HttpInterceptor {
|
|
6
|
+
private toastr;
|
|
7
|
+
private logger;
|
|
8
|
+
constructor(toastr: ToastrService, logger: NGXLogger);
|
|
9
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
3
|
-
import { NGXLogger } from 'ngx-logger';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ConfigService } from '@valtimo/config';
|
|
6
|
-
export declare class AuthGuardService implements CanActivate {
|
|
7
|
-
private injector;
|
|
8
|
-
protected logger: NGXLogger;
|
|
9
|
-
private readonly authGuardServiceProvider;
|
|
10
|
-
constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
|
|
11
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
12
|
-
}
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
3
|
+
import { NGXLogger } from 'ngx-logger';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ConfigService } from '@valtimo/config';
|
|
6
|
+
export declare class AuthGuardService implements CanActivate {
|
|
7
|
+
private injector;
|
|
8
|
+
protected logger: NGXLogger;
|
|
9
|
+
private readonly authGuardServiceProvider;
|
|
10
|
+
constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
|
|
11
|
+
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
12
|
+
}
|
package/lib/security.module.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class SecurityModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class SecurityModule {
|
|
2
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
|
-
import { NGXLogger } from 'ngx-logger';
|
|
4
|
-
import { EmailNotificationService, EmailNotificationSettings, UserIdentity, UserService } from '@valtimo/
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
|
-
import { ConfigService } from '@valtimo/config';
|
|
7
|
-
export declare class UserProviderService implements UserService, EmailNotificationService {
|
|
8
|
-
private configService;
|
|
9
|
-
private injector;
|
|
10
|
-
private http;
|
|
11
|
-
private logger;
|
|
12
|
-
private readonly userService;
|
|
13
|
-
private valtimoApiConfig;
|
|
14
|
-
constructor(configService: ConfigService, injector: Injector, http: HttpClient, logger: NGXLogger);
|
|
15
|
-
getUserSubject(): ReplaySubject<UserIdentity>;
|
|
16
|
-
logout(): void;
|
|
17
|
-
getToken(): Promise<string>;
|
|
18
|
-
updateToken(minValidity: number): Promise<boolean>;
|
|
19
|
-
getEmailNotificationSettings(): Observable<EmailNotificationSettings>;
|
|
20
|
-
updateEmailNotificationSettings(settings: EmailNotificationSettings): Observable<EmailNotificationSettings>;
|
|
21
|
-
}
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
|
+
import { NGXLogger } from 'ngx-logger';
|
|
4
|
+
import { EmailNotificationService, EmailNotificationSettings, UserIdentity, UserService } from '@valtimo/config';
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { ConfigService } from '@valtimo/config';
|
|
7
|
+
export declare class UserProviderService implements UserService, EmailNotificationService {
|
|
8
|
+
private configService;
|
|
9
|
+
private injector;
|
|
10
|
+
private http;
|
|
11
|
+
private logger;
|
|
12
|
+
private readonly userService;
|
|
13
|
+
private valtimoApiConfig;
|
|
14
|
+
constructor(configService: ConfigService, injector: Injector, http: HttpClient, logger: NGXLogger);
|
|
15
|
+
getUserSubject(): ReplaySubject<UserIdentity>;
|
|
16
|
+
logout(): void;
|
|
17
|
+
getToken(): Promise<string>;
|
|
18
|
+
updateToken(minValidity: number): Promise<boolean>;
|
|
19
|
+
getEmailNotificationSettings(): Observable<EmailNotificationSettings>;
|
|
20
|
+
updateEmailNotificationSettings(settings: EmailNotificationSettings): Observable<EmailNotificationSettings>;
|
|
21
|
+
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lib/guard/auth-guard.service';
|
|
2
|
-
export * from './lib/security.module';
|
|
3
|
-
export * from './lib/error/error';
|
|
4
|
-
export * from './lib/error/error.component';
|
|
5
|
-
export * from './lib/user-provider.service';
|
|
1
|
+
export * from './lib/guard/auth-guard.service';
|
|
2
|
+
export * from './lib/security.module';
|
|
3
|
+
export * from './lib/error/error';
|
|
4
|
+
export * from './lib/error/error.component';
|
|
5
|
+
export * from './lib/user-provider.service';
|
package/valtimo-security.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
export { ErrorRoutingModule as ɵa } from './lib/error/error-routing.module';
|
|
6
|
-
export { HttpErrorInterceptor as ɵb } from './lib/error/http-error.interceptor';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
export { ErrorRoutingModule as ɵa } from './lib/error/error-routing.module';
|
|
6
|
+
export { HttpErrorInterceptor as ɵb } from './lib/error/http-error.interceptor';
|