@idea-ionic/auth 8.0.1 → 8.0.3
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/src/auth.service.mjs +31 -28
- package/esm2022/src/confirmPassword.page.mjs +38 -38
- package/esm2022/src/forgotPassword.page.mjs +24 -22
- package/esm2022/src/mfaChallenge.page.mjs +25 -24
- package/esm2022/src/newPassword.page.mjs +32 -32
- package/esm2022/src/passwordPolicy.component.mjs +47 -32
- package/esm2022/src/resendLink.page.mjs +27 -26
- package/esm2022/src/setupMFA/setupMFAButton.component.mjs +14 -14
- package/esm2022/src/setupMFA/setupMFAModal.component.mjs +30 -29
- package/esm2022/src/setupMFA.page.mjs +3 -3
- package/esm2022/src/signIn.page.mjs +37 -38
- package/esm2022/src/signUp.page.mjs +38 -37
- package/fesm2022/idea-ionic-auth.mjs +285 -265
- package/fesm2022/idea-ionic-auth.mjs.map +1 -1
- package/package.json +7 -7
- package/src/auth.service.d.ts +5 -5
- package/src/confirmPassword.page.d.ts +9 -12
- package/src/forgotPassword.page.d.ts +4 -8
- package/src/mfaChallenge.page.d.ts +5 -9
- package/src/newPassword.page.d.ts +8 -10
- package/src/passwordPolicy.component.d.ts +1 -1
- package/src/resendLink.page.d.ts +5 -9
- package/src/setupMFA/setupMFAButton.component.d.ts +2 -5
- package/src/setupMFA/setupMFAModal.component.d.ts +4 -8
- package/src/signIn.page.d.ts +7 -10
- package/src/signUp.page.d.ts +8 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idea-ionic/auth",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "IDEA Ionic auth flow",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"author": "ITER IDEA <info@iter-idea.com> (https://iter-idea.com)",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"url": "https://github.com/iter-idea/IDEA-Ionic8-extra/issues"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "^18.1.
|
|
22
|
-
"@angular/core": "^18.1.
|
|
23
|
-
"@angular/forms": "^18.1.
|
|
24
|
-
"@angular/platform-browser": "^18.1.
|
|
25
|
-
"@angular/platform-browser-dynamic": "^18.1.
|
|
26
|
-
"@angular/router": "^18.1.
|
|
21
|
+
"@angular/common": "^18.1.0",
|
|
22
|
+
"@angular/core": "^18.1.0",
|
|
23
|
+
"@angular/forms": "^18.1.0",
|
|
24
|
+
"@angular/platform-browser": "^18.1.0",
|
|
25
|
+
"@angular/platform-browser-dynamic": "^18.1.0",
|
|
26
|
+
"@angular/router": "^18.1.0",
|
|
27
27
|
"@capacitor/browser": "^6.0.1",
|
|
28
28
|
"@capacitor/core": "6.1.1",
|
|
29
29
|
"@idea-ionic/common": "^8.x.x",
|
package/src/auth.service.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Note: in IDEA's Cognito users pools, the email is an alias of the username.
|
|
8
8
|
*/
|
|
9
9
|
export declare class IDEAAuthService {
|
|
10
|
-
|
|
11
|
-
protected
|
|
12
|
-
protected
|
|
10
|
+
protected _env: any;
|
|
11
|
+
protected _translate: IDEATranslationsService;
|
|
12
|
+
protected _storage: IDEAStorageService;
|
|
13
13
|
/**
|
|
14
14
|
* The name of the Cognito's user attribute which contains the key of the last device to login in this project.
|
|
15
15
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class IDEAAuthService {
|
|
|
20
20
|
private newAccountJustRegistered;
|
|
21
21
|
private mfaProjectName;
|
|
22
22
|
private passwordPolicy;
|
|
23
|
-
constructor(
|
|
23
|
+
constructor();
|
|
24
24
|
/**
|
|
25
25
|
* Prepare the necessary structure to get authorized in Cognito.
|
|
26
26
|
*/
|
|
@@ -50,7 +50,7 @@ export declare class IDEAAuthService {
|
|
|
50
50
|
*/
|
|
51
51
|
register(username: string, password: string, attributes?: any): Promise<CognitoUser>;
|
|
52
52
|
/**
|
|
53
|
-
* In case
|
|
53
|
+
* In case a new account has just been registered, return the username.
|
|
54
54
|
*/
|
|
55
55
|
getNewAccountJustRegistered(): string;
|
|
56
56
|
/**
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
5
2
|
import { IDEAAuthService } from './auth.service';
|
|
6
3
|
import * as i0 from "@angular/core";
|
|
7
4
|
export declare class IDEAConfirmPasswordPage implements OnInit {
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
protected _env: any;
|
|
6
|
+
private _nav;
|
|
7
|
+
private _route;
|
|
8
|
+
private _popover;
|
|
9
|
+
private _message;
|
|
10
|
+
private _loading;
|
|
11
|
+
private _translate;
|
|
12
|
+
_auth: IDEAAuthService;
|
|
16
13
|
email: string;
|
|
17
14
|
newPassword: string;
|
|
18
15
|
code: string;
|
|
19
16
|
passwordPolicy: any;
|
|
20
17
|
errorMsg: string;
|
|
21
|
-
constructor(
|
|
18
|
+
constructor();
|
|
22
19
|
ngOnInit(): void;
|
|
23
20
|
confirmPassword(): Promise<void>;
|
|
24
21
|
openPasswordPolicy(event: Event): Promise<void>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
2
|
export declare class IDEAForgotPasswordPage {
|
|
6
|
-
private navCtrl;
|
|
7
|
-
private message;
|
|
8
|
-
private loading;
|
|
9
|
-
private auth;
|
|
10
3
|
email: string;
|
|
11
|
-
|
|
4
|
+
private _nav;
|
|
5
|
+
private _message;
|
|
6
|
+
private _loading;
|
|
7
|
+
private _auth;
|
|
12
8
|
forgotPassword(): Promise<void>;
|
|
13
9
|
goToConfirmPassword(): void;
|
|
14
10
|
goToAuth(): void;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
|
-
import { IDEAAuthService } from './auth.service';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
3
|
export declare class IDEAMFAChallengePage implements OnInit {
|
|
7
|
-
private navCtrl;
|
|
8
|
-
private message;
|
|
9
|
-
private loading;
|
|
10
|
-
private auth;
|
|
11
|
-
private t;
|
|
12
4
|
otpCode: string;
|
|
13
5
|
errorMsg: string;
|
|
14
|
-
|
|
6
|
+
private _nav;
|
|
7
|
+
private _message;
|
|
8
|
+
private _loading;
|
|
9
|
+
private _auth;
|
|
10
|
+
private _translate;
|
|
15
11
|
ngOnInit(): void;
|
|
16
12
|
completeMFAChallenge(): Promise<void>;
|
|
17
13
|
goToAuth(): void;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
2
|
import { IDEAAuthService } from './auth.service';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class IDEANewPasswordPage implements OnInit {
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
protected _env: any;
|
|
6
|
+
private _nav;
|
|
7
|
+
private _popover;
|
|
8
|
+
private _message;
|
|
9
|
+
private _loading;
|
|
10
|
+
private _translate;
|
|
11
|
+
_auth: IDEAAuthService;
|
|
14
12
|
newPassword: string;
|
|
15
13
|
passwordPolicy: any;
|
|
16
14
|
errorMsg: string;
|
|
17
|
-
constructor(
|
|
15
|
+
constructor();
|
|
18
16
|
ngOnInit(): void;
|
|
19
17
|
confirmNewPassword(): Promise<void>;
|
|
20
18
|
openPasswordPolicy(event: Event): Promise<void>;
|
package/src/resendLink.page.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
2
|
export declare class IDEAResendLinkPage {
|
|
6
|
-
private navCtrl;
|
|
7
|
-
private message;
|
|
8
|
-
private loading;
|
|
9
|
-
private auth;
|
|
10
|
-
private t;
|
|
11
3
|
email: string;
|
|
12
4
|
errorMsg: string;
|
|
13
|
-
|
|
5
|
+
private _nav;
|
|
6
|
+
private _message;
|
|
7
|
+
private _loading;
|
|
8
|
+
private _auth;
|
|
9
|
+
private _translate;
|
|
14
10
|
resendConfirmationLink(): Promise<void>;
|
|
15
11
|
goToAuth(): void;
|
|
16
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAResendLinkPage, never>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ModalController } from '@ionic/angular';
|
|
3
|
-
import { IDEAAuthService } from '../auth.service';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export declare class IDEASetupMFAButtonComponent implements OnInit {
|
|
6
|
-
private modalCtrl;
|
|
7
|
-
private auth;
|
|
8
4
|
/**
|
|
9
5
|
* The color of the button.
|
|
10
6
|
*/
|
|
@@ -18,7 +14,8 @@ export declare class IDEASetupMFAButtonComponent implements OnInit {
|
|
|
18
14
|
*/
|
|
19
15
|
change: EventEmitter<boolean>;
|
|
20
16
|
isMFAEnabled: boolean;
|
|
21
|
-
|
|
17
|
+
private _modal;
|
|
18
|
+
private _auth;
|
|
22
19
|
ngOnInit(): Promise<void>;
|
|
23
20
|
openMFAModal(): Promise<void>;
|
|
24
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAButtonComponent, never>;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ModalController } from '@ionic/angular';
|
|
3
|
-
import { IDEAAuthService } from '../auth.service';
|
|
4
|
-
import { IDEALoadingService, IDEAMessageService } from '@idea-ionic/common';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
3
|
export declare class IDEASetupMFAModalComponent implements OnInit {
|
|
7
|
-
private modalCtrl;
|
|
8
|
-
private loading;
|
|
9
|
-
private message;
|
|
10
|
-
private auth;
|
|
11
4
|
otpCode: string;
|
|
12
5
|
isMFAEnabled: boolean;
|
|
13
|
-
|
|
6
|
+
private _modal;
|
|
7
|
+
private _loading;
|
|
8
|
+
private _message;
|
|
9
|
+
private _auth;
|
|
14
10
|
ngOnInit(): Promise<void>;
|
|
15
11
|
private generateQRCodeCanvasByURL;
|
|
16
12
|
setMFA(enable: boolean): Promise<void>;
|
package/src/signIn.page.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
2
|
export declare class IDEASignInPage {
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
|
|
3
|
+
protected _env: any;
|
|
4
|
+
private _nav;
|
|
5
|
+
private _message;
|
|
6
|
+
private _loading;
|
|
7
|
+
private _translate;
|
|
8
|
+
private _auth;
|
|
12
9
|
title: string;
|
|
13
10
|
registrationPossible: boolean;
|
|
14
11
|
hasIntroPage: boolean;
|
|
@@ -19,7 +16,7 @@ export declare class IDEASignInPage {
|
|
|
19
16
|
newAccountRegistered: boolean;
|
|
20
17
|
errorMsg: string;
|
|
21
18
|
darkMode: boolean;
|
|
22
|
-
constructor(
|
|
19
|
+
constructor();
|
|
23
20
|
ionViewDidEnter(): void;
|
|
24
21
|
login(): Promise<void>;
|
|
25
22
|
goToIntro(): void;
|
package/src/signUp.page.d.ts
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
2
|
import { IDEAAuthService } from './auth.service';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class IDEASignUpPage implements OnInit {
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
protected _env: any;
|
|
6
|
+
private _nav;
|
|
7
|
+
private _popover;
|
|
8
|
+
private _message;
|
|
9
|
+
private _loading;
|
|
10
|
+
private _translate;
|
|
11
|
+
_auth: IDEAAuthService;
|
|
14
12
|
email: string;
|
|
15
13
|
password: string;
|
|
16
14
|
agreementsCheck: boolean;
|
|
17
15
|
passwordPolicy: any;
|
|
18
16
|
errorMsg: string;
|
|
19
|
-
constructor(
|
|
17
|
+
constructor();
|
|
20
18
|
ngOnInit(): void;
|
|
21
19
|
register(): Promise<void>;
|
|
22
20
|
translationExists(key: string): boolean;
|