@igo2/auth 19.0.2 → 20.0.0-next.1

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.
Files changed (65) hide show
  1. package/environment/index.d.ts +9 -5
  2. package/facebook/index.d.ts +25 -5
  3. package/fesm2022/igo2-auth-facebook.mjs +11 -14
  4. package/fesm2022/igo2-auth-facebook.mjs.map +1 -1
  5. package/fesm2022/igo2-auth-form.mjs +20 -27
  6. package/fesm2022/igo2-auth-form.mjs.map +1 -1
  7. package/fesm2022/igo2-auth-google.mjs +13 -17
  8. package/fesm2022/igo2-auth-google.mjs.map +1 -1
  9. package/fesm2022/igo2-auth-internal.mjs +18 -22
  10. package/fesm2022/igo2-auth-internal.mjs.map +1 -1
  11. package/fesm2022/igo2-auth-microsoft.mjs +44 -73
  12. package/fesm2022/igo2-auth-microsoft.mjs.map +1 -1
  13. package/fesm2022/igo2-auth-monitoring.mjs +10 -19
  14. package/fesm2022/igo2-auth-monitoring.mjs.map +1 -1
  15. package/fesm2022/igo2-auth.mjs +67 -103
  16. package/fesm2022/igo2-auth.mjs.map +1 -1
  17. package/form/index.d.ts +71 -5
  18. package/google/index.d.ts +32 -5
  19. package/index.d.ts +188 -5
  20. package/internal/index.d.ts +23 -5
  21. package/microsoft/index.d.ts +86 -5
  22. package/monitoring/index.d.ts +19 -5
  23. package/package.json +12 -12
  24. package/environment/environment.interface.d.ts +0 -6
  25. package/environment/public_api.d.ts +0 -1
  26. package/facebook/auth-facebook/auth-facebook.component.d.ts +0 -18
  27. package/facebook/public_api.d.ts +0 -2
  28. package/facebook/shared/auth-facebook.interface.d.ts +0 -4
  29. package/facebook/shared/index.d.ts +0 -1
  30. package/form/auth-form/auth-form.component.d.ts +0 -41
  31. package/form/auth-form.module.d.ts +0 -20
  32. package/form/public_api.d.ts +0 -3
  33. package/form/shared/auth-form.interface.d.ts +0 -9
  34. package/form/shared/index.d.ts +0 -1
  35. package/google/auth-google/auth-google.component.d.ts +0 -25
  36. package/google/public_api.d.ts +0 -2
  37. package/google/shared/auth-google.interface.d.ts +0 -5
  38. package/google/shared/index.d.ts +0 -1
  39. package/internal/auth-intern/auth-intern.component.d.ts +0 -21
  40. package/internal/public_api.d.ts +0 -1
  41. package/lib/auth.provider.d.ts +0 -3
  42. package/lib/shared/admin.guard.d.ts +0 -13
  43. package/lib/shared/auth-storage.interface.d.ts +0 -4
  44. package/lib/shared/auth-storage.service.d.ts +0 -18
  45. package/lib/shared/auth.guard.d.ts +0 -13
  46. package/lib/shared/auth.interceptor.d.ts +0 -25
  47. package/lib/shared/auth.interface.d.ts +0 -45
  48. package/lib/shared/auth.service.d.ts +0 -49
  49. package/lib/shared/index.d.ts +0 -11
  50. package/lib/shared/logged.guard.d.ts +0 -13
  51. package/lib/shared/profils.guard.d.ts +0 -13
  52. package/lib/shared/token.interface.d.ts +0 -5
  53. package/lib/shared/token.service.d.ts +0 -16
  54. package/microsoft/auth-microsoft/auth-microsoft.component.d.ts +0 -25
  55. package/microsoft/auth-microsoft.provider.d.ts +0 -12
  56. package/microsoft/auth-microsoftb2c/auth-microsoftb2c.component.d.ts +0 -25
  57. package/microsoft/auth-microsoftb2c/auth-msalBroadcastServiceb2c.service.d.ts +0 -15
  58. package/microsoft/auth-microsoftb2c/auth-msalServiceb2c.service.d.ts +0 -33
  59. package/microsoft/public_api.d.ts +0 -4
  60. package/microsoft/shared/auth-microsoft.interface.d.ts +0 -32
  61. package/microsoft/shared/index.d.ts +0 -1
  62. package/monitoring/auth-monitoring/auth-monitoring.provider.d.ts +0 -3
  63. package/monitoring/auth-monitoring/auth-monitoring.service.d.ts +0 -15
  64. package/monitoring/public_api.d.ts +0 -2
  65. package/public_api.d.ts +0 -2
