@annalib/anna-cognito-lib 2.3.4 → 2.3.6
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/README.md +54 -38
- package/esm2022/lib/components/anna-login/anna-login.component.mjs +24 -13
- package/esm2022/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.mjs +8 -12
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +29 -19
- package/esm2022/lib/components/password-matching/password-matching.component.mjs +25 -23
- package/esm2022/lib/components/powered-by-logo-template/powered-by-logo-template.component.mjs +4 -5
- package/esm2022/lib/components/set-new-password/set-new-password.component.mjs +21 -14
- package/esm2022/lib/components/sso-login/sso-login.component.mjs +9 -3
- package/esm2022/lib/components/surewaves-year-logo/surewaves-year-logo.component.mjs +3 -3
- package/esm2022/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.mjs +28 -16
- package/esm2022/lib/components/version-and-term-policy/version-and-term-policy.component.mjs +4 -5
- package/esm2022/lib/config/acl-service.token.mjs +1 -1
- package/esm2022/lib/config/auth-service.token.mjs +1 -1
- package/esm2022/lib/config/config-service.token.mjs +1 -1
- package/esm2022/lib/config/sso-login-service.token.mjs +1 -1
- package/esm2022/lib/constants/loginConstant.mjs +48 -48
- package/esm2022/lib/directives/spinner-button/index.mjs +2 -2
- package/esm2022/lib/directives/spinner-button/spinner-button.directive.mjs +11 -11
- package/esm2022/lib/models/auth.model.mjs +1 -1
- package/esm2022/lib/services/acl.service.mjs +4 -4
- package/esm2022/lib/services/auth.service.mjs +33 -28
- package/esm2022/lib/services/config.service.mjs +4 -4
- package/esm2022/lib/services/sso-login.service.mjs +4 -4
- package/esm2022/public-api.mjs +5 -5
- package/fesm2022/annalib-anna-cognito-lib.mjs +179 -132
- package/fesm2022/annalib-anna-cognito-lib.mjs.map +1 -1
- package/lib/components/anna-login/anna-login.component.d.ts +3 -3
- package/lib/components/cognito-and-sso-login-container/cognito-and-sso-login-container.component.d.ts +2 -2
- package/lib/components/forgot-password/forgot-password.component.d.ts +7 -7
- package/lib/components/password-matching/password-matching.component.d.ts +4 -4
- package/lib/components/set-new-password/set-new-password.component.d.ts +4 -4
- package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts +4 -4
- package/lib/config/auth-service.token.d.ts +1 -1
- package/lib/config/sso-login-service.token.d.ts +1 -1
- package/lib/directives/spinner-button/index.d.ts +1 -1
- package/lib/directives/spinner-button/spinner-button.directive.d.ts +1 -1
- package/lib/services/auth.service.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormBuilder, FormGroup } from
|
|
2
|
-
import { LoginConstant } from
|
|
1
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
|
+
import { LoginConstant } from '../../constants/loginConstant';
|
|
3
3
|
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
4
4
|
import { IConfigService } from '../../config/config-service.token';
|
|
5
|
-
import { ISSOLoginService } from
|
|
5
|
+
import { ISSOLoginService } from '../../config/sso-login-service.token';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AnnaLoginComponent {
|
|
8
8
|
authService: AnnaLibAuthService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { ISSOLoginService } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ISSOLoginService } from '../../config/sso-login-service.token';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CognitoAndSSOLoginContainerComponent implements OnInit {
|
|
5
5
|
consumingProjectSSOLoginService: ISSOLoginService;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { FormBuilder, FormGroup } from
|
|
3
|
-
import { ToastrService } from
|
|
4
|
-
import { AnnaLibAuthService } from
|
|
5
|
-
import { LoginConstant } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ToastrService } from 'ngx-toastr';
|
|
4
|
+
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
5
|
+
import { LoginConstant } from '../../constants/loginConstant';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
7
|
import { IConfigService } from '../../config/config-service.token';
|
|
8
|
-
import { IAuthService } from
|
|
9
|
-
import { ISSOLoginService } from
|
|
8
|
+
import { IAuthService } from '../../config/auth-service.token';
|
|
9
|
+
import { ISSOLoginService } from '../../config/sso-login-service.token';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
type passwordType = {
|
|
12
12
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import { OnInit } from
|
|
3
|
-
import { FormBuilder, FormGroup, ValidationErrors } from
|
|
4
|
-
import { LoginConstant } from
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { FormBuilder, FormGroup, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { LoginConstant } from '../../constants/loginConstant';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PasswordMatchingComponent implements OnInit {
|
|
7
7
|
private fb;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { AnnaLibAuthService } from
|
|
4
|
-
import { LoginConstant } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
4
|
+
import { LoginConstant } from '../../constants/loginConstant';
|
|
5
5
|
import { IConfigService } from '../../config/config-service.token';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
type passwordType = {
|
package/lib/components/verify-and-set-new-password/verify-and-set-new-password.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { FormBuilder, FormGroup } from
|
|
3
|
-
import { Router } from
|
|
4
|
-
import { LoginConstant } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { LoginConstant } from '../../constants/loginConstant';
|
|
5
5
|
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
6
6
|
import { IConfigService } from '../../config/config-service.token';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +8,7 @@ export interface IAuthService {
|
|
|
8
8
|
userName: any;
|
|
9
9
|
accessToken: string;
|
|
10
10
|
IdToken: any;
|
|
11
|
-
defaultLoginPageUrl:
|
|
11
|
+
defaultLoginPageUrl: 'co-pilot-login' | 'login';
|
|
12
12
|
onSuccessfulAuthenticatingUser(loggedInViaSso: boolean): void;
|
|
13
13
|
getAllCognitoTokenAndGroups(tokens: AuthTokens): void;
|
|
14
14
|
isUsernameAvailable(username: string): Observable<any>;
|
|
@@ -2,7 +2,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
/** Token to inject the auth service */
|
|
3
3
|
export declare const SSO_LOGIN_SERVICE_TOKEN: InjectionToken<ISSOLoginService>;
|
|
4
4
|
export interface ISSOLoginService {
|
|
5
|
-
defaultLoginPageUrl:
|
|
5
|
+
defaultLoginPageUrl: 'co-pilot-login' | 'login';
|
|
6
6
|
isSsoIntegrated: boolean;
|
|
7
7
|
loggedInViaSso: boolean;
|
|
8
8
|
isUserInvitedAndCanAccessANNA: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './spinner-button.directive';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from
|
|
1
|
+
import { ElementRef, Renderer2, SimpleChanges, OnChanges, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpinnerButtonDirective implements OnInit, OnChanges {
|
|
4
4
|
private el;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { AuthTokens, SignInInput } from
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { AuthTokens, SignInInput } from 'aws-amplify/auth';
|
|
4
4
|
import { ToastrService } from 'ngx-toastr';
|
|
5
5
|
import { IAuthService } from '../config/auth-service.token';
|
|
6
6
|
import { AnnaLibAclService } from './acl.service';
|