@equinor/fusion-framework-module-msal-node 0.1.1-next.3 → 0.1.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 +4 -23
- package/dist/esm/AuthConfigurator.js +2 -7
- package/dist/esm/AuthConfigurator.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/AuthConfigurator.ts +3 -7
- package/src/version.ts +1 -1
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
1
|
+
export declare const version = "0.1.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-msal-node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Fusion Framework module for secure Azure AD authentication in Node.js using MSAL. Supports interactive, silent, and token-only authentication modes with encrypted token storage.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@azure/msal-node": "^3.5.1",
|
|
36
36
|
"@azure/msal-node-extensions": "^1.5.11",
|
|
37
37
|
"open": "^10.1.1",
|
|
38
|
-
"@equinor/fusion-framework-module": "^4.4.
|
|
38
|
+
"@equinor/fusion-framework-module": "^4.4.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^5.8.2"
|
package/src/AuthConfigurator.ts
CHANGED
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
type ModulesInstance,
|
|
6
6
|
} from '@equinor/fusion-framework-module';
|
|
7
7
|
|
|
8
|
+
import { createAuthClient } from './create-auth-client';
|
|
9
|
+
|
|
8
10
|
import type { MsalNodeModule } from './module.js';
|
|
9
11
|
import type { AuthConfig } from './AuthConfigurator.interface.js';
|
|
10
12
|
|
|
@@ -35,13 +37,7 @@ export class AuthConfigurator extends BaseConfigBuilder<AuthConfig> {
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
setClientConfig(tenantId: string, clientId: string): void {
|
|
38
|
-
this._set('client',
|
|
39
|
-
// Dynamically import the createAuthClient function since the client uses `libsecret``
|
|
40
|
-
// which is not default installed in all environments.
|
|
41
|
-
// This avoids installing `libsecret` in environments where it is not needed, like CI/CD pipelines.
|
|
42
|
-
const { createAuthClient } = await import('./create-auth-client.js');
|
|
43
|
-
return createAuthClient(tenantId, clientId);
|
|
44
|
-
});
|
|
40
|
+
this._set('client', () => createAuthClient(tenantId, clientId));
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
setServerPort(port: number) {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '0.1.
|
|
2
|
+
export const version = '0.1.2';
|