package/index.d.ts CHANGED
@@ -1,5 +1,188 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@igo2/auth" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { Provider, EnvironmentProviders } from '@angular/core';
3
+ import { BaseUser } from '@igo2/core/user';
4
+ import { JwtPayload } from 'jwt-decode';
5
+ import * as rxjs from 'rxjs';
6
+ import { BehaviorSubject, Observable } from 'rxjs';
7
+ import { StorageOptions, BaseStorage, StorageScope } from '@igo2/core/storage';
8
+ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
9
+ import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
10
+
11
+ interface User extends BaseUser {
12
+ source?: string;
13
+ sourceId?: string;
14
+ locale?: string;
15
+ isExpired?: boolean;
16
+ isAdmin?: boolean;
17
+ defaultContextId?: string;
18
+ }
19
+ interface IInfosUser {
20
+ tokenId: string;
21
+ }
22
+ interface AuthOptions {
23
+ url?: string;
24
+ tokenKey?: string;
25
+ allowAnonymous?: boolean;
26
+ loginRoute?: string;
27
+ logoutRoute?: string;
28
+ homeRoute?: string;
29
+ trustHosts?: string[];
30
+ profilsGuard?: string[];
31
+ hostsWithCredentials?: WithCredentialsOptions[];
32
+ hostsByKey?: AuthByKeyOptions[];
33
+ intern?: AuthInternOptions;
34
+ }
35
+ interface AuthByKeyOptions {
36
+ domainRegFilters?: string;
37
+ keyProperty?: string;
38
+ keyValue?: string;
39
+ }
40
+ interface WithCredentialsOptions {
41
+ withCredentials?: boolean;
42
+ domainRegFilters?: string;
43
+ }
44
+ interface AuthInternOptions {
45
+ enabled?: boolean;
46
+ }
47
+ interface AuthFeature<KindT extends AuthFeatureKind> {
48
+ kind: KindT;
49
+ providers: Provider[];
50
+ }
51
+ declare enum AuthFeatureKind {
52
+ Microsoft = 0
53
+ }
54
+
55
+ interface IgoJwtPayload extends JwtPayload {
56
+ user: User;
57
+ }
58
+
59
+ declare class TokenService {
60
+ private injector;
61
+ private options?;
62
+ private tokenKey;
63
+ constructor();
64
+ set(token: string): void;
65
+ remove(): void;
66
+ get(): string;
67
+ decode(): IgoJwtPayload | null;
68
+ isExpired(): boolean;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
70
+ static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
71
+ }
72
+
73
+ declare class AuthService {
74
+ private http;
75
+ private tokenService;
76
+ private config;
77
+ private languageService;
78
+ private messageService;
79
+ private router;
80
+ authenticate$: BehaviorSubject<boolean>;
81
+ logged$: BehaviorSubject<boolean>;
82
+ redirectUrl: string;
83
+ languageForce: boolean;
84
+ private anonymous;
85
+ private authOptions;
86
+ get hasAuthService(): boolean;
87
+ get user(): User | null;
88
+ constructor();
89
+ login(username: string, password: string): Observable<void>;
90
+ loginWithToken(token: string, type: string, infosUser?: IInfosUser): Observable<void>;
91
+ loginAnonymous(): Observable<boolean>;
92
+ refresh(): Observable<void>;
93
+ logout(): Observable<boolean>;
94
+ isAuthenticated(): boolean;
95
+ getToken(): string;
96
+ decodeToken(): IgoJwtPayload | null;
97
+ goToRedirectUrl(): void;
98
+ getUserInfo(): Observable<User>;
99
+ getProfils(): Observable<{
100
+ profils: string[];
101
+ }>;
102
+ updateUser(user: User): Observable<User>;
103
+ private encodePassword;
104
+ get logged(): boolean;
105
+ get isAnonymous(): boolean;
106
+ get authenticated(): boolean;
107
+ get isAdmin(): boolean;
108
+ private loginCall;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
110
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
111
+ }
112
+
113
+ interface AuthStorageOptions extends StorageOptions {
114
+ url: string;
115
+ }
116
+
117
+ declare class AuthStorageService extends BaseStorage<AuthStorageOptions> {
118
+ private http;
119
+ private authService;
120
+ private tokenService;
121
+ constructor();
122
+ set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
123
+ remove(key: string, scope?: StorageScope): void;
124
+ clear(scope?: StorageScope): void;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthStorageService, never>;
126
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthStorageService>;
127
+ }
128
+
129
+ declare class AuthInterceptor implements HttpInterceptor {
130
+ private config;
131
+ private tokenService;
132
+ private http;
133
+ private authOptions;
134
+ private refreshInProgress;
135
+ private trustHosts;
136
+ private hostsWithCredentials;
137
+ private hostsWithAuthByKey;
138
+ constructor();
139
+ intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
140
+ interceptXhr(xhr: any, url: string): boolean;
141
+ alterUrlWithKeyAuth(url: string): string;
142
+ private handleHostsWithCredentials;
143
+ private handleHostsAuthByKey;
144
+ refreshToken(): rxjs.Subscription;
145
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
146
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
147
+ }
148
+
149
+ declare class LoggedGuard {
150
+ private authService;
151
+ private config;
152
+ private router;
153
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggedGuard, never>;
155
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggedGuard>;
156
+ }
157
+
158
+ declare class AuthGuard {
159
+ private authService;
160
+ private config;
161
+ private router;
162
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
164
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
165
+ }
166
+
167
+ declare class AdminGuard {
168
+ private authService;
169
+ private config;
170
+ private router;
171
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdminGuard, never>;
173
+ static ɵprov: i0.ɵɵInjectableDeclaration<AdminGuard>;
174
+ }
175
+
176
+ declare class ProfilsGuard {
177
+ private authService;
178
+ private config;
179
+ private router;
180
+ canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): rxjs.Observable<boolean>;
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfilsGuard, never>;
182
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProfilsGuard>;
183
+ }
184
+
185
+ declare function provideAuthentification(...features: AuthFeature<AuthFeatureKind>[]): EnvironmentProviders;
186
+
187
+ export { AdminGuard, AuthFeatureKind, AuthGuard, AuthInterceptor, AuthService, AuthStorageService, LoggedGuard, ProfilsGuard, TokenService, provideAuthentification };
188
+ export type { AuthByKeyOptions, AuthFeature, AuthInternOptions, AuthOptions, AuthStorageOptions, IInfosUser, IgoJwtPayload, User, WithCredentialsOptions };
@@ -1,5 +1,23 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@igo2/auth/internal" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { UntypedFormGroup } from '@angular/forms';
4
+ import { AuthService } from '@igo2/auth';
5
+
6
+ declare class AuthInternComponent {
7
+ auth: AuthService;
8
+ private languageService;
9
+ get allowAnonymous(): boolean;
10
+ set allowAnonymous(value: boolean);
11
+ private _allowAnonymous;
12
+ error: string;
13
+ form: UntypedFormGroup;
14
+ loading: boolean;
15
+ login: EventEmitter<boolean>;
16
+ constructor();
17
+ loginUser(values: any): boolean;
18
+ loginAnonymous(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthInternComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthInternComponent, "igo-auth-intern", never, { "allowAnonymous": { "alias": "allowAnonymous"; "required": false; }; }, { "login": "login"; }, never, never, true, never>;
21
+ }
22
+
23
+ export { AuthInternComponent };
@@ -1,5 +1,86 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@igo2/auth/microsoft" />
5
- export * from './public_api';
1
+ import { AuthFeature, AuthFeatureKind } from '@igo2/auth';
2
+ import { ConfigService } from '@igo2/core/config';
3
+ import { BrowserAuthOptions, PublicClientApplication } from '@azure/msal-browser';
4
+ import * as i0 from '@angular/core';
5
+ import { EventEmitter } from '@angular/core';
6
+ import { IconSvg } from '@igo2/common/icon';
7
+ import { MsalGuardConfiguration } from '@azure/msal-angular';
8
+
9
+ declare class AuthMicrosoftComponent {
10
+ private authService;
11
+ private config;
12
+ private appRef;
13
+ private msalService;
14
+ private msalGuardConfig;
15
+ private options?;
16
+ private readonly _destroying$;
17
+ login: EventEmitter<boolean>;
18
+ private broadcastService;
19
+ svgIcon: IconSvg;
20
+ constructor();
21
+ loginMicrosoft(): void;
22
+ private checkAccount;
23
+ private getConf;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftComponent, "igo-auth-microsoft", never, {}, { "login": "login"; }, never, never, true, never>;
26
+ }
27
+
28
+ declare class AuthMicrosoftb2cComponent {
29
+ private authService;
30
+ private config;
31
+ private appRef;
32
+ private msalService;
33
+ private msalGuardConfig;
34
+ private options;
35
+ private readonly _destroying$;
36
+ login: EventEmitter<boolean>;
37
+ private broadcastService;
38
+ svgIcon: IconSvg;
39
+ constructor();
40
+ loginMicrosoftb2c(): void;
41
+ private checkAccount;
42
+ private getConf;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftb2cComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftb2cComponent, "igo-auth-microsoftb2c", never, {}, { "login": "login"; }, never, never, true, never>;
45
+ }
46
+
47
+ interface AuthMicrosoftOptions extends BrowserAuthOptions {
48
+ enabled?: boolean;
49
+ }
50
+ interface AuthMicrosoftb2cOptions {
51
+ enabled?: boolean;
52
+ browserAuthOptions?: BrowserAuthOptions;
53
+ options?: AuthMicrosoftb2cOptionsOptions;
54
+ scopes?: string[];
55
+ }
56
+ interface AuthMicrosoftb2cOptionsOptions {
57
+ names: AuthMicrosoftb2cOptionsNames;
58
+ authorities: AuthMicrosoftb2cOptionsAuthorities;
59
+ authorityDomain: string[];
60
+ }
61
+ interface AuthMicrosoftb2cOptionsNames {
62
+ signUpSignIn: string;
63
+ forgotPassword: string;
64
+ editProfile: string;
65
+ }
66
+ interface AuthMicrosoftb2cOptionsAuthorities {
67
+ signUpSignIn: AuthMicrosoftb2cOptionsAuthority;
68
+ forgotPassword: AuthMicrosoftb2cOptionsAuthority;
69
+ editProfile: AuthMicrosoftb2cOptionsAuthority;
70
+ }
71
+ interface AuthMicrosoftb2cOptionsAuthority {
72
+ authority: string;
73
+ }
74
+ interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
75
+ type: string;
76
+ }
77
+
78
+ declare const AUTH_MICROSOFT_DIRECTIVES: readonly [typeof AuthMicrosoftComponent, typeof AuthMicrosoftb2cComponent];
79
+ declare function MSALConfigFactory(config: ConfigService): PublicClientApplication;
80
+ declare function MSALConfigFactoryb2c(config: ConfigService): PublicClientApplication;
81
+ declare function MSALAngularConfigFactory(): MSPMsalGuardConfiguration;
82
+ declare function MSALAngularConfigFactoryb2c(config: ConfigService): MSPMsalGuardConfiguration;
83
+ declare function withMicrosoftSupport(type?: string): AuthFeature<AuthFeatureKind.Microsoft>;
84
+
85
+ export { AUTH_MICROSOFT_DIRECTIVES, AuthMicrosoftComponent, AuthMicrosoftb2cComponent, MSALAngularConfigFactory, MSALAngularConfigFactoryb2c, MSALConfigFactory, MSALConfigFactoryb2c, withMicrosoftSupport };
86
+ export type { AuthMicrosoftOptions, AuthMicrosoftb2cOptions, AuthMicrosoftb2cOptionsAuthorities, AuthMicrosoftb2cOptionsAuthority, AuthMicrosoftb2cOptionsNames, AuthMicrosoftb2cOptionsOptions, MSPMsalGuardConfiguration };
@@ -1,5 +1,19 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@igo2/auth/monitoring" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { Provider, EnvironmentProviders } from '@angular/core';
3
+ import { AnyMonitoringOptions } from '@igo2/core/monitoring';
4
+ import { AuthService } from '@igo2/auth';
5
+
6
+ declare function provideAuthUserMonitoring(options: AnyMonitoringOptions | null): (Provider | EnvironmentProviders)[];
7
+
8
+ declare class AuthMonitoringService {
9
+ private configService;
10
+ private monitoringOptions;
11
+ private injector;
12
+ authService?: AuthService;
13
+ constructor();
14
+ private _identifyUser;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthMonitoringService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthMonitoringService>;
17
+ }
18
+
19
+ export { AuthMonitoringService, provideAuthUserMonitoring };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/auth",
3
- "version": "19.0.2",
3
+ "version": "20.0.0-next.1",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -56,17 +56,17 @@
56
56
  "tslib": "^2.6.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@angular/cdk": "^19.0.0",
