@osovitny/anatoly 3.16.35 → 3.16.37
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/iam/b2c/b2c.mjs +5 -8
- package/esm2022/lib/iam/b2c/consts.mjs +3 -3
- package/esm2022/lib/iam/configs.mjs +2 -2
- package/esm2022/lib/iam/services/auth.service.mjs +114 -25
- package/esm2022/lib/iam/storage.mjs +4 -1
- package/esm2022/lib/iam/utils.mjs +11 -3
- package/fesm2022/osovitny-anatoly.mjs +246 -151
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/iam/b2c/b2c.d.ts +0 -1
- package/lib/iam/b2c/consts.d.ts +1 -1
- package/lib/iam/iam-pages.routes.d.ts +1 -1
- package/lib/iam/services/auth.service.d.ts +4 -2
- package/lib/iam/storage.d.ts +1 -1
- package/lib/iam/utils.d.ts +1 -0
- package/package.json +1 -1
package/lib/iam/b2c/b2c.d.ts
CHANGED
package/lib/iam/b2c/consts.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import { SignInPage } from "./pages/signin.page";
|
|
|
3
3
|
import { SignOutPage } from "./pages/signout.page";
|
|
4
4
|
import { SignUpPage } from "./pages/signup.page";
|
|
5
5
|
export declare const IAMRouterModule: import("@angular/core").ModuleWithProviders<RouterModule>;
|
|
6
|
-
export declare const PAGES: (typeof
|
|
6
|
+
export declare const PAGES: (typeof SignInPage | typeof SignOutPage | typeof SignUpPage)[];
|
|
@@ -3,6 +3,7 @@ import { OnDestroy } from '@angular/core';
|
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { MsalBroadcastService, MsalGuardConfiguration, MsalService } from '@azure/msal-angular';
|
|
6
|
+
import { PopupRequest, RedirectRequest } from '@azure/msal-browser';
|
|
6
7
|
import { ApiServiceBase } from '../../data/base/api.service';
|
|
7
8
|
import { AppContextService } from '../../core/services/appcontext.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
@@ -27,8 +28,9 @@ export declare class AuthService extends ApiServiceBase implements OnDestroy {
|
|
|
27
28
|
getUserEmail(): any;
|
|
28
29
|
getUserName(): any;
|
|
29
30
|
getAccessToken(requestUrl?: string): Observable<string>;
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
forceReauthenticate(account?: any): void;
|
|
32
|
+
login(userFlowRequest?: RedirectRequest | PopupRequest, popup?: boolean): void;
|
|
33
|
+
logout(popup?: boolean): void;
|
|
32
34
|
isUserAuthenticated(): boolean;
|
|
33
35
|
isUserSignedIn(): boolean;
|
|
34
36
|
isUserAdmin(): boolean;
|
package/lib/iam/storage.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const MSALStorageKeys: {
|
|
|
2
2
|
redirectTo: string;
|
|
3
3
|
};
|
|
4
4
|
export declare class MSALStorage {
|
|
5
|
-
static saveRedirectState(redirectTo:
|
|
5
|
+
static saveRedirectState(redirectTo: string, calledBy: string): void;
|
|
6
6
|
static getRedirectState(calledBy: string): string;
|
|
7
7
|
static clearRedirectState(calledBy: string): void;
|
|
8
8
|
}
|
package/lib/iam/utils.d.ts
CHANGED