@equinor/fusion-framework-module-msal 7.2.1 → 7.2.2
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/CHANGELOG.md +6 -0
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/module.d.ts +3 -20
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/module.ts +5 -18
- package/src/version.ts +1 -1
package/dist/types/module.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type Module, type IModulesConfigurator } from '@equinor/fusion-framework-module';
|
|
1
|
+
import { type Module, type IModulesConfigurator, type ModuleConfigType } from '@equinor/fusion-framework-module';
|
|
2
2
|
import { MsalConfigurator } from './MsalConfigurator';
|
|
3
3
|
import { type IMsalProvider } from './MsalProvider';
|
|
4
|
-
import type { MsalClientConfig } from './MsalClient';
|
|
5
4
|
/**
|
|
6
5
|
* MSAL authentication module configuration.
|
|
7
6
|
*
|
|
@@ -28,23 +27,7 @@ export declare const module: MsalModule;
|
|
|
28
27
|
* This function receives a builder object with methods to configure the MSAL client
|
|
29
28
|
* and authentication requirements.
|
|
30
29
|
*/
|
|
31
|
-
export type AuthConfigFn = (
|
|
32
|
-
/**
|
|
33
|
-
* Set MSAL client configuration
|
|
34
|
-
* @param config - Client configuration with tenant ID, client ID, etc.
|
|
35
|
-
*/
|
|
36
|
-
setClientConfig: (config: MsalClientConfig) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Set whether authentication is required for the application
|
|
39
|
-
* @param requiresAuth - If true, app will attempt automatic login on initialization
|
|
40
|
-
*/
|
|
41
|
-
setRequiresAuth: (requiresAuth: boolean) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Set a default login hint used for silent SSO and pre-filled usernames
|
|
44
|
-
* @param loginHint - Preferred username/email to use for login hint
|
|
45
|
-
*/
|
|
46
|
-
setLoginHint: (loginHint: string) => void;
|
|
47
|
-
}) => void;
|
|
30
|
+
export type AuthConfigFn<TRef = unknown> = (configurator: ModuleConfigType<MsalModule>, ref?: TRef) => void;
|
|
48
31
|
/**
|
|
49
32
|
* Enables MSAL authentication module in the framework.
|
|
50
33
|
*
|
|
@@ -81,7 +64,7 @@ export declare const enableMSAL: (configurator: IModulesConfigurator<any, any>,
|
|
|
81
64
|
*/
|
|
82
65
|
export declare const configureMsal: (configure: AuthConfigFn) => {
|
|
83
66
|
module: MsalModule;
|
|
84
|
-
configure: AuthConfigFn
|
|
67
|
+
configure: AuthConfigFn<unknown>;
|
|
85
68
|
};
|
|
86
69
|
declare module '@equinor/fusion-framework-module' {
|
|
87
70
|
interface Modules {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "7.2.
|
|
1
|
+
export declare const version = "7.2.2";
|
package/package.json
CHANGED
package/src/module.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type Module,
|
|
3
3
|
type IModulesConfigurator,
|
|
4
|
+
type ModuleConfigType,
|
|
4
5
|
SemanticVersion,
|
|
5
6
|
} from '@equinor/fusion-framework-module';
|
|
6
7
|
|
|
7
8
|
import { MsalConfigurator } from './MsalConfigurator';
|
|
8
9
|
import { MsalProvider, type IMsalProvider } from './MsalProvider';
|
|
9
|
-
import type { MsalClientConfig } from './MsalClient';
|
|
10
10
|
|
|
11
11
|
import { version } from './version';
|
|
12
12
|
|
|
@@ -80,23 +80,10 @@ export const module: MsalModule = {
|
|
|
80
80
|
* This function receives a builder object with methods to configure the MSAL client
|
|
81
81
|
* and authentication requirements.
|
|
82
82
|
*/
|
|
83
|
-
export type AuthConfigFn = (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
*/
|
|
88
|
-
setClientConfig: (config: MsalClientConfig) => void;
|
|
89
|
-
/**
|
|
90
|
-
* Set whether authentication is required for the application
|
|
91
|
-
* @param requiresAuth - If true, app will attempt automatic login on initialization
|
|
92
|
-
*/
|
|
93
|
-
setRequiresAuth: (requiresAuth: boolean) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Set a default login hint used for silent SSO and pre-filled usernames
|
|
96
|
-
* @param loginHint - Preferred username/email to use for login hint
|
|
97
|
-
*/
|
|
98
|
-
setLoginHint: (loginHint: string) => void;
|
|
99
|
-
}) => void;
|
|
83
|
+
export type AuthConfigFn<TRef = unknown> = (
|
|
84
|
+
configurator: ModuleConfigType<MsalModule>,
|
|
85
|
+
ref?: TRef,
|
|
86
|
+
) => void;
|
|
100
87
|
|
|
101
88
|
/**
|
|
102
89
|
* Enables MSAL authentication module in the framework.
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '7.2.
|
|
2
|
+
export const version = '7.2.2';
|