60
- "@angular/common": "^19.0.0",
61
- "@angular/core": "^19.0.0",
62
- "@angular/forms": "^19.0.0",
63
- "@angular/material": "^19.0.0",
64
- "@angular/router": "^19.0.0",
65
- "@azure/msal-angular": "^3.0.4",
66
- "@azure/msal-browser": "^3.0.4",
67
- "@igo2/common": "^19.0.2",
68
- "@igo2/core": "^19.0.2",
69
- "@igo2/utils": "^19.0.2",
59
+ "@angular/cdk": "^20.0.0",
60
+ "@angular/common": "^20.0.0",
61
+ "@angular/core": "^20.0.0",
62
+ "@angular/forms": "^20.0.0",
63
+ "@angular/material": "^20.0.0",
64
+ "@angular/router": "^20.0.0",
65
+ "@azure/msal-angular": "^4.0.0",
66
+ "@azure/msal-browser": "^4.0.0",
67
+ "@igo2/common": "^20.0.0-next.1",
68
+ "@igo2/core": "^20.0.0-next.1",
69
+ "@igo2/utils": "^20.0.0-next.1",
70
70
  "jwt-decode": "^4.0.0",
71
71
  "rxjs": "^7.8.0",
72
72
  "ts-cacheable": "^1.0.6",
