@equinor/fusion-framework-module-msal 6.0.3 → 6.0.5
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 +34 -0
- package/dist/esm/MsalProvider.js +1 -1
- package/dist/esm/MsalProvider.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/MsalProvider.ts +7 -1
- package/src/version.ts +1 -1
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.
|
|
1
|
+
export declare const version = "6.0.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-module-msal",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Microsoft Authentication Library (MSAL) integration module for Fusion Framework",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"semver": "^7.5.4",
|
|
44
44
|
"typescript": "^5.8.2",
|
|
45
45
|
"zod": "^4.1.8",
|
|
46
|
-
"@equinor/fusion-framework-module
|
|
47
|
-
"@equinor/fusion-framework-module": "^
|
|
46
|
+
"@equinor/fusion-framework-module": "^5.0.5",
|
|
47
|
+
"@equinor/fusion-framework-module-telemetry": "^4.6.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@types/semver": "^7.5.0",
|
|
51
51
|
"semver": "^7.5.4",
|
|
52
52
|
"typescript": "^5.8.2",
|
|
53
53
|
"zod": "^4.1.8",
|
|
54
|
-
"@equinor/fusion-framework-module
|
|
55
|
-
"@equinor/fusion-framework-module": "^
|
|
54
|
+
"@equinor/fusion-framework-module": "^5.0.5",
|
|
55
|
+
"@equinor/fusion-framework-module-telemetry": "^4.6.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@equinor/fusion-framework-module-telemetry": {
|
package/src/MsalProvider.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { MsalConfig } from './MsalConfigurator';
|
|
|
13
13
|
import type { AcquireTokenOptionsLegacy, IMsalProvider } from './MsalProvider.interface';
|
|
14
14
|
import { createProxyProvider } from './create-proxy-provider';
|
|
15
15
|
import type {
|
|
16
|
+
AcquireTokenOptions,
|
|
16
17
|
AcquireTokenResult,
|
|
17
18
|
IMsalClient,
|
|
18
19
|
LoginOptions,
|
|
@@ -245,7 +246,12 @@ export class MsalProvider extends BaseModuleProvider<MsalConfig> implements IMsa
|
|
|
245
246
|
* ```
|
|
246
247
|
*/
|
|
247
248
|
async acquireToken(options: AcquireTokenOptionsLegacy): Promise<AcquireTokenResult> {
|
|
248
|
-
const {
|
|
249
|
+
const {
|
|
250
|
+
behavior = 'redirect',
|
|
251
|
+
silent = true,
|
|
252
|
+
request = {} as AcquireTokenOptions['request'],
|
|
253
|
+
} = options;
|
|
254
|
+
|
|
249
255
|
const account = request.account ?? this.account ?? undefined;
|
|
250
256
|
// Extract scopes from either new format (request.scopes) or legacy format (scopes)
|
|
251
257
|
const scopes = options.request?.scopes ?? options?.scopes ?? [];
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '6.0.
|
|
2
|
+
export const version = '6.0.5';
|