@igo2/auth 16.2.0 → 17.0.0-next.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/esm2022/lib/auth-form/auth-facebook.component.mjs +6 -6
- package/esm2022/lib/auth-form/auth-form.component.mjs +26 -15
- package/esm2022/lib/auth-form/auth-google.component.mjs +6 -6
- package/esm2022/lib/auth-form/auth-intern.component.mjs +26 -12
- package/esm2022/lib/auth-form/auth-microsoft.component.mjs +12 -9
- package/esm2022/lib/auth-form/auth-microsoftb2c.component.mjs +12 -9
- package/esm2022/lib/auth-form/index.mjs +15 -1
- package/esm2022/lib/auth-monitoring/auth-monitoring.provider.mjs +1 -1
- package/esm2022/lib/auth-monitoring/auth-monitoring.service.mjs +6 -6
- package/esm2022/lib/auth.module.mjs +23 -16
- package/esm2022/lib/environment/environment.interface.mjs +1 -1
- package/esm2022/lib/environment/index.mjs +1 -1
- package/esm2022/lib/shared/admin.guard.mjs +5 -5
- package/esm2022/lib/shared/auth-microsoft.provider.mjs +1 -1
- package/esm2022/lib/shared/auth-msalBroadcastServiceb2c.service.mjs +6 -6
- package/esm2022/lib/shared/auth-msalServiceb2c.service..mjs +6 -6
- package/esm2022/lib/shared/auth-storage.interface.mjs +1 -1
- package/esm2022/lib/shared/auth-storage.service.mjs +5 -5
- package/esm2022/lib/shared/auth.guard.mjs +5 -5
- package/esm2022/lib/shared/auth.interceptor.mjs +5 -5
- package/esm2022/lib/shared/auth.interface.mjs +1 -1
- package/esm2022/lib/shared/auth.service.mjs +6 -6
- package/esm2022/lib/shared/index.mjs +1 -1
- package/esm2022/lib/shared/logged.guard.mjs +5 -5
- package/esm2022/lib/shared/profils.guard.mjs +5 -5
- package/esm2022/lib/shared/protected.directive.mjs +7 -6
- package/esm2022/lib/shared/token.service.mjs +5 -5
- package/esm2022/public_api.mjs +1 -2
- package/fesm2022/igo2-auth.mjs +203 -185
- package/fesm2022/igo2-auth.mjs.map +1 -1
- package/lib/auth-form/auth-facebook.component.d.ts +1 -1
- package/lib/auth-form/auth-form.component.d.ts +1 -1
- package/lib/auth-form/auth-google.component.d.ts +1 -1
- package/lib/auth-form/auth-intern.component.d.ts +1 -1
- package/lib/auth-form/auth-microsoft.component.d.ts +1 -1
- package/lib/auth-form/auth-microsoftb2c.component.d.ts +1 -1
- package/lib/auth-form/index.d.ts +7 -0
- package/lib/auth.module.d.ts +17 -16
- package/lib/shared/auth-storage.service.d.ts +1 -1
- package/lib/shared/protected.directive.d.ts +1 -1
- package/locale/en.auth.json +29 -28
- package/locale/fr.auth.json +33 -32
- package/package.json +9 -9
- package/public_api.d.ts +0 -1
- package/src/auth.theme.scss +9 -0
- package/src/lib/auth-form/auth-intern.theme.scss +19 -0
- package/esm2022/lib/auth-routing.module.mjs +0 -23
- package/lib/auth-routing.module.d.ts +0 -7
package/fesm2022/igo2-auth.mjs
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Optional, EventEmitter, Component, ChangeDetectionStrategy, Output, Input, Inject, Directive, Injector, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
3
|
-
import * as i3 from '@angular/router';
|
|
4
|
-
import { NavigationStart, RouterModule } from '@angular/router';
|
|
5
3
|
import * as i2 from '@igo2/core';
|
|
6
4
|
import { ConfigService, BaseStorage, StorageScope, identifySentryUser, MONITORING_OPTIONS, StorageService, IgoLanguageModule } from '@igo2/core';
|
|
7
|
-
import { tap, catchError, filter, takeUntil, map } from 'rxjs/operators';
|
|
8
5
|
import * as i1 from '@angular/common/http';
|
|
9
6
|
import { HttpHeaders, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
+
import * as i3 from '@angular/router';
|
|
8
|
+
import { NavigationStart } from '@angular/router';
|
|
10
9
|
import { Base64 } from '@igo2/utils';
|
|
11
10
|
import { BehaviorSubject, of, Subject, from, first, switchMap } from 'rxjs';
|
|
11
|
+
import { tap, catchError, filter, takeUntil, map } from 'rxjs/operators';
|
|
12
12
|
import { globalCacheBusterNotifier } from 'ts-cacheable';
|
|
13
13
|
import { jwtDecode } from 'jwt-decode';
|
|
14
14
|
import * as i1$1 from '@angular/common';
|
|
15
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
-
import * as
|
|
15
|
+
import { NgIf, CommonModule } from '@angular/common';
|
|
16
|
+
import * as i4$1 from '@angular/material/button';
|
|
17
17
|
import { MatButtonModule } from '@angular/material/button';
|
|
18
|
+
import * as i6 from '@ngx-translate/core';
|
|
19
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
18
20
|
import * as i3$1 from '@angular/forms';
|
|
19
|
-
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
20
|
-
import * as
|
|
21
|
+
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
22
|
+
import * as i4 from '@angular/material/form-field';
|
|
21
23
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
22
|
-
import * as
|
|
24
|
+
import * as i5 from '@angular/material/input';
|
|
23
25
|
import { MatInputModule } from '@angular/material/input';
|
|
24
|
-
import
|
|
26
|
+
import { MatProgressSpinner, MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
|
+
import * as i5$1 from '@angular/material/icon';
|
|
28
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
25
29
|
import * as i3$2 from '@azure/msal-angular';
|
|
26
30
|
import { MsalBroadcastService, MSAL_GUARD_CONFIG, MSAL_INSTANCE, MsalService, MsalModule } from '@azure/msal-angular';
|
|
27
31
|
import { PublicClientApplication, InteractionStatus, InteractionRequiredAuthError, WrapperSKU, EventMessageUtils, InteractionType } from '@azure/msal-browser';
|
|
28
|
-
import * as i4 from '@angular/material/icon';
|
|
29
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
30
32
|
import { Md5 } from 'ts-md5';
|
|
31
33
|
|
|
32
34
|
class TokenService {
|
|
@@ -63,15 +65,15 @@ class TokenService {
|
|
|
63
65
|
}
|
|
64
66
|
return true;
|
|
65
67
|
}
|
|
66
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
67
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: TokenService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: TokenService, providedIn: 'root' });
|
|
68
70
|
}
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: TokenService, decorators: [{
|
|
70
72
|
type: Injectable,
|
|
71
73
|
args: [{
|
|
72
74
|
providedIn: 'root'
|
|
73
75
|
}]
|
|
74
|
-
}], ctorParameters:
|
|
76
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
75
77
|
|
|
76
78
|
class AuthService {
|
|
77
79
|
http;
|
|
@@ -218,17 +220,76 @@ class AuthService {
|
|
|
218
220
|
throw err;
|
|
219
221
|
}));
|
|
220
222
|
}
|
|
221
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
222
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: TokenService }, { token: i2.ConfigService }, { token: i2.LanguageService }, { token: i2.MessageService }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
224
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
223
225
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthService, decorators: [{
|
|
225
227
|
type: Injectable,
|
|
226
228
|
args: [{
|
|
227
229
|
providedIn: 'root'
|
|
228
230
|
}]
|
|
229
|
-
}], ctorParameters:
|
|
231
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: TokenService }, { type: i2.ConfigService }, { type: i2.LanguageService }, { type: i2.MessageService }, { type: i3.Router, decorators: [{
|
|
230
232
|
type: Optional
|
|
231
|
-
}] }]
|
|
233
|
+
}] }] });
|
|
234
|
+
|
|
235
|
+
class AuthFacebookComponent {
|
|
236
|
+
authService;
|
|
237
|
+
config;
|
|
238
|
+
appRef;
|
|
239
|
+
options;
|
|
240
|
+
login = new EventEmitter();
|
|
241
|
+
constructor(authService, config, appRef) {
|
|
242
|
+
this.authService = authService;
|
|
243
|
+
this.config = config;
|
|
244
|
+
this.appRef = appRef;
|
|
245
|
+
this.options = this.config.getConfig('auth.facebook');
|
|
246
|
+
if (this.options?.appId) {
|
|
247
|
+
this.loadSDKFacebook();
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
console.warn('Facebook authentification needs "appId" option');
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
subscribeEvents() {
|
|
254
|
+
window.FB.Event.subscribe('auth.statusChange', (rep) => {
|
|
255
|
+
this.statusChangeCallback(rep);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
statusChangeCallback(response) {
|
|
259
|
+
if (response.status === 'connected') {
|
|
260
|
+
const accessToken = response.authResponse.accessToken;
|
|
261
|
+
this.loginFacebook(accessToken);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
loginFacebook(token) {
|
|
265
|
+
this.authService.loginWithToken(token, 'facebook').subscribe(() => {
|
|
266
|
+
this.appRef.tick();
|
|
267
|
+
this.login.emit(true);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
loadSDKFacebook() {
|
|
271
|
+
if (document.getElementById('facebook-jssdk')) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const urlSDK = 'https://connect.facebook.net/fr_CA/sdk.js#xfbml=1&version=v2.9';
|
|
275
|
+
const fjs = document.getElementsByTagName('script')[0];
|
|
276
|
+
const js = document.createElement('script');
|
|
277
|
+
js.id = 'facebook-jssdk';
|
|
278
|
+
js.src = `${urlSDK}&appId=${this.options?.appId}`;
|
|
279
|
+
js.onload = () => {
|
|
280
|
+
this.subscribeEvents();
|
|
281
|
+
};
|
|
282
|
+
fjs.parentNode.insertBefore(js, fjs);
|
|
283
|
+
}
|
|
284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthFacebookComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
285
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthFacebookComponent, isStandalone: true, selector: "igo-auth-facebook", outputs: { login: "login" }, ngImport: i0, template: "<div\r\n scope=\"public_profile,email\"\r\n class=\"fb-login-button\"\r\n data-max-rows=\"1\"\r\n data-size=\"large\"\r\n data-button-type=\"login_with\"\r\n data-show-faces=\"false\"\r\n data-auto-logout-link=\"false\"\r\n data-use-continue-as=\"false\"\r\n></div>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-3px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
286
|
+
}
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthFacebookComponent, decorators: [{
|
|
288
|
+
type: Component,
|
|
289
|
+
args: [{ selector: 'igo-auth-facebook', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div\r\n scope=\"public_profile,email\"\r\n class=\"fb-login-button\"\r\n data-max-rows=\"1\"\r\n data-size=\"large\"\r\n data-button-type=\"login_with\"\r\n data-show-faces=\"false\"\r\n data-auto-logout-link=\"false\"\r\n data-use-continue-as=\"false\"\r\n></div>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-3px}\n"] }]
|
|
290
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i0.ApplicationRef }], propDecorators: { login: [{
|
|
291
|
+
type: Output
|
|
292
|
+
}] } });
|
|
232
293
|
|
|
233
294
|
class AuthGoogleComponent {
|
|
234
295
|
authService;
|
|
@@ -320,13 +381,13 @@ class AuthGoogleComponent {
|
|
|
320
381
|
js.src = 'https://apis.google.com/js/platform.js';
|
|
321
382
|
fjs.parentNode.insertBefore(js, fjs);
|
|
322
383
|
}
|
|
323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
324
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
384
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthGoogleComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i2.LanguageService }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
385
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthGoogleComponent, isStandalone: true, selector: "igo-auth-google", outputs: { login: "login" }, ngImport: i0, template: "<div\r\n class=\"g-signin2 google-login-button\"\r\n data-height=\"40\"\r\n data-width=\"265\"\r\n data-longtitle=\"true\"\r\n></div>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block}.google-login-button ::ng-deep .abcRioButton{color:#000000de}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
325
386
|
}
|
|
326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthGoogleComponent, decorators: [{
|
|
327
388
|
type: Component,
|
|
328
|
-
args: [{ selector: 'igo-auth-google', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"g-signin2 google-login-button\"\n data-height=\"40\"\n data-width=\"265\"\n data-longtitle=\"true\"\n></div>\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block}.google-login-button ::ng-deep .abcRioButton{color:#000000de}\n"] }]
|
|
329
|
-
}], ctorParameters:
|
|
389
|
+
args: [{ selector: 'igo-auth-google', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div\r\n class=\"g-signin2 google-login-button\"\r\n data-height=\"40\"\r\n data-width=\"265\"\r\n data-longtitle=\"true\"\r\n></div>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block}.google-login-button ::ng-deep .abcRioButton{color:#000000de}\n"] }]
|
|
390
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i2.LanguageService }, { type: i0.ApplicationRef }], propDecorators: { login: [{
|
|
330
391
|
type: Output
|
|
331
392
|
}] } });
|
|
332
393
|
|
|
@@ -375,77 +436,27 @@ class AuthInternComponent {
|
|
|
375
436
|
this.login.emit(true);
|
|
376
437
|
});
|
|
377
438
|
}
|
|
378
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
379
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
439
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthInternComponent, deps: [{ token: AuthService }, { token: i2.LanguageService }, { token: i3$1.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
440
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthInternComponent, isStandalone: true, selector: "igo-auth-intern", inputs: { allowAnonymous: "allowAnonymous" }, outputs: { login: "login" }, ngImport: i0, template: "<form [formGroup]=\"form\" role=\"form\" (ngSubmit)=\"loginUser(form.value)\">\r\n <div>\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>{{ 'igo.auth.user' | translate }}</mat-label>\r\n <input\r\n matInput\r\n required\r\n placeholder=\"{{ 'igo.auth.user' | translate }}\"\r\n formControlName=\"username\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>{{ 'igo.auth.password' | translate }}</mat-label>\r\n <input\r\n matInput\r\n required\r\n type=\"password\"\r\n placeholder=\"{{ 'igo.auth.password' | translate }}\"\r\n formControlName=\"password\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <button mat-raised-button type=\"submit\">\r\n {{ 'igo.auth.login' | translate }}\r\n </button>\r\n <button\r\n *ngIf=\"allowAnonymous\"\r\n mat-raised-button\r\n class=\"anonymous\"\r\n type=\"button\"\r\n (click)=\"loginAnonymous()\"\r\n >\r\n {{ 'igo.auth.accessAnonymous' | translate }}\r\n </button>\r\n <div *ngIf=\"error\">\r\n <br />\r\n <font size=\"3\" color=\"red\">{{ error }}</font>\r\n </div>\r\n</form>\r\n\r\n<div *ngIf=\"loading\" class=\"loading-container\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n</div>\r\n", styles: [".full-width{width:100%}.anonymous{margin-left:10px}.loading-container{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1000;top:0;left:0;padding:24px;box-sizing:border-box}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
380
441
|
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthInternComponent, decorators: [{
|
|
382
443
|
type: Component,
|
|
383
|
-
args: [{ selector: 'igo-auth-intern', changeDetection: ChangeDetectionStrategy.Default,
|
|
384
|
-
|
|
444
|
+
args: [{ selector: 'igo-auth-intern', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
445
|
+
FormsModule,
|
|
446
|
+
ReactiveFormsModule,
|
|
447
|
+
MatFormFieldModule,
|
|
448
|
+
MatInputModule,
|
|
449
|
+
MatButtonModule,
|
|
450
|
+
MatProgressSpinner,
|
|
451
|
+
NgIf,
|
|
452
|
+
TranslateModule
|
|
453
|
+
], template: "<form [formGroup]=\"form\" role=\"form\" (ngSubmit)=\"loginUser(form.value)\">\r\n <div>\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>{{ 'igo.auth.user' | translate }}</mat-label>\r\n <input\r\n matInput\r\n required\r\n placeholder=\"{{ 'igo.auth.user' | translate }}\"\r\n formControlName=\"username\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>{{ 'igo.auth.password' | translate }}</mat-label>\r\n <input\r\n matInput\r\n required\r\n type=\"password\"\r\n placeholder=\"{{ 'igo.auth.password' | translate }}\"\r\n formControlName=\"password\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <button mat-raised-button type=\"submit\">\r\n {{ 'igo.auth.login' | translate }}\r\n </button>\r\n <button\r\n *ngIf=\"allowAnonymous\"\r\n mat-raised-button\r\n class=\"anonymous\"\r\n type=\"button\"\r\n (click)=\"loginAnonymous()\"\r\n >\r\n {{ 'igo.auth.accessAnonymous' | translate }}\r\n </button>\r\n <div *ngIf=\"error\">\r\n <br />\r\n <font size=\"3\" color=\"red\">{{ error }}</font>\r\n </div>\r\n</form>\r\n\r\n<div *ngIf=\"loading\" class=\"loading-container\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n</div>\r\n", styles: [".full-width{width:100%}.anonymous{margin-left:10px}.loading-container{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1000;top:0;left:0;padding:24px;box-sizing:border-box}\n"] }]
|
|
454
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.LanguageService }, { type: i3$1.UntypedFormBuilder }], propDecorators: { allowAnonymous: [{
|
|
385
455
|
type: Input
|
|
386
456
|
}], login: [{
|
|
387
457
|
type: Output
|
|
388
458
|
}] } });
|
|
389
459
|
|
|
390
|
-
class AuthFacebookComponent {
|
|
391
|
-
authService;
|
|
392
|
-
config;
|
|
393
|
-
appRef;
|
|
394
|
-
options;
|
|
395
|
-
login = new EventEmitter();
|
|
396
|
-
constructor(authService, config, appRef) {
|
|
397
|
-
this.authService = authService;
|
|
398
|
-
this.config = config;
|
|
399
|
-
this.appRef = appRef;
|
|
400
|
-
this.options = this.config.getConfig('auth.facebook');
|
|
401
|
-
if (this.options?.appId) {
|
|
402
|
-
this.loadSDKFacebook();
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
console.warn('Facebook authentification needs "appId" option');
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
subscribeEvents() {
|
|
409
|
-
window.FB.Event.subscribe('auth.statusChange', (rep) => {
|
|
410
|
-
this.statusChangeCallback(rep);
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
statusChangeCallback(response) {
|
|
414
|
-
if (response.status === 'connected') {
|
|
415
|
-
const accessToken = response.authResponse.accessToken;
|
|
416
|
-
this.loginFacebook(accessToken);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
loginFacebook(token) {
|
|
420
|
-
this.authService.loginWithToken(token, 'facebook').subscribe(() => {
|
|
421
|
-
this.appRef.tick();
|
|
422
|
-
this.login.emit(true);
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
loadSDKFacebook() {
|
|
426
|
-
if (document.getElementById('facebook-jssdk')) {
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
const urlSDK = 'https://connect.facebook.net/fr_CA/sdk.js#xfbml=1&version=v2.9';
|
|
430
|
-
const fjs = document.getElementsByTagName('script')[0];
|
|
431
|
-
const js = document.createElement('script');
|
|
432
|
-
js.id = 'facebook-jssdk';
|
|
433
|
-
js.src = `${urlSDK}&appId=${this.options?.appId}`;
|
|
434
|
-
js.onload = () => {
|
|
435
|
-
this.subscribeEvents();
|
|
436
|
-
};
|
|
437
|
-
fjs.parentNode.insertBefore(js, fjs);
|
|
438
|
-
}
|
|
439
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthFacebookComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
440
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AuthFacebookComponent, selector: "igo-auth-facebook", outputs: { login: "login" }, ngImport: i0, template: "<div\n scope=\"public_profile,email\"\n class=\"fb-login-button\"\n data-max-rows=\"1\"\n data-size=\"large\"\n data-button-type=\"login_with\"\n data-show-faces=\"false\"\n data-auto-logout-link=\"false\"\n data-use-continue-as=\"false\"\n></div>\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-3px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
441
|
-
}
|
|
442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthFacebookComponent, decorators: [{
|
|
443
|
-
type: Component,
|
|
444
|
-
args: [{ selector: 'igo-auth-facebook', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n scope=\"public_profile,email\"\n class=\"fb-login-button\"\n data-max-rows=\"1\"\n data-size=\"large\"\n data-button-type=\"login_with\"\n data-show-faces=\"false\"\n data-auto-logout-link=\"false\"\n data-use-continue-as=\"false\"\n></div>\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-3px}\n"] }]
|
|
445
|
-
}], ctorParameters: function () { return [{ type: AuthService }, { type: i2.ConfigService }, { type: i0.ApplicationRef }]; }, propDecorators: { login: [{
|
|
446
|
-
type: Output
|
|
447
|
-
}] } });
|
|
448
|
-
|
|
449
460
|
class AuthMicrosoftComponent {
|
|
450
461
|
authService;
|
|
451
462
|
config;
|
|
@@ -516,16 +527,16 @@ class AuthMicrosoftComponent {
|
|
|
516
527
|
getConf() {
|
|
517
528
|
return this.msalGuardConfig.filter((conf) => conf.type === 'add')[0];
|
|
518
529
|
}
|
|
519
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
520
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
530
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMicrosoftComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i0.ApplicationRef }, { token: i3$2.MsalService }, { token: MSAL_GUARD_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthMicrosoftComponent, isStandalone: true, selector: "igo-auth-microsoft", outputs: { login: "login" }, ngImport: i0, template: "<button\r\n class=\"microsoft-login-button\"\r\n mat-raised-button\r\n (click)=\"loginMicrosoft()\"\r\n>\r\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\r\n {{ 'igo.auth.microsoft.login' | translate }}\r\n</button>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
521
532
|
}
|
|
522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMicrosoftComponent, decorators: [{
|
|
523
534
|
type: Component,
|
|
524
|
-
args: [{ selector: 'igo-auth-microsoft', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n class=\"microsoft-login-button\"\n mat-raised-button\n (click)=\"loginMicrosoft()\"\n>\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\n {{ 'igo.auth.microsoft.login' | translate }}\n</button>\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"] }]
|
|
525
|
-
}], ctorParameters:
|
|
535
|
+
args: [{ selector: 'igo-auth-microsoft', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, MatIconModule, TranslateModule], template: "<button\r\n class=\"microsoft-login-button\"\r\n mat-raised-button\r\n (click)=\"loginMicrosoft()\"\r\n>\r\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\r\n {{ 'igo.auth.microsoft.login' | translate }}\r\n</button>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"] }]
|
|
536
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i0.ApplicationRef }, { type: i3$2.MsalService }, { type: undefined, decorators: [{
|
|
526
537
|
type: Inject,
|
|
527
538
|
args: [MSAL_GUARD_CONFIG]
|
|
528
|
-
}] }]
|
|
539
|
+
}] }], propDecorators: { login: [{
|
|
529
540
|
type: Output
|
|
530
541
|
}] } });
|
|
531
542
|
|
|
@@ -597,15 +608,15 @@ class MsalServiceb2c {
|
|
|
597
608
|
this.logger = logger.clone(this.name, this.version);
|
|
598
609
|
this.instance.setLogger(logger);
|
|
599
610
|
}
|
|
600
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
601
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
611
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalServiceb2c, deps: [{ token: MSAL_INSTANCE }, { token: i1$1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
612
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalServiceb2c });
|
|
602
613
|
}
|
|
603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalServiceb2c, decorators: [{
|
|
604
615
|
type: Injectable
|
|
605
|
-
}], ctorParameters:
|
|
616
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
606
617
|
type: Inject,
|
|
607
618
|
args: [MSAL_INSTANCE]
|
|
608
|
-
}] }, { type: i1$1.Location }]
|
|
619
|
+
}] }, { type: i1$1.Location }] });
|
|
609
620
|
|
|
610
621
|
/*
|
|
611
622
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -637,15 +648,15 @@ class MsalBroadcastServiceb2c {
|
|
|
637
648
|
}
|
|
638
649
|
});
|
|
639
650
|
}
|
|
640
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
641
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
651
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalBroadcastServiceb2c, deps: [{ token: MSAL_INSTANCE }, { token: MsalServiceb2c }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
652
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalBroadcastServiceb2c });
|
|
642
653
|
}
|
|
643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MsalBroadcastServiceb2c, decorators: [{
|
|
644
655
|
type: Injectable
|
|
645
|
-
}], ctorParameters:
|
|
656
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
646
657
|
type: Inject,
|
|
647
658
|
args: [MSAL_INSTANCE]
|
|
648
|
-
}] }, { type: MsalServiceb2c }]
|
|
659
|
+
}] }, { type: MsalServiceb2c }] });
|
|
649
660
|
|
|
650
661
|
class AuthMicrosoftb2cComponent {
|
|
651
662
|
authService;
|
|
@@ -713,16 +724,16 @@ class AuthMicrosoftb2cComponent {
|
|
|
713
724
|
getConf() {
|
|
714
725
|
return this.msalGuardConfig.filter((conf) => conf.type === 'b2c')[0];
|
|
715
726
|
}
|
|
716
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
717
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
727
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMicrosoftb2cComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i0.ApplicationRef }, { token: MsalServiceb2c }, { token: MSAL_GUARD_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
728
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthMicrosoftb2cComponent, isStandalone: true, selector: "igo-auth-microsoftb2c", outputs: { login: "login" }, ngImport: i0, template: "<button\r\n class=\"microsoft-login-button\"\r\n mat-raised-button\r\n (click)=\"loginMicrosoftb2c()\"\r\n>\r\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\r\n {{ 'igo.auth.microsoftb2c.login' | translate }}\r\n</button>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
718
729
|
}
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMicrosoftb2cComponent, decorators: [{
|
|
720
731
|
type: Component,
|
|
721
|
-
args: [{ selector: 'igo-auth-microsoftb2c', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n class=\"microsoft-login-button\"\n mat-raised-button\n (click)=\"loginMicrosoftb2c()\"\n>\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\n {{ 'igo.auth.microsoftb2c.login' | translate }}\n</button>\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"] }]
|
|
722
|
-
}], ctorParameters:
|
|
732
|
+
args: [{ selector: 'igo-auth-microsoftb2c', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, MatIconModule, TranslateModule], template: "<button\r\n class=\"microsoft-login-button\"\r\n mat-raised-button\r\n (click)=\"loginMicrosoftb2c()\"\r\n>\r\n <mat-icon svgIcon=\"microsoft\"></mat-icon>\r\n {{ 'igo.auth.microsoftb2c.login' | translate }}\r\n</button>\r\n", styles: [":host{padding:10px 10px 10px 0;display:inline-block;position:relative;top:-15px}:host>button{font-size:15px;height:40px;width:265px}mat-icon{margin-right:10px}\n"] }]
|
|
733
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i0.ApplicationRef }, { type: MsalServiceb2c }, { type: undefined, decorators: [{
|
|
723
734
|
type: Inject,
|
|
724
735
|
args: [MSAL_GUARD_CONFIG]
|
|
725
|
-
}] }]
|
|
736
|
+
}] }], propDecorators: { login: [{
|
|
726
737
|
type: Output
|
|
727
738
|
}] } });
|
|
728
739
|
|
|
@@ -846,15 +857,24 @@ class AuthFormComponent {
|
|
|
846
857
|
}
|
|
847
858
|
});
|
|
848
859
|
}
|
|
849
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
850
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
860
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthFormComponent, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i3.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
861
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuthFormComponent, isStandalone: true, selector: "igo-auth-form", inputs: { backgroundDisable: "backgroundDisable", hasAlreadyConnectedDiv: "hasAlreadyConnectedDiv", hasLogoutDiv: "hasLogoutDiv", showAlreadyConnectedDiv: "showAlreadyConnectedDiv", showLogoutDiv: "showLogoutDiv" }, outputs: { login: "login" }, ngImport: i0, template: "<div *ngIf=\"visible\">\r\n <div\r\n *ngIf=\"!auth.logged && backgroundDisable\"\r\n class=\"backgroundDisable\"\r\n ></div>\r\n\r\n <div *ngIf=\"!auth.logged && showLoginDiv\" class=\"login center-block\">\r\n <h1>{{ 'igo.auth.connection' | translate }}</h1>\r\n\r\n <igo-auth-google\r\n *ngIf=\"options.google && options.google.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-google>\r\n <igo-auth-microsoft\r\n *ngIf=\"options.microsoft && options.microsoft.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-microsoft>\r\n <igo-auth-microsoftb2c\r\n *ngIf=\"options.microsoftb2c && options.microsoftb2c.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-microsoftb2c>\r\n <igo-auth-facebook\r\n *ngIf=\"options.facebook && options.facebook.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-facebook>\r\n <igo-auth-intern\r\n *ngIf=\"!options.intern || options.intern.enabled !== false\"\r\n [allowAnonymous]=\"options.allowAnonymous\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-intern>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"auth.logged && showAlreadyConnectedDiv\"\r\n class=\"login center-block\"\r\n >\r\n <p>{{ 'igo.auth.welcome' | translate: user }}</p>\r\n <button mat-raised-button type=\"button\" (click)=\"logout()\">\r\n {{ 'igo.auth.signOut' | translate }}\r\n </button>\r\n </div>\r\n\r\n <div *ngIf=\"showLogoutDiv\" class=\"login center-block\">\r\n <p>{{ 'igo.auth.deconnection' | translate }}</p>\r\n <button\r\n *ngIf=\"options.homeRoute\"\r\n mat-raised-button\r\n type=\"button\"\r\n (click)=\"home()\"\r\n >\r\n {{ 'igo.auth.home' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [":host{z-index:999}div.login{z-index:200;width:90%;min-width:360px;max-width:600px;padding:25px 50px;border:1px solid;background-color:#fff;border-color:#888}.center-block{position:fixed;top:20%;left:50%;transform:translate(-50%)}.backgroundDisable{position:fixed;top:0;left:0;background:#000;opacity:.8;z-index:100;height:100%;width:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AuthGoogleComponent, selector: "igo-auth-google", outputs: ["login"] }, { kind: "component", type: AuthMicrosoftComponent, selector: "igo-auth-microsoft", outputs: ["login"] }, { kind: "component", type: AuthMicrosoftb2cComponent, selector: "igo-auth-microsoftb2c", outputs: ["login"] }, { kind: "component", type: AuthFacebookComponent, selector: "igo-auth-facebook", outputs: ["login"] }, { kind: "component", type: AuthInternComponent, selector: "igo-auth-intern", inputs: ["allowAnonymous"], outputs: ["login"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
851
862
|
}
|
|
852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthFormComponent, decorators: [{
|
|
853
864
|
type: Component,
|
|
854
|
-
args: [{ selector: 'igo-auth-form', changeDetection: ChangeDetectionStrategy.Default,
|
|
855
|
-
|
|
865
|
+
args: [{ selector: 'igo-auth-form', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
866
|
+
NgIf,
|
|
867
|
+
AuthGoogleComponent,
|
|
868
|
+
AuthMicrosoftComponent,
|
|
869
|
+
AuthMicrosoftb2cComponent,
|
|
870
|
+
AuthFacebookComponent,
|
|
871
|
+
AuthInternComponent,
|
|
872
|
+
MatButtonModule,
|
|
873
|
+
TranslateModule
|
|
874
|
+
], template: "<div *ngIf=\"visible\">\r\n <div\r\n *ngIf=\"!auth.logged && backgroundDisable\"\r\n class=\"backgroundDisable\"\r\n ></div>\r\n\r\n <div *ngIf=\"!auth.logged && showLoginDiv\" class=\"login center-block\">\r\n <h1>{{ 'igo.auth.connection' | translate }}</h1>\r\n\r\n <igo-auth-google\r\n *ngIf=\"options.google && options.google.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-google>\r\n <igo-auth-microsoft\r\n *ngIf=\"options.microsoft && options.microsoft.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-microsoft>\r\n <igo-auth-microsoftb2c\r\n *ngIf=\"options.microsoftb2c && options.microsoftb2c.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-microsoftb2c>\r\n <igo-auth-facebook\r\n *ngIf=\"options.facebook && options.facebook.enabled !== false\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-facebook>\r\n <igo-auth-intern\r\n *ngIf=\"!options.intern || options.intern.enabled !== false\"\r\n [allowAnonymous]=\"options.allowAnonymous\"\r\n (login)=\"onLogin()\"\r\n >\r\n </igo-auth-intern>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"auth.logged && showAlreadyConnectedDiv\"\r\n class=\"login center-block\"\r\n >\r\n <p>{{ 'igo.auth.welcome' | translate: user }}</p>\r\n <button mat-raised-button type=\"button\" (click)=\"logout()\">\r\n {{ 'igo.auth.signOut' | translate }}\r\n </button>\r\n </div>\r\n\r\n <div *ngIf=\"showLogoutDiv\" class=\"login center-block\">\r\n <p>{{ 'igo.auth.deconnection' | translate }}</p>\r\n <button\r\n *ngIf=\"options.homeRoute\"\r\n mat-raised-button\r\n type=\"button\"\r\n (click)=\"home()\"\r\n >\r\n {{ 'igo.auth.home' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [":host{z-index:999}div.login{z-index:200;width:90%;min-width:360px;max-width:600px;padding:25px 50px;border:1px solid;background-color:#fff;border-color:#888}.center-block{position:fixed;top:20%;left:50%;transform:translate(-50%)}.backgroundDisable{position:fixed;top:0;left:0;background:#000;opacity:.8;z-index:100;height:100%;width:100%}\n"] }]
|
|
875
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i3.Router, decorators: [{
|
|
856
876
|
type: Optional
|
|
857
|
-
}] }]
|
|
877
|
+
}] }], propDecorators: { backgroundDisable: [{
|
|
858
878
|
type: Input
|
|
859
879
|
}], hasAlreadyConnectedDiv: [{
|
|
860
880
|
type: Input
|
|
@@ -868,6 +888,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
868
888
|
type: Output
|
|
869
889
|
}] } });
|
|
870
890
|
|
|
891
|
+
const AUTH_FORM_DIRECTIVES = [
|
|
892
|
+
AuthFormComponent,
|
|
893
|
+
AuthGoogleComponent,
|
|
894
|
+
AuthInternComponent,
|
|
895
|
+
AuthFacebookComponent,
|
|
896
|
+
AuthMicrosoftComponent,
|
|
897
|
+
AuthMicrosoftb2cComponent
|
|
898
|
+
];
|
|
899
|
+
|
|
871
900
|
class LoggedGuard {
|
|
872
901
|
authService;
|
|
873
902
|
config;
|
|
@@ -888,15 +917,15 @@ class LoggedGuard {
|
|
|
888
917
|
}
|
|
889
918
|
return false;
|
|
890
919
|
}
|
|
891
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
892
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
920
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggedGuard, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
921
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggedGuard, providedIn: 'root' });
|
|
893
922
|
}
|
|
894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggedGuard, decorators: [{
|
|
895
924
|
type: Injectable,
|
|
896
925
|
args: [{
|
|
897
926
|
providedIn: 'root'
|
|
898
927
|
}]
|
|
899
|
-
}], ctorParameters:
|
|
928
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i3.Router }] });
|
|
900
929
|
|
|
901
930
|
class AuthGuard {
|
|
902
931
|
authService;
|
|
@@ -918,15 +947,15 @@ class AuthGuard {
|
|
|
918
947
|
}
|
|
919
948
|
return false;
|
|
920
949
|
}
|
|
921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
922
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
950
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthGuard, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
951
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthGuard, providedIn: 'root' });
|
|
923
952
|
}
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthGuard, decorators: [{
|
|
925
954
|
type: Injectable,
|
|
926
955
|
args: [{
|
|
927
956
|
providedIn: 'root'
|
|
928
957
|
}]
|
|
929
|
-
}], ctorParameters:
|
|
958
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i3.Router }] });
|
|
930
959
|
|
|
931
960
|
class AdminGuard {
|
|
932
961
|
authService;
|
|
@@ -948,15 +977,15 @@ class AdminGuard {
|
|
|
948
977
|
}
|
|
949
978
|
return false;
|
|
950
979
|
}
|
|
951
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
952
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
980
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AdminGuard, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
981
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AdminGuard, providedIn: 'root' });
|
|
953
982
|
}
|
|
954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AdminGuard, decorators: [{
|
|
955
984
|
type: Injectable,
|
|
956
985
|
args: [{
|
|
957
986
|
providedIn: 'root'
|
|
958
987
|
}]
|
|
959
|
-
}], ctorParameters:
|
|
988
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i3.Router }] });
|
|
960
989
|
|
|
961
990
|
class ProfilsGuard {
|
|
962
991
|
authService;
|
|
@@ -982,15 +1011,15 @@ class ProfilsGuard {
|
|
|
982
1011
|
return false;
|
|
983
1012
|
}));
|
|
984
1013
|
}
|
|
985
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
986
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1014
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ProfilsGuard, deps: [{ token: AuthService }, { token: i2.ConfigService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1015
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ProfilsGuard, providedIn: 'root' });
|
|
987
1016
|
}
|
|
988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ProfilsGuard, decorators: [{
|
|
989
1018
|
type: Injectable,
|
|
990
1019
|
args: [{
|
|
991
1020
|
providedIn: 'root'
|
|
992
1021
|
}]
|
|
993
|
-
}], ctorParameters:
|
|
1022
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i2.ConfigService }, { type: i3.Router }] });
|
|
994
1023
|
|
|
995
1024
|
class AuthInterceptor {
|
|
996
1025
|
config;
|
|
@@ -1135,15 +1164,15 @@ class AuthInterceptor {
|
|
|
1135
1164
|
});
|
|
1136
1165
|
}
|
|
1137
1166
|
}
|
|
1138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1139
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthInterceptor, deps: [{ token: i2.ConfigService }, { token: TokenService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1168
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthInterceptor, providedIn: 'root' });
|
|
1140
1169
|
}
|
|
1141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthInterceptor, decorators: [{
|
|
1142
1171
|
type: Injectable,
|
|
1143
1172
|
args: [{
|
|
1144
1173
|
providedIn: 'root'
|
|
1145
1174
|
}]
|
|
1146
|
-
}], ctorParameters:
|
|
1175
|
+
}], ctorParameters: () => [{ type: i2.ConfigService }, { type: TokenService }, { type: i1.HttpClient }] });
|
|
1147
1176
|
|
|
1148
1177
|
function MSALConfigFactory(config) {
|
|
1149
1178
|
const msConf = config.getConfig('auth.microsoft');
|
|
@@ -1233,15 +1262,16 @@ class ProtectedDirective {
|
|
|
1233
1262
|
el.nativeElement.parentNode.removeChild(el.nativeElement);
|
|
1234
1263
|
}
|
|
1235
1264
|
}
|
|
1236
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1237
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1265
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ProtectedDirective, deps: [{ token: AuthService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1266
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.1", type: ProtectedDirective, isStandalone: true, selector: "[igoProtected]", ngImport: i0 });
|
|
1238
1267
|
}
|
|
1239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ProtectedDirective, decorators: [{
|
|
1240
1269
|
type: Directive,
|
|
1241
1270
|
args: [{
|
|
1242
|
-
selector: '[igoProtected]'
|
|
1271
|
+
selector: '[igoProtected]',
|
|
1272
|
+
standalone: true
|
|
1243
1273
|
}]
|
|
1244
|
-
}], ctorParameters:
|
|
1274
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: i0.ElementRef }] });
|
|
1245
1275
|
|
|
1246
1276
|
class AuthStorageService extends BaseStorage {
|
|
1247
1277
|
http;
|
|
@@ -1322,15 +1352,15 @@ class AuthStorageService extends BaseStorage {
|
|
|
1322
1352
|
});
|
|
1323
1353
|
}
|
|
1324
1354
|
}
|
|
1325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1326
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1355
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthStorageService, deps: [{ token: i2.ConfigService }, { token: i1.HttpClient }, { token: AuthService }, { token: TokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1356
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthStorageService, providedIn: 'root' });
|
|
1327
1357
|
}
|
|
1328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthStorageService, decorators: [{
|
|
1329
1359
|
type: Injectable,
|
|
1330
1360
|
args: [{
|
|
1331
1361
|
providedIn: 'root'
|
|
1332
1362
|
}]
|
|
1333
|
-
}], ctorParameters:
|
|
1363
|
+
}], ctorParameters: () => [{ type: i2.ConfigService }, { type: i1.HttpClient }, { type: AuthService }, { type: TokenService }] });
|
|
1334
1364
|
|
|
1335
1365
|
class AuthMonitoringService {
|
|
1336
1366
|
configService;
|
|
@@ -1364,20 +1394,20 @@ class AuthMonitoringService {
|
|
|
1364
1394
|
break;
|
|
1365
1395
|
}
|
|
1366
1396
|
}
|
|
1367
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1368
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1397
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMonitoringService, deps: [{ token: i2.ConfigService }, { token: MONITORING_OPTIONS, optional: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1398
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMonitoringService, providedIn: 'root' });
|
|
1369
1399
|
}
|
|
1370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuthMonitoringService, decorators: [{
|
|
1371
1401
|
type: Injectable,
|
|
1372
1402
|
args: [{
|
|
1373
1403
|
providedIn: 'root'
|
|
1374
1404
|
}]
|
|
1375
|
-
}], ctorParameters:
|
|
1405
|
+
}], ctorParameters: () => [{ type: i2.ConfigService }, { type: undefined, decorators: [{
|
|
1376
1406
|
type: Optional
|
|
1377
1407
|
}, {
|
|
1378
1408
|
type: Inject,
|
|
1379
1409
|
args: [MONITORING_OPTIONS]
|
|
1380
|
-
}] }, { type: i0.Injector }]
|
|
1410
|
+
}] }, { type: i0.Injector }] });
|
|
1381
1411
|
|
|
1382
1412
|
function provideAuthUserMonitoring(options) {
|
|
1383
1413
|
if (!options) {
|
|
@@ -1399,24 +1429,6 @@ function provideAuthUserMonitoring(options) {
|
|
|
1399
1429
|
];
|
|
1400
1430
|
}
|
|
1401
1431
|
|
|
1402
|
-
const routes = [
|
|
1403
|
-
{ path: 'login', component: AuthFormComponent },
|
|
1404
|
-
{ path: 'logout', component: AuthFormComponent }
|
|
1405
|
-
];
|
|
1406
|
-
class AuthRoutingModule {
|
|
1407
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1408
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingModule, imports: [i3.RouterModule], exports: [RouterModule] });
|
|
1409
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
|
|
1410
|
-
}
|
|
1411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingModule, decorators: [{
|
|
1412
|
-
type: NgModule,
|
|
1413
|
-
args: [{
|
|
1414
|
-
imports: [RouterModule.forChild(routes)],
|
|
1415
|
-
exports: [RouterModule],
|
|
1416
|
-
providers: []
|
|
1417
|
-
}]
|
|
1418
|
-
}] });
|
|
1419
|
-
|
|
1420
1432
|
class IgoAuthModule {
|
|
1421
1433
|
static forRoot() {
|
|
1422
1434
|
return {
|
|
@@ -1436,31 +1448,38 @@ class IgoAuthModule {
|
|
|
1436
1448
|
]
|
|
1437
1449
|
};
|
|
1438
1450
|
}
|
|
1439
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1440
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1441
|
-
AuthGoogleComponent,
|
|
1442
|
-
AuthInternComponent,
|
|
1443
|
-
AuthFacebookComponent,
|
|
1444
|
-
AuthMicrosoftComponent,
|
|
1445
|
-
AuthMicrosoftb2cComponent,
|
|
1446
|
-
ProtectedDirective], imports: [CommonModule,
|
|
1451
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1452
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoAuthModule, imports: [CommonModule,
|
|
1447
1453
|
ReactiveFormsModule,
|
|
1448
1454
|
MatFormFieldModule,
|
|
1449
1455
|
MatInputModule,
|
|
1450
1456
|
MatIconModule,
|
|
1457
|
+
MatProgressSpinnerModule,
|
|
1451
1458
|
MatButtonModule,
|
|
1452
1459
|
IgoLanguageModule,
|
|
1453
|
-
MsalModule
|
|
1454
|
-
|
|
1460
|
+
MsalModule,
|
|
1461
|
+
AuthFormComponent,
|
|
1462
|
+
AuthGoogleComponent,
|
|
1463
|
+
AuthInternComponent,
|
|
1464
|
+
AuthFacebookComponent,
|
|
1465
|
+
AuthMicrosoftComponent,
|
|
1466
|
+
AuthMicrosoftb2cComponent,
|
|
1467
|
+
ProtectedDirective], exports: [AuthFormComponent, ProtectedDirective] });
|
|
1468
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoAuthModule, imports: [CommonModule,
|
|
1455
1469
|
ReactiveFormsModule,
|
|
1456
1470
|
MatFormFieldModule,
|
|
1457
1471
|
MatInputModule,
|
|
1458
1472
|
MatIconModule,
|
|
1473
|
+
MatProgressSpinnerModule,
|
|
1459
1474
|
MatButtonModule,
|
|
1460
1475
|
IgoLanguageModule,
|
|
1461
|
-
MsalModule
|
|
1476
|
+
MsalModule,
|
|
1477
|
+
AuthFormComponent,
|
|
1478
|
+
AuthInternComponent,
|
|
1479
|
+
AuthMicrosoftComponent,
|
|
1480
|
+
AuthMicrosoftb2cComponent] });
|
|
1462
1481
|
}
|
|
1463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoAuthModule, decorators: [{
|
|
1464
1483
|
type: NgModule,
|
|
1465
1484
|
args: [{
|
|
1466
1485
|
imports: [
|
|
@@ -1469,11 +1488,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1469
1488
|
MatFormFieldModule,
|
|
1470
1489
|
MatInputModule,
|
|
1471
1490
|
MatIconModule,
|
|
1491
|
+
MatProgressSpinnerModule,
|
|
1472
1492
|
MatButtonModule,
|
|
1473
1493
|
IgoLanguageModule,
|
|
1474
|
-
MsalModule
|
|
1475
|
-
],
|
|
1476
|
-
declarations: [
|
|
1494
|
+
MsalModule,
|
|
1477
1495
|
AuthFormComponent,
|
|
1478
1496
|
AuthGoogleComponent,
|
|
1479
1497
|
AuthInternComponent,
|
|
@@ -1494,5 +1512,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1494
1512
|
* Generated bundle index. Do not edit.
|
|
1495
1513
|
*/
|
|
1496
1514
|
|
|
1497
|
-
export { AdminGuard, AuthFormComponent, AuthGuard, AuthInterceptor, AuthMonitoringService,
|
|
1515
|
+
export { AdminGuard, AuthFormComponent, AuthGuard, AuthInterceptor, AuthMonitoringService, AuthService, AuthStorageService, IgoAuthModule, LoggedGuard, MSALAngularConfigFactory, MSALAngularConfigFactoryb2c, MSALConfigFactory, MSALConfigFactoryb2c, ProfilsGuard, ProtectedDirective, TokenService, provideAuthMicrosoft, provideAuthUserMonitoring };
|
|
1498
1516
|
//# sourceMappingURL=igo2-auth.mjs.map
|