@@ -1,6 +0,0 @@
1
- import { AuthOptions, AuthStorageOptions } from '@igo2/auth';
2
- import { AuthFormOptions } from '@igo2/auth/form';
3
- export interface AuthEnvironmentOptions {
4
- auth?: AuthOptions & AuthFormOptions;
5
- storage?: AuthStorageOptions;
6
- }
@@ -1 +0,0 @@
1
- export * from './environment.interface';
@@ -1,18 +0,0 @@
1
- import { ApplicationRef, EventEmitter } from '@angular/core';
2
- import { AuthService } from '@igo2/auth';
3
- import { ConfigService } from '@igo2/core/config';
4
- import * as i0 from "@angular/core";
5
- export declare class AuthFacebookComponent {
6
- private authService;
7
- private config;
8
- private appRef;
9
- private options?;
10
- login: EventEmitter<boolean>;
11
- constructor(authService: AuthService, config: ConfigService, appRef: ApplicationRef);
12
- private subscribeEvents;
13
- private statusChangeCallback;
14
- private loginFacebook;
15
- private loadSDKFacebook;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthFacebookComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthFacebookComponent, "igo-auth-facebook", never, {}, { "login": "login"; }, never, never, true, never>;
18
- }
@@ -1,2 +0,0 @@
1
- export * from './auth-facebook/auth-facebook.component';
2
- export * from './shared';
@@ -1,4 +0,0 @@
1
- export interface AuthFacebookOptions {
2
- enabled?: boolean;
3
- appId: string;
4
- }
@@ -1 +0,0 @@
1
- export * from './auth-facebook.interface';
@@ -1,41 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { AuthOptions, AuthService } from '@igo2/auth';
4
- import { ConfigService } from '@igo2/core/config';
5
- import { AuthFormOptions } from '../shared';
6
- import * as i0 from "@angular/core";
7
- export declare class AuthFormComponent implements OnInit {
8
- auth: AuthService;
9
- private config;
10
- private router;
11
- get backgroundDisable(): boolean;
12
- set backgroundDisable(value: boolean);
13
- private _backgroundDisable;
14
- get hasAlreadyConnectedDiv(): boolean;
15
- set hasAlreadyConnectedDiv(value: boolean);
16
- private _hasAlreadyConnectedDiv;
17
- get hasLogoutDiv(): boolean;
18
- set hasLogoutDiv(value: boolean);
19
- private _hasLogoutDiv;
20
- get showAlreadyConnectedDiv(): boolean;
21
- set showAlreadyConnectedDiv(value: boolean);
22
- private _showAlreadyConnectedDiv;
23
- get showLogoutDiv(): boolean;
24
- set showLogoutDiv(value: boolean);
25
- private _showLogoutDiv;
26
- get showLoginDiv(): boolean;
27
- login: EventEmitter<boolean>;
28
- options?: AuthOptions & AuthFormOptions;
29
- user: any;
30
- visible: boolean;
31
- private isLogoutRoute;
32
- constructor(auth: AuthService, config: ConfigService, router: Router);
33
- ngOnInit(): void;
34
- onLogin(): void;
35
- logout(): void;
36
- home(): void;
37
- private getName;
38
- private analyzeRoute;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthFormComponent, [null, null, { optional: true; }]>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthFormComponent, "igo-auth-form", never, { "backgroundDisable": { "alias": "backgroundDisable"; "required": false; }; "hasAlreadyConnectedDiv": { "alias": "hasAlreadyConnectedDiv"; "required": false; }; "hasLogoutDiv": { "alias": "hasLogoutDiv"; "required": false; }; "showAlreadyConnectedDiv": { "alias": "showAlreadyConnectedDiv"; "required": false; }; "showLogoutDiv": { "alias": "showLogoutDiv"; "required": false; }; }, { "login": "login"; }, never, never, true, never>;
41
- }
@@ -1,20 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/forms";
4
- import * as i3 from "@angular/material/form-field";
5
- import * as i4 from "@angular/material/input";
6
- import * as i5 from "@angular/material/icon";
7
- import * as i6 from "@angular/material/progress-spinner";
8
- import * as i7 from "@angular/material/button";
9
- import * as i8 from "@igo2/core/language";
10
- import * as i9 from "@azure/msal-angular";
11
- import * as i10 from "./auth-form/auth-form.component";
12
- import * as i11 from "@igo2/auth/google";
13
- import * as i12 from "@igo2/auth/internal";
14
- import * as i13 from "@igo2/auth/facebook";
15
- import * as i14 from "@igo2/auth/microsoft";
16
- export declare class IgoAuthFormModule {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoAuthFormModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAuthFormModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.MatIconModule, typeof i6.MatProgressSpinnerModule, typeof i7.MatButtonModule, typeof i8.IgoLanguageModule, typeof i9.MsalModule, typeof i10.AuthFormComponent, typeof i11.AuthGoogleComponent, typeof i12.AuthInternComponent, typeof i13.AuthFacebookComponent, typeof i14.AuthMicrosoftComponent, typeof i14.AuthMicrosoftb2cComponent], [typeof i10.AuthFormComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoAuthFormModule>;
20
- }
@@ -1,3 +0,0 @@
1
- export * from './shared/auth-form.interface';
2
- export * from './auth-form.module';
3
- export * from './auth-form/auth-form.component';
@@ -1,9 +0,0 @@
1
- import { AuthFacebookOptions } from '@igo2/auth/facebook';
2
- import { AuthGoogleOptions } from '@igo2/auth/google';
3
- import { AuthMicrosoftOptions, AuthMicrosoftb2cOptions } from '@igo2/auth/microsoft';
4
- export interface AuthFormOptions {
5
- facebook?: AuthFacebookOptions;
6
- google?: AuthGoogleOptions;
7
- microsoft?: AuthMicrosoftOptions;
8
- microsoftb2c?: AuthMicrosoftb2cOptions;
9
- }
@@ -1 +0,0 @@
1
- export * from './auth-form.interface';
@@ -1,25 +0,0 @@
1
- import { ApplicationRef, EventEmitter } from '@angular/core';
2
- import { AuthService } from '@igo2/auth';
3
- import { ConfigService } from '@igo2/core/config';
4
- import { LanguageService } from '@igo2/core/language';
5
- import * as i0 from "@angular/core";
6
- export declare class AuthGoogleComponent {
7
- private authService;
8
- private config;
9
- private languageService;
10
- private appRef;
11
- private options?;
12
- login: EventEmitter<boolean>;
13
- constructor(authService: AuthService, config: ConfigService, languageService: LanguageService, appRef: ApplicationRef);
14
- handleSignInClick(): void;
15
- handleSignOutClick(): void;
16
- private handleClientLoad;
17
- private initClient;
18
- private updateSigninStatus;
19
- private updateTextButton;
20
- private loginGoogle;
21
- private loadSDKGoogle;
22
- private loadPlatform;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthGoogleComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthGoogleComponent, "igo-auth-google", never, {}, { "login": "login"; }, never, never, true, never>;
25
- }
@@ -1,2 +0,0 @@
1
- export * from './auth-google/auth-google.component';
2
- export * from './shared';
@@ -1,5 +0,0 @@
1
- export interface AuthGoogleOptions {
2
- enabled?: boolean;
3
- apiKey: string;
4
- clientId: string;
5
- }
@@ -1 +0,0 @@
1
- export * from './auth-google.interface';
@@ -1,21 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
- import { AuthService } from '@igo2/auth';
4
- import { LanguageService } from '@igo2/core/language';
5
- import * as i0 from "@angular/core";
6
- export declare class AuthInternComponent {
7
- auth: AuthService;
8
- private languageService;
9
- get allowAnonymous(): boolean;
10
- set allowAnonymous(value: boolean);
11
- private _allowAnonymous;
12
- error: string;
13
- form: UntypedFormGroup;
14
- loading: boolean;
15
- login: EventEmitter<boolean>;
16
- constructor(auth: AuthService, languageService: LanguageService, fb: UntypedFormBuilder);
17
- loginUser(values: any): boolean;
18
- loginAnonymous(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInternComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthInternComponent, "igo-auth-intern", never, { "allowAnonymous": { "alias": "allowAnonymous"; "required": false; }; }, { "login": "login"; }, never, never, true, never>;
21
- }
@@ -1 +0,0 @@
1
- export * from './auth-intern/auth-intern.component';
@@ -1,3 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- import { AuthFeature, AuthFeatureKind } from './shared';
3
- export declare function provideAuthentification(...features: AuthFeature<AuthFeatureKind>[]): EnvironmentProviders;
@@ -1,13 +0,0 @@
1
- import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
2
- import { ConfigService } from '@igo2/core/config';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class AdminGuard {
6
- private authService;
7
- private config;
8
- private router;
9
- constructor(authService: AuthService, config: ConfigService, router: Router);
10
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AdminGuard, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AdminGuard>;
13
- }
@@ -1,4 +0,0 @@
1
- import { StorageOptions } from '@igo2/core/storage';
2
- export interface AuthStorageOptions extends StorageOptions {
3
- url: string;
4
- }
@@ -1,18 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { ConfigService } from '@igo2/core/config';
3
- import { BaseStorage, StorageScope } from '@igo2/core/storage';
4
- import { AuthStorageOptions } from './auth-storage.interface';
5
- import { AuthService } from './auth.service';
6
- import { TokenService } from './token.service';
7
- import * as i0 from "@angular/core";
8
- export declare class AuthStorageService extends BaseStorage<AuthStorageOptions> {
9
- private http;
10
- private authService;
11
- private tokenService;
12
- constructor(config: ConfigService, http: HttpClient, authService: AuthService, tokenService: TokenService);
13
- set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
14
- remove(key: string, scope?: StorageScope): void;
15
- clear(scope?: StorageScope): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthStorageService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthStorageService>;
18
- }
@@ -1,13 +0,0 @@
1
- import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
2
- import { ConfigService } from '@igo2/core/config';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class AuthGuard {
6
- private authService;
7
- private config;
8
- private router;
9
- constructor(authService: AuthService, config: ConfigService, router: Router);
10
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
13
- }
@@ -1,25 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
- import { ConfigService } from '@igo2/core/config';
4
- import { Observable } from 'rxjs';
5
- import { TokenService } from './token.service';
6
- import * as i0 from "@angular/core";
7
- export declare class AuthInterceptor implements HttpInterceptor {
8
- private config;
9
- private tokenService;
10
- private http;
11
- private authOptions;
12
- private refreshInProgress;
13
- private trustHosts;
14
- private hostsWithCredentials;
15
- private hostsWithAuthByKey;
16
- constructor(config: ConfigService, tokenService: TokenService, http: HttpClient);
17
- intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
18
- interceptXhr(xhr: any, url: string): boolean;
19
- alterUrlWithKeyAuth(url: string): string;
20
- private handleHostsWithCredentials;
21
- private handleHostsAuthByKey;
22
- refreshToken(): import("rxjs").Subscription;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
25
- }