@igo2/auth 1.14.3 → 1.14.4
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/esm2020/igo2-auth.mjs +4 -4
- package/esm2020/lib/auth-form/auth-facebook.component.mjs +60 -60
- package/esm2020/lib/auth-form/auth-form.component.mjs +276 -276
- package/esm2020/lib/auth-form/auth-google.component.mjs +98 -98
- package/esm2020/lib/auth-form/auth-intern.component.mjs +118 -118
- package/esm2020/lib/auth-form/auth-microsoft.component.mjs +93 -93
- package/esm2020/lib/auth-form/auth-microsoftb2c.component.mjs +92 -92
- package/esm2020/lib/auth-form/index.mjs +4 -4
- package/esm2020/lib/auth-routing.module.mjs +23 -23
- package/esm2020/lib/auth.module.mjs +90 -90
- package/esm2020/lib/shared/admin.guard.mjs +32 -32
- package/esm2020/lib/shared/auth-microsoft.provider.mjs +83 -83
- package/esm2020/lib/shared/auth-msalBroadcastServiceb2c.service.mjs +37 -37
- package/esm2020/lib/shared/auth-msalServiceb2c.service..mjs +79 -79
- package/esm2020/lib/shared/auth.guard.mjs +31 -31
- package/esm2020/lib/shared/auth.interceptor.mjs +154 -154
- package/esm2020/lib/shared/auth.interface.mjs +1 -1
- package/esm2020/lib/shared/auth.service.mjs +159 -159
- package/esm2020/lib/shared/logged.guard.mjs +31 -31
- package/esm2020/lib/shared/profils.guard.mjs +36 -36
- package/esm2020/lib/shared/protected.directive.mjs +18 -18
- package/esm2020/lib/shared/storage.interface.mjs +1 -1
- package/esm2020/lib/shared/storage.service.mjs +90 -90
- package/esm2020/lib/shared/token.service.mjs +46 -46
- package/esm2020/public_api.mjs +18 -18
- package/fesm2015/igo2-auth.mjs +1579 -1579
- package/fesm2020/igo2-auth.mjs +1477 -1477
- package/index.d.ts +5 -5
- package/lib/auth-form/auth-facebook.component.d.ts +18 -18
- package/lib/auth-form/auth-form.component.d.ts +42 -42
- package/lib/auth-form/auth-google.component.d.ts +24 -24
- package/lib/auth-form/auth-intern.component.d.ts +21 -21
- package/lib/auth-form/auth-microsoft.component.d.ts +23 -23
- package/lib/auth-form/auth-microsoftb2c.component.d.ts +23 -23
- package/lib/auth-form/index.d.ts +4 -4
- package/lib/auth-routing.module.d.ts +7 -7
- package/lib/auth.module.d.ts +23 -23
- package/lib/shared/admin.guard.d.ts +13 -13
- package/lib/shared/auth-microsoft.provider.d.ts +30 -30
- package/lib/shared/auth-msalBroadcastServiceb2c.service.d.ts +15 -15
- package/lib/shared/auth-msalServiceb2c.service..d.ts +33 -33
- package/lib/shared/auth.guard.d.ts +13 -13
- package/lib/shared/auth.interceptor.d.ts +24 -24
- package/lib/shared/auth.interface.d.ts +99 -99
- package/lib/shared/auth.service.d.ts +44 -44
- package/lib/shared/logged.guard.d.ts +13 -13
- package/lib/shared/profils.guard.d.ts +13 -13
- package/lib/shared/protected.directive.d.ts +8 -8
- package/lib/shared/storage.interface.d.ts +4 -4
- package/lib/shared/storage.service.d.ts +18 -18
- package/lib/shared/token.service.d.ts +15 -15
- package/package.json +3 -3
- package/public_api.d.ts +15 -15
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@igo2/auth" />
|
|
5
|
-
export * from './public_api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@igo2/auth" />
|
|
5
|
+
export * from './public_api';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ConfigService } from '@igo2/core';
|
|
3
|
-
import { AuthService } from '../shared/auth.service';
|
|
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, false>;
|
|
18
|
-
}
|
|
1
|
+
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '@igo2/core';
|
|
3
|
+
import { AuthService } from '../shared/auth.service';
|
|
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, false>;
|
|
18
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { ConfigService } from '@igo2/core';
|
|
4
|
-
import { AuthOptions } from '../shared/auth.interface';
|
|
5
|
-
import { AuthService } from '../shared/auth.service';
|
|
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;
|
|
29
|
-
user: any;
|
|
30
|
-
visible: boolean;
|
|
31
|
-
private isLoginRoute;
|
|
32
|
-
private isLogoutRoute;
|
|
33
|
-
constructor(auth: AuthService, config: ConfigService, router: Router);
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
onLogin(): void;
|
|
36
|
-
logout(): void;
|
|
37
|
-
home(): void;
|
|
38
|
-
private getName;
|
|
39
|
-
private analyzeRoute;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthFormComponent, [null, null, { optional: true; }]>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthFormComponent, "igo-auth-form", never, { "backgroundDisable": "backgroundDisable"; "hasAlreadyConnectedDiv": "hasAlreadyConnectedDiv"; "hasLogoutDiv": "hasLogoutDiv"; "showAlreadyConnectedDiv": "showAlreadyConnectedDiv"; "showLogoutDiv": "showLogoutDiv"; }, { "login": "login"; }, never, never, false>;
|
|
42
|
-
}
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { ConfigService } from '@igo2/core';
|
|
4
|
+
import { AuthOptions } from '../shared/auth.interface';
|
|
5
|
+
import { AuthService } from '../shared/auth.service';
|
|
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;
|
|
29
|
+
user: any;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
private isLoginRoute;
|
|
32
|
+
private isLogoutRoute;
|
|
33
|
+
constructor(auth: AuthService, config: ConfigService, router: Router);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
onLogin(): void;
|
|
36
|
+
logout(): void;
|
|
37
|
+
home(): void;
|
|
38
|
+
private getName;
|
|
39
|
+
private analyzeRoute;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthFormComponent, [null, null, { optional: true; }]>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthFormComponent, "igo-auth-form", never, { "backgroundDisable": "backgroundDisable"; "hasAlreadyConnectedDiv": "hasAlreadyConnectedDiv"; "hasLogoutDiv": "hasLogoutDiv"; "showAlreadyConnectedDiv": "showAlreadyConnectedDiv"; "showLogoutDiv": "showLogoutDiv"; }, { "login": "login"; }, never, never, false>;
|
|
42
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ConfigService, LanguageService } from '@igo2/core';
|
|
3
|
-
import { AuthService } from '../shared/auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthGoogleComponent {
|
|
6
|
-
private authService;
|
|
7
|
-
private config;
|
|
8
|
-
private languageService;
|
|
9
|
-
private appRef;
|
|
10
|
-
private options;
|
|
11
|
-
login: EventEmitter<boolean>;
|
|
12
|
-
constructor(authService: AuthService, config: ConfigService, languageService: LanguageService, appRef: ApplicationRef);
|
|
13
|
-
handleSignInClick(): void;
|
|
14
|
-
handleSignOutClick(): void;
|
|
15
|
-
private handleClientLoad;
|
|
16
|
-
private initClient;
|
|
17
|
-
private updateSigninStatus;
|
|
18
|
-
private updateTextButton;
|
|
19
|
-
private loginGoogle;
|
|
20
|
-
private loadSDKGoogle;
|
|
21
|
-
private loadPlatform;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGoogleComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthGoogleComponent, "igo-auth-google", never, {}, { "login": "login"; }, never, never, false>;
|
|
24
|
-
}
|
|
1
|
+
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ConfigService, LanguageService } from '@igo2/core';
|
|
3
|
+
import { AuthService } from '../shared/auth.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthGoogleComponent {
|
|
6
|
+
private authService;
|
|
7
|
+
private config;
|
|
8
|
+
private languageService;
|
|
9
|
+
private appRef;
|
|
10
|
+
private options;
|
|
11
|
+
login: EventEmitter<boolean>;
|
|
12
|
+
constructor(authService: AuthService, config: ConfigService, languageService: LanguageService, appRef: ApplicationRef);
|
|
13
|
+
handleSignInClick(): void;
|
|
14
|
+
handleSignOutClick(): void;
|
|
15
|
+
private handleClientLoad;
|
|
16
|
+
private initClient;
|
|
17
|
+
private updateSigninStatus;
|
|
18
|
+
private updateTextButton;
|
|
19
|
+
private loginGoogle;
|
|
20
|
+
private loadSDKGoogle;
|
|
21
|
+
private loadPlatform;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGoogleComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthGoogleComponent, "igo-auth-google", never, {}, { "login": "login"; }, never, never, false>;
|
|
24
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
3
|
-
import { AuthService } from '../shared/auth.service';
|
|
4
|
-
import { LanguageService } from '@igo2/core';
|
|
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": "allowAnonymous"; }, { "login": "login"; }, never, never, false>;
|
|
21
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { AuthService } from '../shared/auth.service';
|
|
4
|
+
import { LanguageService } from '@igo2/core';
|
|
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": "allowAnonymous"; }, { "login": "login"; }, never, never, false>;
|
|
21
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { MsalService } from '@azure/msal-angular';
|
|
3
|
-
import { ConfigService } from '@igo2/core';
|
|
4
|
-
import { MSPMsalGuardConfiguration } from '../shared/auth.interface';
|
|
5
|
-
import { AuthService } from '../shared/auth.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AuthMicrosoftComponent {
|
|
8
|
-
private authService;
|
|
9
|
-
private config;
|
|
10
|
-
private appRef;
|
|
11
|
-
private msalService;
|
|
12
|
-
private msalGuardConfig;
|
|
13
|
-
private options;
|
|
14
|
-
private readonly _destroying$;
|
|
15
|
-
login: EventEmitter<boolean>;
|
|
16
|
-
private broadcastService;
|
|
17
|
-
constructor(authService: AuthService, config: ConfigService, appRef: ApplicationRef, msalService: MsalService, msalGuardConfig: MSPMsalGuardConfiguration[]);
|
|
18
|
-
loginMicrosoft(): void;
|
|
19
|
-
private checkAccount;
|
|
20
|
-
private getConf;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftComponent, "igo-auth-microsoft", never, {}, { "login": "login"; }, never, never, false>;
|
|
23
|
-
}
|
|
1
|
+
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { MsalService } from '@azure/msal-angular';
|
|
3
|
+
import { ConfigService } from '@igo2/core';
|
|
4
|
+
import { MSPMsalGuardConfiguration } from '../shared/auth.interface';
|
|
5
|
+
import { AuthService } from '../shared/auth.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AuthMicrosoftComponent {
|
|
8
|
+
private authService;
|
|
9
|
+
private config;
|
|
10
|
+
private appRef;
|
|
11
|
+
private msalService;
|
|
12
|
+
private msalGuardConfig;
|
|
13
|
+
private options;
|
|
14
|
+
private readonly _destroying$;
|
|
15
|
+
login: EventEmitter<boolean>;
|
|
16
|
+
private broadcastService;
|
|
17
|
+
constructor(authService: AuthService, config: ConfigService, appRef: ApplicationRef, msalService: MsalService, msalGuardConfig: MSPMsalGuardConfiguration[]);
|
|
18
|
+
loginMicrosoft(): void;
|
|
19
|
+
private checkAccount;
|
|
20
|
+
private getConf;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftComponent, "igo-auth-microsoft", never, {}, { "login": "login"; }, never, never, false>;
|
|
23
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ConfigService } from '@igo2/core';
|
|
3
|
-
import { MSPMsalGuardConfiguration } from '../shared/auth.interface';
|
|
4
|
-
import { AuthService } from '../shared/auth.service';
|
|
5
|
-
import { MsalServiceb2c } from '../shared/auth-msalServiceb2c.service.';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AuthMicrosoftb2cComponent {
|
|
8
|
-
private authService;
|
|
9
|
-
private config;
|
|
10
|
-
private appRef;
|
|
11
|
-
private msalService;
|
|
12
|
-
private msalGuardConfig;
|
|
13
|
-
private options;
|
|
14
|
-
private readonly _destroying$;
|
|
15
|
-
login: EventEmitter<boolean>;
|
|
16
|
-
private broadcastService;
|
|
17
|
-
constructor(authService: AuthService, config: ConfigService, appRef: ApplicationRef, msalService: MsalServiceb2c, msalGuardConfig: MSPMsalGuardConfiguration[]);
|
|
18
|
-
loginMicrosoftb2c(): void;
|
|
19
|
-
private checkAccount;
|
|
20
|
-
private getConf;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftb2cComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftb2cComponent, "igo-auth-microsoftb2c", never, {}, { "login": "login"; }, never, never, false>;
|
|
23
|
-
}
|
|
1
|
+
import { ApplicationRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ConfigService } from '@igo2/core';
|
|
3
|
+
import { MSPMsalGuardConfiguration } from '../shared/auth.interface';
|
|
4
|
+
import { AuthService } from '../shared/auth.service';
|
|
5
|
+
import { MsalServiceb2c } from '../shared/auth-msalServiceb2c.service.';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AuthMicrosoftb2cComponent {
|
|
8
|
+
private authService;
|
|
9
|
+
private config;
|
|
10
|
+
private appRef;
|
|
11
|
+
private msalService;
|
|
12
|
+
private msalGuardConfig;
|
|
13
|
+
private options;
|
|
14
|
+
private readonly _destroying$;
|
|
15
|
+
login: EventEmitter<boolean>;
|
|
16
|
+
private broadcastService;
|
|
17
|
+
constructor(authService: AuthService, config: ConfigService, appRef: ApplicationRef, msalService: MsalServiceb2c, msalGuardConfig: MSPMsalGuardConfiguration[]);
|
|
18
|
+
loginMicrosoftb2c(): void;
|
|
19
|
+
private checkAccount;
|
|
20
|
+
private getConf;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftb2cComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthMicrosoftb2cComponent, "igo-auth-microsoftb2c", never, {}, { "login": "login"; }, never, never, false>;
|
|
23
|
+
}
|
package/lib/auth-form/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './auth-form.component';
|
|
2
|
-
export * from './auth-intern.component';
|
|
3
|
-
export * from './auth-facebook.component';
|
|
4
|
-
export * from './auth-google.component';
|
|
1
|
+
export * from './auth-form.component';
|
|
2
|
+
export * from './auth-intern.component';
|
|
3
|
+
export * from './auth-facebook.component';
|
|
4
|
+
export * from './auth-google.component';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/router";
|
|
3
|
-
export declare class AuthRoutingModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AuthRoutingModule>;
|
|
7
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class AuthRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AuthRoutingModule>;
|
|
7
|
+
}
|
package/lib/auth.module.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./auth-form/auth-form.component";
|
|
4
|
-
import * as i2 from "./auth-form/auth-google.component";
|
|
5
|
-
import * as i3 from "./auth-form/auth-intern.component";
|
|
6
|
-
import * as i4 from "./auth-form/auth-facebook.component";
|
|
7
|
-
import * as i5 from "./auth-form/auth-microsoft.component";
|
|
8
|
-
import * as i6 from "./auth-form/auth-microsoftb2c.component";
|
|
9
|
-
import * as i7 from "./shared/protected.directive";
|
|
10
|
-
import * as i8 from "@angular/common";
|
|
11
|
-
import * as i9 from "@angular/forms";
|
|
12
|
-
import * as i10 from "@angular/material/form-field";
|
|
13
|
-
import * as i11 from "@angular/material/input";
|
|
14
|
-
import * as i12 from "@angular/material/icon";
|
|
15
|
-
import * as i13 from "@angular/material/button";
|
|
16
|
-
import * as i14 from "@igo2/core";
|
|
17
|
-
import * as i15 from "@azure/msal-angular";
|
|
18
|
-
export declare class IgoAuthModule {
|
|
19
|
-
static forRoot(): ModuleWithProviders<IgoAuthModule>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoAuthModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAuthModule, [typeof i1.AuthFormComponent, typeof i2.AuthGoogleComponent, typeof i3.AuthInternComponent, typeof i4.AuthFacebookComponent, typeof i5.AuthMicrosoftComponent, typeof i6.AuthMicrosoftb2cComponent, typeof i7.ProtectedDirective], [typeof i8.CommonModule, typeof i9.ReactiveFormsModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.IgoLanguageModule, typeof i15.MsalModule], [typeof i1.AuthFormComponent, typeof i7.ProtectedDirective]>;
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoAuthModule>;
|
|
23
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./auth-form/auth-form.component";
|
|
4
|
+
import * as i2 from "./auth-form/auth-google.component";
|
|
5
|
+
import * as i3 from "./auth-form/auth-intern.component";
|
|
6
|
+
import * as i4 from "./auth-form/auth-facebook.component";
|
|
7
|
+
import * as i5 from "./auth-form/auth-microsoft.component";
|
|
8
|
+
import * as i6 from "./auth-form/auth-microsoftb2c.component";
|
|
9
|
+
import * as i7 from "./shared/protected.directive";
|
|
10
|
+
import * as i8 from "@angular/common";
|
|
11
|
+
import * as i9 from "@angular/forms";
|
|
12
|
+
import * as i10 from "@angular/material/form-field";
|
|
13
|
+
import * as i11 from "@angular/material/input";
|
|
14
|
+
import * as i12 from "@angular/material/icon";
|
|
15
|
+
import * as i13 from "@angular/material/button";
|
|
16
|
+
import * as i14 from "@igo2/core";
|
|
17
|
+
import * as i15 from "@azure/msal-angular";
|
|
18
|
+
export declare class IgoAuthModule {
|
|
19
|
+
static forRoot(): ModuleWithProviders<IgoAuthModule>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoAuthModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAuthModule, [typeof i1.AuthFormComponent, typeof i2.AuthGoogleComponent, typeof i3.AuthInternComponent, typeof i4.AuthFacebookComponent, typeof i5.AuthMicrosoftComponent, typeof i6.AuthMicrosoftb2cComponent, typeof i7.ProtectedDirective], [typeof i8.CommonModule, typeof i9.ReactiveFormsModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.IgoLanguageModule, typeof i15.MsalModule], [typeof i1.AuthFormComponent, typeof i7.ProtectedDirective]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoAuthModule>;
|
|
23
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
-
import { ConfigService } from '@igo2/core';
|
|
3
|
-
import { AuthService } from './auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AdminGuard implements CanActivate {
|
|
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
|
+
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { ConfigService } from '@igo2/core';
|
|
3
|
+
import { AuthService } from './auth.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AdminGuard implements CanActivate {
|
|
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,30 +1,30 @@
|
|
|
1
|
-
import { MsalService } from '@azure/msal-angular';
|
|
2
|
-
import { PublicClientApplication } from '@azure/msal-browser';
|
|
3
|
-
import { ConfigService } from '@igo2/core';
|
|
4
|
-
import { MSPMsalGuardConfiguration } from './auth.interface';
|
|
5
|
-
import { MsalServiceb2c } from './auth-msalServiceb2c.service.';
|
|
6
|
-
export declare function MSALConfigFactory(config: ConfigService): PublicClientApplication;
|
|
7
|
-
export declare function MSALConfigFactoryb2c(config: ConfigService): PublicClientApplication;
|
|
8
|
-
export declare function MSALAngularConfigFactory(config: ConfigService): MSPMsalGuardConfiguration;
|
|
9
|
-
export declare function MSALAngularConfigFactoryb2c(config: ConfigService): MSPMsalGuardConfiguration;
|
|
10
|
-
export declare function provideAuthMicrosoft(type?: string): (typeof MsalServiceb2c | {
|
|
11
|
-
provide: import("@angular/core").InjectionToken<string>;
|
|
12
|
-
useFactory: typeof MSALConfigFactoryb2c;
|
|
13
|
-
deps: (typeof ConfigService)[];
|
|
14
|
-
multi?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
provide: import("@angular/core").InjectionToken<string>;
|
|
17
|
-
useFactory: typeof MSALAngularConfigFactoryb2c;
|
|
18
|
-
deps: (typeof ConfigService)[];
|
|
19
|
-
multi: boolean;
|
|
20
|
-
})[] | (typeof MsalService | {
|
|
21
|
-
provide: import("@angular/core").InjectionToken<string>;
|
|
22
|
-
useFactory: typeof MSALConfigFactory;
|
|
23
|
-
deps: (typeof ConfigService)[];
|
|
24
|
-
multi?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
provide: import("@angular/core").InjectionToken<string>;
|
|
27
|
-
useFactory: typeof MSALAngularConfigFactory;
|
|
28
|
-
deps: (typeof ConfigService)[];
|
|
29
|
-
multi: boolean;
|
|
30
|
-
})[];
|
|
1
|
+
import { MsalService } from '@azure/msal-angular';
|
|
2
|
+
import { PublicClientApplication } from '@azure/msal-browser';
|
|
3
|
+
import { ConfigService } from '@igo2/core';
|
|
4
|
+
import { MSPMsalGuardConfiguration } from './auth.interface';
|
|
5
|
+
import { MsalServiceb2c } from './auth-msalServiceb2c.service.';
|
|
6
|
+
export declare function MSALConfigFactory(config: ConfigService): PublicClientApplication;
|
|
7
|
+
export declare function MSALConfigFactoryb2c(config: ConfigService): PublicClientApplication;
|
|
8
|
+
export declare function MSALAngularConfigFactory(config: ConfigService): MSPMsalGuardConfiguration;
|
|
9
|
+
export declare function MSALAngularConfigFactoryb2c(config: ConfigService): MSPMsalGuardConfiguration;
|
|
10
|
+
export declare function provideAuthMicrosoft(type?: string): (typeof MsalServiceb2c | {
|
|
11
|
+
provide: import("@angular/core").InjectionToken<string>;
|
|
12
|
+
useFactory: typeof MSALConfigFactoryb2c;
|
|
13
|
+
deps: (typeof ConfigService)[];
|
|
14
|
+
multi?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
provide: import("@angular/core").InjectionToken<string>;
|
|
17
|
+
useFactory: typeof MSALAngularConfigFactoryb2c;
|
|
18
|
+
deps: (typeof ConfigService)[];
|
|
19
|
+
multi: boolean;
|
|
20
|
+
})[] | (typeof MsalService | {
|
|
21
|
+
provide: import("@angular/core").InjectionToken<string>;
|
|
22
|
+
useFactory: typeof MSALConfigFactory;
|
|
23
|
+
deps: (typeof ConfigService)[];
|
|
24
|
+
multi?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
provide: import("@angular/core").InjectionToken<string>;
|
|
27
|
+
useFactory: typeof MSALAngularConfigFactory;
|
|
28
|
+
deps: (typeof ConfigService)[];
|
|
29
|
+
multi: boolean;
|
|
30
|
+
})[];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { EventMessage, IPublicClientApplication, InteractionStatus } from '@azure/msal-browser';
|
|
3
|
-
import { MsalServiceb2c } from './auth-msalServiceb2c.service.';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MsalBroadcastServiceb2c {
|
|
6
|
-
private msalInstance;
|
|
7
|
-
private authService;
|
|
8
|
-
private _msalSubject;
|
|
9
|
-
msalSubject$: Observable<EventMessage>;
|
|
10
|
-
private _inProgress;
|
|
11
|
-
inProgress$: Observable<InteractionStatus>;
|
|
12
|
-
constructor(msalInstance: IPublicClientApplication, authService: MsalServiceb2c);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalBroadcastServiceb2c, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MsalBroadcastServiceb2c>;
|
|
15
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { EventMessage, IPublicClientApplication, InteractionStatus } from '@azure/msal-browser';
|
|
3
|
+
import { MsalServiceb2c } from './auth-msalServiceb2c.service.';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MsalBroadcastServiceb2c {
|
|
6
|
+
private msalInstance;
|
|
7
|
+
private authService;
|
|
8
|
+
private _msalSubject;
|
|
9
|
+
msalSubject$: Observable<EventMessage>;
|
|
10
|
+
private _inProgress;
|
|
11
|
+
inProgress$: Observable<InteractionStatus>;
|
|
12
|
+
constructor(msalInstance: IPublicClientApplication, authService: MsalServiceb2c);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalBroadcastServiceb2c, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MsalBroadcastServiceb2c>;
|
|
15
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Location } from '@angular/common';
|
|
2
|
-
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from '@azure/msal-browser';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { IMsalService } from '@azure/msal-angular';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MsalServiceb2c implements IMsalService {
|
|
7
|
-
instance: IPublicClientApplication;
|
|
8
|
-
private location;
|
|
9
|
-
private redirectHash;
|
|
10
|
-
private logger;
|
|
11
|
-
private name;
|
|
12
|
-
private version;
|
|
13
|
-
constructor(instance: IPublicClientApplication, location: Location);
|
|
14
|
-
initialize(): Observable<void>;
|
|
15
|
-
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
16
|
-
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
17
|
-
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
18
|
-
handleRedirectObservable(hash?: string): Observable<AuthenticationResult>;
|
|
19
|
-
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
20
|
-
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
21
|
-
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
22
|
-
logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
23
|
-
logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
|
|
24
|
-
ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
|
|
25
|
-
/**
|
|
26
|
-
* Gets logger for msal-angular.
|
|
27
|
-
* If no logger set, returns logger instance created with same options as msal-browser
|
|
28
|
-
*/
|
|
29
|
-
getLogger(): Logger;
|
|
30
|
-
setLogger(logger: Logger): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalServiceb2c, never>;
|
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MsalServiceb2c>;
|
|
33
|
-
}
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from '@azure/msal-browser';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { IMsalService } from '@azure/msal-angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MsalServiceb2c implements IMsalService {
|
|
7
|
+
instance: IPublicClientApplication;
|
|
8
|
+
private location;
|
|
9
|
+
private redirectHash;
|
|
10
|
+
private logger;
|
|
11
|
+
private name;
|
|
12
|
+
private version;
|
|
13
|
+
constructor(instance: IPublicClientApplication, location: Location);
|
|
14
|
+
initialize(): Observable<void>;
|
|
15
|
+
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
16
|
+
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
17
|
+
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
18
|
+
handleRedirectObservable(hash?: string): Observable<AuthenticationResult>;
|
|
19
|
+
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
20
|
+
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
21
|
+
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
22
|
+
logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
23
|
+
logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
|
|
24
|
+
ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets logger for msal-angular.
|
|
27
|
+
* If no logger set, returns logger instance created with same options as msal-browser
|
|
28
|
+
*/
|
|
29
|
+
getLogger(): Logger;
|
|
30
|
+
setLogger(logger: Logger): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalServiceb2c, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MsalServiceb2c>;
|
|
33
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
-
import { ConfigService } from '@igo2/core';
|
|
3
|
-
import { AuthService } from './auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthGuard implements CanActivate {
|
|
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
|
+
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { ConfigService } from '@igo2/core';
|
|
3
|
+
import { AuthService } from './auth.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AuthGuard implements CanActivate {
|
|
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
|
+
}
|