@equinor/fusion-framework-module-msal 11.0.0-next.1 → 11.0.1

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.
Files changed (61) hide show
  1. package/dist/esm/version.js +1 -1
  2. package/dist/esm/version.js.map +1 -1
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/dist/types/version.d.ts +1 -1
  5. package/package.json +8 -5
  6. package/CHANGELOG.md +0 -1277
  7. package/docs/api-reference.md +0 -85
  8. package/docs/auth-code-flow.md +0 -86
  9. package/docs/migration-v2-to-v4.md +0 -115
  10. package/docs/testing.md +0 -191
  11. package/docs/troubleshooting.md +0 -17
  12. package/docs/version-management.md +0 -67
  13. package/src/MsalClient.interface.ts +0 -139
  14. package/src/MsalClient.ts +0 -326
  15. package/src/MsalConfigurator.ts +0 -486
  16. package/src/MsalProvider.interface.ts +0 -179
  17. package/src/MsalProvider.ts +0 -776
  18. package/src/MsalProxyProvider.interface.ts +0 -72
  19. package/src/__tests__/MsalConfigurator.test.ts +0 -222
  20. package/src/__tests__/MsalProvider.test.ts +0 -74
  21. package/src/__tests__/create-proxy-provider.test.ts +0 -77
  22. package/src/__tests__/mock/create-mock-user-from-token.test.ts +0 -46
  23. package/src/__tests__/mock/msal-mock.test.ts +0 -613
  24. package/src/__tests__/versioning/resolve-version.test.ts +0 -161
  25. package/src/create-client-log-callback.ts +0 -102
  26. package/src/create-proxy-provider.ts +0 -97
  27. package/src/index.ts +0 -48
  28. package/src/mock/MsalMockClient.ts +0 -618
  29. package/src/mock/MsalMockConfigurator.ts +0 -305
  30. package/src/mock/create-mock-token.ts +0 -92
  31. package/src/mock/create-mock-user-from-token.ts +0 -46
  32. package/src/mock/create-msal-mock-client.ts +0 -25
  33. package/src/mock/decode-jwt-segment.ts +0 -22
  34. package/src/mock/index.ts +0 -30
  35. package/src/mock/module.ts +0 -54
  36. package/src/module.ts +0 -142
  37. package/src/msal-config-schema.ts +0 -81
  38. package/src/static.ts +0 -38
  39. package/src/telemetry-config-schema.ts +0 -25
  40. package/src/types.ts +0 -16
  41. package/src/util/compare-origin.ts +0 -18
  42. package/src/util/normalize-uri.ts +0 -24
  43. package/src/util/redirect.ts +0 -19
  44. package/src/v2/IAuthClient.interface.ts +0 -114
  45. package/src/v2/Logger.ts +0 -204
  46. package/src/v2/MsalProvider.interface.ts +0 -102
  47. package/src/v2/create-proxy-client.ts +0 -195
  48. package/src/v2/create-proxy-provider.ts +0 -177
  49. package/src/v2/map-account-info.ts +0 -23
  50. package/src/v2/map-authentication-result.ts +0 -28
  51. package/src/v2/types.ts +0 -674
  52. package/src/v4/create-proxy-provider.ts +0 -75
  53. package/src/v4/index.ts +0 -13
  54. package/src/v4/types.ts +0 -727
  55. package/src/version.ts +0 -2
  56. package/src/versioning/VersionError.ts +0 -64
  57. package/src/versioning/index.ts +0 -29
  58. package/src/versioning/resolve-version.ts +0 -154
  59. package/src/versioning/types.ts +0 -60
  60. package/tsconfig.json +0 -18
  61. package/vitest.config.ts +0 -11
package/CHANGELOG.md DELETED
@@ -1,1277 +0,0 @@
1
- # Change Log
2
-
3
- ## 11.0.0-next.1
4
-
5
- ### Minor Changes
6
-
7
- - 53d5e4c: `MsalMockConfigurator` gains a `setToken(token, skipResolve?)` method. When set, `MsalMockClient`
8
- returns that exact access/id token instead of generating one from the account's claims — useful
9
- when a backend mock validates the token itself (specific claims, audience, or signature) and
10
- needs to see the token it expects rather than a mock-shaped substitute. By default, `setToken`
11
- also signs in the account derived from the token's own claims (`name`, `preferred_username`,
12
- `oid`, `tid`, `scp`) via the new `createMockUserFromToken` helper — pass `skipResolve: true` to
13
- keep a separately declared account while still returning this token.
14
-
15
- ## 11.0.0-next.0
16
-
17
- ### Minor Changes
18
-
19
- - 2836e0b: Move the MSAL configuration schema into `MsalConfig.schema.ts` and add `MsalConfigExtension`, an extension point for variants of this module.
20
-
21
- `MsalConfig` is now the schema's inferred type intersected with `MsalConfigExtension`, an empty interface a variant merges its own configuration into:
22
-
23
- ```typescript
24
- declare module "@equinor/fusion-framework-module-msal" {
25
- interface MsalConfigExtension {
26
- mock?: { account?: MsalMockUser };
27
- }
28
- }
29
- ```
30
-
31
- `BaseConfigBuilder._set` derives its target from `MsalConfig`, so before this a key the type did not know about could only be set by casting past the builder. Making the configurator generic over its configuration cannot solve that: a dot-path union over an unresolved type parameter defers, which takes every existing literal path down with it.
32
-
33
- The schema is unchanged and still describes exactly what reaches `MsalProvider` — it strips anything merged in, so an extension carries a declaration across the builder and stops there. `MsalConfigSchema`, `TelemetryConfigSchema` and their types are re-exported from `MsalConfigurator` as before.
34
-
35
- - 2836e0b: Extract client construction from `MsalConfigurator._processConfig` into overridable seams.
36
-
37
- `_processConfig` now only decides _whether_ a client is needed; `protected _createClient(config, init)` decides _what_ to build, and `protected _createClientConfig(config)` resolves the `MsalClientConfig` it is built from — authority derived from the tenant, cache location, telemetry-backed logging and cache lookup policy included.
38
-
39
- Behaviour is unchanged for consumers: the client is still auto-created from `setClientConfig`, and a client supplied through `setClient` still wins, because `_createClient` is consulted only when no client was set.
40
-
41
- This gives a supported seam for authenticating through something other than Entra ID:
42
-
43
- ```typescript
44
- class MyConfigurator extends MsalConfigurator {
45
- protected override async _createClient(
46
- config: MsalConfig,
47
- ): Promise<IMsalClient> {
48
- // same fully resolved configuration the real client is built from
49
- return new MyOwnMsalClient(this._createClientConfig(config));
50
- }
51
- }
52
- ```
53
-
54
- Overriding it replaces only the client, leaving the builder, the schema validation and `MsalProvider` untouched.
55
-
56
- No client is built when the module is hoisted onto a host application's provider — an app running inside a portal authenticates through the host, so a client built during configuration would be discarded, or worse, shadow the host's signed-in user. `protected _isHoisted(init)` exposes that decision to subclasses.
57
-
58
- Also adds `getClientConfig()`, the counterpart to `setClientConfig`, so a subclass can tell "nothing was declared" apart from "declared, and here it is".
59
-
60
- `_createClientConfig` applies its defaults to a copy of the declared configuration, not the object itself, so a caller reusing or asserting on it never sees it rewritten, and a shared constant can be used as a default without one configurator's client contaminating the next.
61
-
62
- - 2836e0b: Give `MsalMockClient` a real account cache, so its account APIs agree with each other and with MSAL.
63
-
64
- Previously the client held a single nullable account, which made its surface inconsistent: `getAccount(filter)` ignored the filter, `getAllAccounts()` reported an account even after one had only been made active, and signing out merely blanked a field.
65
-
66
- The client now keeps a cache keyed by `homeAccountId` alongside an active account, matching MSAL:
67
-
68
- - `getAccount(filter)` matches on `homeAccountId`, `localAccountId`, `username` and `tenantId`.
69
- - `getAllAccounts()` returns everything cached.
70
- - Signing in adds the account and activates it; signing out removes it, rather than leaving a stale entry behind.
71
- - `setUser` replaces the session, so declaring a second user never leaves two accounts cached.
72
-
73
- `setActiveAccount` deliberately departs from MSAL in one respect: an account that was never issued by a sign-in is accepted and added to the cache. That makes swapping the user between tests a single line, without rebuilding the framework:
74
-
75
- ```typescript
76
- beforeEach(() => {
77
- fusion.modules.auth.client.setActiveAccount(account);
78
- });
79
- ```
80
-
81
- - 2836e0b: Added a `./mock` entry point so applications can run against the auth module without credentials or network access.
82
-
83
- ```ts
84
- import {
85
- enableMsalMock,
86
- createMsalMockClient,
87
- } from "@equinor/fusion-framework-module-msal/mock";
88
-
89
- // default mock user
90
- enableMsalMock(configurator);
91
-
92
- // or a specific one
93
- enableMsalMock(configurator, (builder) => {
94
- builder.setAccount({ name: "Ada Lovelace" });
95
- });
96
- ```
97
-
98
- Only the MSAL **client** is substituted. `MsalMockClient` resolves tokens in-process and takes the same `MsalClientConfig` as the real `MsalClient`, so `setClientConfig` means the same thing whether a test runs against Entra ID or in-process. `MsalMockConfigurator` builds it through the `_createClient` seam, and `msalMockModule` differs from the real module in its `configure` alone — `initialize` is the production one, untouched, so `MsalProvider`, schema validation and the whole start-up path run exactly as they do in production. `IMsalProvider` and `MsalConfigurator` are untouched.
99
-
100
- The same client works with the plain module, without the mock module:
101
-
102
- ```ts
103
- enableMSAL(configurator, (builder) =>
104
- builder.setClient(
105
- createMsalMockClient(
106
- { auth: { clientId: "my-app" } },
107
- { name: "Ada Lovelace" },
108
- ),
109
- ),
110
- );
111
- ```
112
-
113
- Tokens are structurally valid, unsigned JWTs and are identical between runs. They are not cryptographically valid and are rejected by any real service.
114
-
115
- Exports `enableMsalMock`, `msalMockModule`, `MsalMockConfigurator`, `MsalMockClient`, `createMsalMockClient` and `createMockToken`. The entry point has no test-runner dependency.
116
-
117
- - 2836e0b: Add `setAccount` to `MsalMockConfigurator`, so a test declares the signed-in user on the builder instead of baking it into a client.
118
-
119
- ```typescript
120
- enableMsalMock(configurator, (builder) => {
121
- builder.setAccount({ name: "Ada Lovelace", username: "ada@equinor.com" });
122
- });
123
- ```
124
-
125
- It takes an object, `null` when nobody is signed in, or an ordinary `ConfigBuilderCallback` resolving either:
126
-
127
- ```typescript
128
- builder.setAccount(null);
129
- builder.setAccount(async ({ hasModule }) => ({
130
- name: hasModule("app") ? "App User" : "Portal User",
131
- }));
132
- ```
133
-
134
- The callback is the builder's own type rather than a bespoke one, so it is handed the same arguments every other configuration callback receives and is resolved by the same machinery.
135
-
136
- `null` and `{ signedOut: true }` both start without a session, and differ in what a later login resolves to: `null` forgets the identity, `signedOut` keeps it. A declared `null` is a declaration in its own right, so it overrides the default signed-in user — only an absent declaration means the test said nothing.
137
-
138
- `setAccount` writes to `mock.account` on the configuration rather than to a field on the builder, so the user travels the ordinary builder pipeline: a callback is resolved by `_buildConfig` with the same arguments every other configuration callback receives, and the result is on the raw configuration before validation. The schema strips the key, so nothing about a test reaches `MsalProvider` — the branch exists purely to carry the declaration across the builder. `MsalMockConfig` is exported for code that reads it.
139
-
140
- `setAccount` records configuration only — the user is signed in on the client as it is built, so it may be declared at any point before initialization and the last declaration wins. Keeping the user off `MsalClientConfig` is what lets `MsalMockClient` take the same argument the real `MsalClient` takes: a client is configured with _what it talks to_, never with _who is signed in_.
141
-
142
- Because the user is in place before `MsalProvider.initialize()` runs, the provider's own start-up path acts on it. Pairing `{ signedOut: true }` with `setRequiresAuth(true)` therefore exercises the real automatic login, rather than a state assigned after initialization had already finished.
143
-
144
- Because who is signed in is session state rather than client configuration, the user is applied to whichever client the module ends up authenticating through — wherever that client was built. When the module is hoisted onto a host application's provider, no client is built here, so the user is signed in on the _host's_ client instead. Without that, a declaration made in an application's test would silently do nothing precisely when the application is being tested inside a portal. The session is shared, so the host sees the same user, as it does in production; when the host does not authenticate through a mock client the declaration throws rather than failing quietly.
145
-
146
- `setClient` replaces the client, but not the rule: a mock client supplied that way receives the declared user too.
147
-
148
- ### Patch Changes
149
-
150
- - e8aae1f: Internal: publish every package on the `next` pre-release tag so the whole framework can be installed as a coherent set.
151
-
152
- Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
153
-
154
- ```bash
155
- pnpm add @equinor/fusion-framework-react-app@next
156
- ```
157
-
158
- - 2836e0b: Restructure documentation so each README is an entry point rather than a manual.
159
-
160
- Long-form content moved into per-package `docs/` folders, matching the convention already used by `@equinor/fusion-framework-module` and `@equinor/fusion-framework-module-http`. Each README now keeps the elevator pitch, the shortest working example and a documentation table linking to the rest.
161
-
162
- - **msal** — `docs/api-reference.md`, `docs/auth-code-flow.md`, `docs/testing.md`, `docs/version-management.md`, `docs/migration-v2-to-v4.md`, `docs/troubleshooting.md`. The README also gained the top-level heading it was missing.
163
- - **service-discovery** — `docs/configuration.md`, `docs/testing.md`, `docs/session-overrides.md`, `docs/api-reference.md`.
164
- - **framework** — `docs/testing-choosing-a-layer.md`, `docs/testing.md`, `docs/testing-design.md`, `docs/testing-extending.md`, `docs/testing-api.md`.
165
-
166
- Both module READMEs now document their `/mock` entry point, which was previously undocumented, and state that spying on an individual call is the test runner's job rather than something these packages provide.
167
-
168
- - 2836e0b: Remove a stray `console.log` left in `resolveVersion`'s minor-version-mismatch warning path.
169
- - Updated dependencies [e8aae1f]
170
- - Updated dependencies [2836e0b]
171
- - Updated dependencies [2836e0b]
172
- - Updated dependencies [2836e0b]
173
- - Updated dependencies [2836e0b]
174
- - Updated dependencies [2836e0b]
175
- - @equinor/fusion-framework-module@6.1.3-next.0
176
- - @equinor/fusion-framework-module-telemetry@8.0.0-next.0
177
-
178
- ## 10.0.2
179
-
180
- ### Patch Changes
181
-
182
- - 80c3e4a: Internal: resolve `noExplicitAny`/`noConfusingVoidType` Biome warnings in `enableMSAL`'s configurator widening and the `onRedirectNavigate` callback types (v2/v4), plus safely tighten interface method return types (`login`/`acquireToken` in `IAuthClient`, `MsalProvider`) from `| void` to `| undefined`. No public API or behavior change.
183
- - 80c3e4a: Internal: add required fusion-lint intent comments explaining `as unknown as T` casts in the v2 proxy client and provider adapters. No behavior change.
184
- - 80c3e4a: Internal: resolve fusion-lint warnings across the package — added missing TSDoc (`@returns`, `@param`, `@throws`, `@template`) on public APIs, added intent comments above control-flow, `switch`, and RxJS/array chains, and split the v2-compatible `Logger` class out of `v2/types.ts` into `v2/Logger.ts` to satisfy the single-export-per-file rule. No public behavior changes; `Logger` remains available from `@equinor/fusion-framework-module-msal/v2`.
185
-
186
- Two deferred TODOs now reference tracked issues: throwing when `MsalProvider.acquireToken` is called with empty scopes and no default scope (https://github.com/equinor/fusion-framework/issues/5113), and reconsidering the `MsalModule` proxy-provider fallback once all apps migrate to v4 (https://github.com/equinor/fusion-framework/issues/5114).
187
-
188
- ## 10.0.1
189
-
190
- ### Patch Changes
191
-
192
- - 7508555: Updated `@azure/msal-browser` from `5.10.1` to `5.17.1`. Includes multiple minor enhancements and bug fixes across MSAL browser SDK.
193
-
194
- ## 10.0.0
195
-
196
- ### Patch Changes
197
-
198
- - @equinor/fusion-framework-module-telemetry@7.0.0
199
-
200
- ## 9.0.0
201
-
202
- ### Patch Changes
203
-
204
- - @equinor/fusion-framework-module-telemetry@6.0.0
205
-
206
- ## 8.0.5
207
-
208
- ### Patch Changes
209
-
210
- - 730d51a: Fix silent token acquisition hanging ~10–20 s when refresh token is revoked.
211
-
212
- When a refresh token is revoked, MSAL's default cache lookup policy (`Default`) falls back to a hidden iframe (`SilentIframeClient`) after the token endpoint returns `invalid_grant`. The iframe loads the app URL, fails to authenticate (no valid session), and times out — throwing `monitor_window_timeout` before eventually triggering an interactive redirect. This causes the visible "iframe crash + page reload" symptom.
213
-
214
- The configurator now defaults `cacheLookupPolicy` to `CacheLookupPolicy.AccessTokenAndRefreshToken`, which skips the iframe step entirely. A revoked refresh token now immediately throws `InteractionRequiredAuthError`, and the app falls back to interactive login without the delay.
215
-
216
- **Configuration:**
217
-
218
- The policy is fully configurable via `MsalConfigurator.setCacheLookupPolicy`. To restore MSAL's original waterfall (cache → refresh token → iframe):
219
-
220
- ```typescript
221
- import { CacheLookupPolicy } from "@azure/msal-browser";
222
-
223
- configurator.setCacheLookupPolicy(CacheLookupPolicy.Default);
224
- ```
225
-
226
- Per-request `cacheLookupPolicy` on `SilentRequest` still takes precedence over the instance default.
227
-
228
- Fixes: https://github.com/equinor/fusion-core-tasks/issues/1234
229
-
230
- ## 8.0.4
231
-
232
- ### Patch Changes
233
-
234
- - f045ac0: Make `client` field optional in MSAL config schema to prevent `ZodError` validation failures when the MSAL client has not yet been configured during local development.
235
-
236
- Fixes: https://github.com/equinor/fusion/issues/840
237
-
238
- ## 8.0.3
239
-
240
- ### Patch Changes
241
-
242
- - 51e6e50: Internal: bump `@azure/msal-browser` from `5.4.0` to `5.8.0`.
243
-
244
- ## 8.0.2
245
-
246
- ### Patch Changes
247
-
248
- - 02a5859: Internal: Bump `@azure/msal-browser` from 5.4.0 to 5.7.0.
249
-
250
- ## 8.0.1
251
-
252
- ### Patch Changes
253
-
254
- - 244b995: Internal: update resolved `@azure/msal-browser` from 5.4.0 to 5.6.3.
255
-
256
- Includes minor feature additions (support for `supportsNestedAppAuth` in `BrowserUtils`, additional export utilities) and bug fixes (logout flow improvements, token cache consistency). No breaking changes — this is a lockfile-only bump within the existing `^5.0.2` range constraint.
257
-
258
- ## 8.0.0
259
-
260
- ### Major Changes
261
-
262
- - abffa53: Major version bump for Fusion Framework React 19 release.
263
-
264
- All packages are bumped to the next major version as part of the React 19 upgrade. This release drops support for React versions below 18 and includes breaking changes across the framework.
265
-
266
- **Breaking changes:**
267
- - Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
268
- - React Router upgraded from v6 to v7
269
- - Navigation module refactored with new history API
270
- - `renderComponent` and `renderApp` now use `createRoot` API
271
-
272
- **Migration:**
273
- - Update your React version to 18.0.0 or higher before upgrading
274
- - Replace `NavigationProvider.createRouter()` with `@equinor/fusion-framework-react-router`
275
- - See individual package changelogs for package-specific migration steps
276
-
277
- ### Patch Changes
278
-
279
- - abffa53: **Fix:** Skip full authentication flow when running inside MSAL's silent renewal iframe.
280
-
281
- MSAL's `acquireTokenSilent()` opens a hidden iframe that loads the app URL. Previously the app would re-initialize the MSAL provider inside the iframe, attempt `loginRedirect()`, and crash with `BrowserAuthError: block_iframe_reload`. This caused blank pages and console errors during token renewal.
282
-
283
- The provider now detects the iframe context (`window !== window.parent`) early in `initialize()` and only runs `client.initialize()` + `handleRedirectPromise()` — enough for the iframe to process the auth response and post it back to the parent frame, without triggering a redundant login flow.
284
-
285
- - Updated dependencies [abffa53]
286
- - Updated dependencies [abffa53]
287
- - @equinor/fusion-framework-module@6.0.0
288
- - @equinor/fusion-framework-module-telemetry@5.0.0
289
-
290
- ## 7.3.1
291
-
292
- ### Patch Changes
293
-
294
- - [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
295
-
296
- - [#4132](https://github.com/equinor/fusion-framework/pull/4132) [`db8fa81`](https://github.com/equinor/fusion-framework/commit/db8fa8134b77a628b15e06f7f72b50f04ef97458) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: update @azure/msal-browser to 5.4.0 to include upstream security and authentication flow fixes without changing the module API.
297
-
298
- - Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
299
- - @equinor/fusion-framework-module@5.0.6
300
- - @equinor/fusion-framework-module-telemetry@4.6.4
301
-
302
- ## 7.3.0
303
-
304
- ### Minor Changes
305
-
306
- - [#4141](https://github.com/equinor/fusion-framework/pull/4141) [`ec7d2ce`](https://github.com/equinor/fusion-framework/commit/ec7d2ce0ed3f1d447b8cf410d2ef94fb1b557bbb) Thanks [@odinr](https://github.com/odinr)! - Allow resetting backend-issued auth code in `MsalConfigurator` by passing `undefined` to `setAuthCode`.
307
-
308
- `setAuthCode` now trims input and treats empty or whitespace-only values as absent auth code, so no auth-code exchange is attempted during initialization when auth code is cleared or missing.
309
-
310
- Closes #4137
311
-
312
- ## 7.2.2
313
-
314
- ### Patch Changes
315
-
316
- - [`c8e27eb`](https://github.com/equinor/fusion-framework/commit/c8e27eb3a119b4077effe20a10dfb2dfd3dc865e) Thanks [@odinr](https://github.com/odinr)! - Update the `enableMSAL` configuration callback typing (`AuthConfigFn`) to use `ModuleConfigType<MsalModule>` and accept an optional `ref` argument.
317
-
318
- ## 7.2.1
319
-
320
- ### Patch Changes
321
-
322
- - [#4067](https://github.com/equinor/fusion-framework/pull/4067) [`1594ed8`](https://github.com/equinor/fusion-framework/commit/1594ed879579d0db6e42c5052a33174f7bf9346c) Thanks [@odinr](https://github.com/odinr)! - Default missing/empty token request scopes to the app `/.default` scope (when `clientId` is available) and expose `MsalProvider.defaultScopes` for consumers that want the same fallback.
323
-
324
- ```ts
325
- // Reuse the provider's default scope logic
326
- const scopes = provider.defaultScopes;
327
-
328
- // If scopes are omitted/empty, the provider will fall back to `defaultScopes` when possible.
329
- await provider.acquireToken();
330
-
331
- // Explicitly using the same fallback
332
- await provider.acquireToken({ request: { scopes } });
333
- ```
334
-
335
- - [#4067](https://github.com/equinor/fusion-framework/pull/4067) [`1594ed8`](https://github.com/equinor/fusion-framework/commit/1594ed879579d0db6e42c5052a33174f7bf9346c) Thanks [@odinr](https://github.com/odinr)! - Fix `MsalProvider.acquireToken`/`acquireAccessToken` to handle missing options by defaulting to safe arguments, preventing runtime crashes when accessing properties like `behavior`.
336
-
337
- ```ts
338
- // Calling without options is now supported; safe defaults are applied.
339
- await provider.acquireToken();
340
- await provider.acquireAccessToken();
341
- ```
342
-
343
- ## 7.2.0
344
-
345
- ### Minor Changes
346
-
347
- - [#4049](https://github.com/equinor/fusion-framework/pull/4049) [`dcf51aa`](https://github.com/equinor/fusion-framework/commit/dcf51aa87ac79200893ec4909632554464e75055) Thanks [@odinr](https://github.com/odinr)! - Add configurable default `loginHint` for MSAL logins to enable silent SSO and pre-fill usernames.
348
-
349
- ## 7.1.0
350
-
351
- ### Minor Changes
352
-
353
- - [#4000](https://github.com/equinor/fusion-framework/pull/4000) [`0b34d5d`](https://github.com/equinor/fusion-framework/commit/0b34d5d895c740a77fc995abeca910fdca1cf633) Thanks [@odinr](https://github.com/odinr)! - Add support for backend-issued auth code exchange in MSAL module
354
-
355
- Enable automatic sign-in using a backend-issued SPA authorization code without requiring interactive MSAL login flows. This eliminates double-login issues and provides seamless user experience when backend pre-authenticates users.
356
-
357
- **New API:**
358
- - `MsalConfigurator.setAuthCode(authCode: string)` - Configure backend auth code for token exchange
359
- - `IMsalClient.acquireTokenByCode(request)` - Exchange auth code for tokens (inherited from PublicClientApplication)
360
-
361
- **How it works:**
362
- 1. Backend authenticates user and generates short-lived SPA auth code
363
- 2. Frontend calls `builder.setAuthCode(authCode)` during MSAL configuration
364
- 3. During `initialize()`, auth code is exchanged for tokens before `requiresAuth` check
365
- 4. Tokens are cached by MSAL - user is automatically signed in
366
- 5. Falls back to standard MSAL flows if exchange fails
367
-
368
- **Example:**
369
-
370
- ```typescript
371
- enableMSAL(configurator, (builder) => {
372
- builder.setClientConfig({
373
- auth: { clientId: "app-id", tenantId: "tenant-id" },
374
- });
375
-
376
- // Backend injects auth code as window.MSAL_AUTH_CODE during initial first page load
377
- if (typeof window !== "undefined" && window.MSAL_AUTH_CODE) {
378
- builder.setAuthCode(window.MSAL_AUTH_CODE);
379
- delete (window as any).MSAL_AUTH_CODE; // Clear after consuming
380
- }
381
-
382
- builder.setRequiresAuth(true);
383
- });
384
- ```
385
-
386
- Fixes: https://github.com/equinor/fusion-core-tasks/issues/271
387
-
388
- ## 7.0.0
389
-
390
- ### Major Changes
391
-
392
- - [#3944](https://github.com/equinor/fusion-framework/pull/3944) [`cb37cae`](https://github.com/equinor/fusion-framework/commit/cb37cae45e06778e8d1ea20faed31b582e49fcae) Thanks [@dependabot](https://github.com/apps/dependabot)! - Upgrade @azure/msal-browser from v2.39.0 to v5.0.2
393
-
394
- **Changes:**
395
- - Updated MSAL browser dependency to v5.0.2
396
- - Added V5 to MsalModuleVersion enum for version detection
397
- - Updated version mapping logic to handle MSAL v5.x (maps to V5)
398
- - Created v4 compatibility layer with frozen type snapshots from MSAL v5
399
- - Fixed internal logger calls to include required correlationId parameter
400
- - Added v4 export to package.json for consumers needing v4-compatible types
401
-
402
- **Breaking changes:**
403
- None - all changes are internal. Consumer API remains unchanged and fully backward compatible.
404
-
405
- **Migration:**
406
- No action required. The module automatically detects and uses MSAL v5 when available, while maintaining compatibility with existing code through version proxies.
407
-
408
- ## 6.0.5
409
-
410
- ### Patch Changes
411
-
412
- - [#3866](https://github.com/equinor/fusion-framework/pull/3866) [`f70d66f`](https://github.com/equinor/fusion-framework/commit/f70d66f1bc826e614140adb2c6ee052f98e3b3da) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: Dedupe zod dependency to 4.3.5
413
-
414
- Deduplicated zod dependency to version 4.3.5 across all packages using `pnpm dedupe`. This aligns all packages (AI plugins upgraded from v3.25.76, other packages consolidated from v4.1.8/v4.1.11) to use the same latest stable version, improving consistency and reducing bundle size. All builds, tests, and linting pass successfully.
415
-
416
- - Updated dependencies [[`f70d66f`](https://github.com/equinor/fusion-framework/commit/f70d66f1bc826e614140adb2c6ee052f98e3b3da)]:
417
- - @equinor/fusion-framework-module-telemetry@4.6.1
418
-
419
- ## 6.0.4
420
-
421
- ### Patch Changes
422
-
423
- - [#3797](https://github.com/equinor/fusion-framework/pull/3797) [`244d615`](https://github.com/equinor/fusion-framework/commit/244d615195721541870c98754ee37baca96b8584) Thanks [@odinr](https://github.com/odinr)! - Ensure `acquireToken` normalizes legacy options when `request` is omitted by creating a default request object and applying active account fallback.
424
-
425
- Previously `{ scopes: ["User.Read"] }` could yield a request without `account`, relying on downstream resolution. The provider now explicitly supplies an empty request object, resolves `account` from the active session, and merges legacy `scopes` for clearer telemetry and safer behavior.
426
-
427
- Before:
428
-
429
- ```typescript
430
- await provider.acquireToken({ scopes: ["User.Read"] }); // request undefined, account implicit
431
- ```
432
-
433
- After (both forms valid, account resolved automatically):
434
-
435
- ```typescript
436
- await provider.acquireToken({ scopes: ["User.Read"] });
437
- await provider.acquireToken({ request: { scopes: ["User.Read"] } });
438
- ```
439
-
440
- Internal: improves stability of legacy usage without breaking API.
441
-
442
- ## 6.0.3
443
-
444
- ### Patch Changes
445
-
446
- - [`655ab0e`](https://github.com/equinor/fusion-framework/commit/655ab0ea9568090271225cb51285e78c2d08941e) Thanks [@odinr](https://github.com/odinr)! - Internal: fix proxy provider creation to avoid incorrect provider wiring in v2 `create-proxy-provider.ts`.
447
-
448
- This change corrects internal wiring used when creating the proxy provider in the v2 implementation. No public API changes.
449
-
450
- ## 6.0.2
451
-
452
- ### Patch Changes
453
-
454
- - [`b8c8149`](https://github.com/equinor/fusion-framework/commit/b8c814938be4543d2522566ece10ebc6feefee75) Thanks [@odinr](https://github.com/odinr)! - Fix proxy provider API calls to correctly wrap request parameters for `acquireToken` and `acquireAccessToken` methods.
455
-
456
- ## 6.0.1
457
-
458
- ### Patch Changes
459
-
460
- - [`e8d6784`](https://github.com/equinor/fusion-framework/commit/e8d67848d53b8e733ddb60335fedeae637131c8d) Thanks [@odinr](https://github.com/odinr)! - Fix request format handling in v2 proxy provider to support both v2 and v4 request formats.
461
-
462
- The `acquireToken` and `acquireAccessToken` methods in the v2 proxy provider now correctly detect and handle requests in both v2 format (`{ scopes, account }`) and v4 format (`{ request: { scopes, account } }`), ensuring compatibility with both API versions.
463
-
464
- ## 6.0.0
465
-
466
- ### Major Changes
467
-
468
- - [#3714](https://github.com/equinor/fusion-framework/pull/3714) [`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8) Thanks [@odinr](https://github.com/odinr)! - # MSAL v4 Upgrade
469
-
470
- ## What Changed
471
-
472
- Upgraded from MSAL v2 to MSAL v4 with full backward compatibility, addressing the requirements outlined in [issue #3621](https://github.com/equinor/fusion-framework/issues/3621).
473
-
474
- ## Impact on Your Code
475
-
476
- **✅ No breaking changes for existing code** - All current MSAL v2 API calls continue to work exactly as before.
477
-
478
- **🚀 Enhanced features available** - New v4 APIs provide better performance, security, and error handling.
479
-
480
- ## What You Get
481
- - **Better Security**: Latest MSAL v4 security improvements and vulnerability fixes
482
- - **Improved Performance**: Faster token acquisition and caching
483
- - **Enhanced Error Handling**: More robust error recovery and retry mechanisms
484
- - **Future-Proof**: Access to latest Microsoft authentication features
485
-
486
- ## Migration (Optional)
487
-
488
- **Current code works unchanged:**
489
-
490
- ```typescript
491
- // Framework configuration still works exactly the same
492
- const framework = await createFramework({
493
- modules: [enableMSAL()],
494
- });
495
-
496
- // Provider usage remains unchanged
497
- const token = await framework.modules.auth.acquireToken({
498
- scopes: ["User.Read"],
499
- });
500
- ```
501
-
502
- **New v4 features available:**
503
-
504
- ```typescript
505
- // Enhanced configuration with new options
506
- const framework = await createFramework({
507
- modules: [enableMSAL()],
508
- });
509
-
510
- // Improved token acquisition with MSAL v4 request structure
511
- const token = await framework.modules.auth.acquireToken({
512
- request: { scopes: ["User.Read"] },
513
- behavior: "popup",
514
- silent: true,
515
- });
516
- ```
517
-
518
- ## Breaking Changes
519
-
520
- None for existing consumers. This is marked as major due to internal architecture changes, but the public API remains fully compatible.
521
-
522
- - [#3714](https://github.com/equinor/fusion-framework/pull/3714) [`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8) Thanks [@odinr](https://github.com/odinr)! - Add optional provider-level telemetry for MSAL flows and update interface methods.
523
-
524
- **BREAKING CHANGES:**
525
- - `acquireAccessToken(options: AcquireTokenOptions)` → `acquireAccessToken(options: AcquireTokenOptionsLegacy)`
526
- - `acquireToken(options: AcquireTokenOptions)` → `acquireToken(options: AcquireTokenOptionsLegacy)`
527
- - `logout(options?: LogoutOptions): Promise<void>` → `logout(options?: LogoutOptions): Promise<boolean>`
528
- - `handleRedirect(): Promise<void>` → `handleRedirect(): Promise<AuthenticationResult | null>`
529
- - Added `initialize(): Promise<void>` method
530
-
531
- **New Features:**
532
- - Optional provider-level telemetry for MSAL flows (login, token acquisition, redirect handling)
533
- - Emits telemetry events and measurements via injected telemetry provider when available
534
- - Includes basic metadata (framework module version, clientId, tenantId) and authentication context
535
- - Integrates MSAL client logging with framework telemetry system
536
-
537
- **Migration:**
538
-
539
- ```typescript
540
- // Before
541
- await msalProvider.acquireAccessToken({ scopes: ["user.read"] });
542
- await msalProvider.logout();
543
- const result = await msalProvider.handleRedirect();
544
-
545
- // After
546
- await msalProvider.acquireAccessToken({ request: { scopes: ["user.read"] } });
547
- const logoutResult = await msalProvider.logout(); // Now returns boolean
548
- const result = await msalProvider.handleRedirect(); // Now returns AuthenticationResult | null
549
- await msalProvider.initialize(); // New required method
550
- ```
551
-
552
- Related to `Add Telemetry Integration to MSAL Module` [#3634](https://github.com/equinor/fusion-framework/issues/3634).
553
-
554
- ### Patch Changes
555
-
556
- - Updated dependencies [[`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8)]:
557
- - @equinor/fusion-framework-module-telemetry@4.4.0
558
-
559
- ## 5.1.2
560
-
561
- ### Patch Changes
562
-
563
- - [#3555](https://github.com/equinor/fusion-framework/pull/3555) [`cd06a8a`](https://github.com/equinor/fusion-framework/commit/cd06a8a8de86a44edf349103fb9da6c8615a1d59) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update semver from 7.7.2 to 7.7.3, including performance improvements for version comparison and x-range build metadata support used throughout the framework for authentication and module versioning.
564
-
565
- - [#3544](https://github.com/equinor/fusion-framework/pull/3544) [`443414f`](https://github.com/equinor/fusion-framework/commit/443414fe0351b529cecf0a667383640567d05e74) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update zod from 4.1.11 to 4.1.12, which includes a critical bug fix for ZodError.flatten() preventing crashes on 'toString' key and improved error handling throughout the framework.
566
-
567
- - Updated dependencies [[`cd06a8a`](https://github.com/equinor/fusion-framework/commit/cd06a8a8de86a44edf349103fb9da6c8615a1d59)]:
568
- - @equinor/fusion-framework-module@5.0.5
569
-
570
- ## 5.1.1
571
-
572
- ### Patch Changes
573
-
574
- - [#3597](https://github.com/equinor/fusion-framework/pull/3597) [`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b) Thanks [@odinr](https://github.com/odinr)! - Fix dispose method proxy handling in AuthProvider to ensure proper binding when accessed through proxy.
575
-
576
- - Updated dependencies [[`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`0bc6b38`](https://github.com/equinor/fusion-framework/commit/0bc6b38e61c98a2f9dea7b55fa9983f268f860be)]:
577
- - @equinor/fusion-framework-module@5.0.4
578
-
579
- ## 5.1.0
580
-
581
- ### Minor Changes
582
-
583
- - [#3573](https://github.com/equinor/fusion-framework/pull/3573) [`b42b116`](https://github.com/equinor/fusion-framework/commit/b42b11616487c534e8e01f2df126e2ad05ce6a8f) Thanks [@odinr](https://github.com/odinr)! - Refactored AuthProvider to use a cleaner `client` property instead of deprecated `defaultClient`.
584
- - Added `client` property to IAuthProvider interface
585
- - Replaced deprecated `defaultClient` getter with `client` getter
586
- - Updated internal references to use private `#client` field
587
- - Maintained backward compatibility through proxy provider with deprecation warning
588
-
589
- - [#3572](https://github.com/equinor/fusion-framework/pull/3572) [`2d90f8b`](https://github.com/equinor/fusion-framework/commit/2d90f8b3806aa3deec5ca60142d38118748b1d3e) Thanks [@odinr](https://github.com/odinr)! - Refactored MSAL versioning module to use warnings instead of errors for version incompatibilities.
590
-
591
- **Changes:**
592
- - Removed `create-version-message.ts` and `static.ts` utility files
593
- - Modified `resolveVersion()` to collect warnings for version mismatches instead of throwing errors
594
- - Simplified `VersionError` class by removing factory methods and type enum references
595
- - Updated tests to reflect new warning-based behavior
596
-
597
- **Breaking Changes:**
598
- - Version resolution now returns warnings for incompatible versions instead of throwing errors
599
- - This change is backward compatible as existing code will continue to work, but error handling behavior has changed
600
-
601
- **Migration:**
602
- If your code previously caught `VersionError` exceptions for version incompatibilities, you should now check the `warnings` array in the resolution result instead.
603
-
604
- ## 5.0.1
605
-
606
- ### Patch Changes
607
-
608
- - [#3442](https://github.com/equinor/fusion-framework/pull/3442) [`3b614f8`](https://github.com/equinor/fusion-framework/commit/3b614f87138f5a52f8ccc50ca8c6598ef3db37d6) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Update biome to latest version
609
-
610
- - [#3428](https://github.com/equinor/fusion-framework/pull/3428) [`1700ca8`](https://github.com/equinor/fusion-framework/commit/1700ca8851fa108e55e9729fd24f595272766e63) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update zod from 4.1.9 to 4.1.11
611
- - **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
612
- - **v4.1.11**: Maintenance release with general improvements
613
-
614
- This patch update enhances schema validation performance without changing any APIs.
615
-
616
- - Updated dependencies [[`3b614f8`](https://github.com/equinor/fusion-framework/commit/3b614f87138f5a52f8ccc50ca8c6598ef3db37d6)]:
617
- - @equinor/fusion-framework-module@5.0.2
618
-
619
- ## 5.0.0
620
-
621
- ### Major Changes
622
-
623
- - [#3394](https://github.com/equinor/fusion-framework/pull/3394) [`c222c67`](https://github.com/equinor/fusion-framework/commit/c222c673bc7cdefff6eb0cd9436bfa3d1f185295) Thanks [@odinr](https://github.com/odinr)! - feat: migrate to zod v4
624
-
625
- Updated source code to migrate from zod v3 to v4. Updated zod dependency from v3.25.76 to v4.1.8 and modified authentication configuration schemas in the MSAL module to be compatible with zod v4's stricter type checking and updated API.
626
-
627
- Key changes in source code:
628
- - Updated `AuthClientConfigSchema` and `AuthConfigSchema` for zod v4 compatibility
629
- - Enhanced version schema transformation to work with zod v4
630
- - Improved validation of client configuration (clientId, tenantId, redirectUri)
631
- - Better type safety for provider configuration and version handling
632
-
633
- Breaking changes: Schema validation behavior may differ due to zod v4's stricter type checking. Error message format has changed from zod v3 to v4 format. Function schema definitions now require explicit typing.
634
-
635
- Links:
636
- - [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
637
- - [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
638
-
639
- ## 4.1.0
640
-
641
- ### Minor Changes
642
-
643
- - [#3376](https://github.com/equinor/fusion-framework/pull/3376) [`da373ad`](https://github.com/equinor/fusion-framework/commit/da373ade663898b2628e28529b6e3dea3b91ed43) Thanks [@odinr](https://github.com/odinr)! - Improved MSAL module version checking to be more permissive for minor and patch versions.
644
-
645
- Fixes: #3375
646
- - Refactored version checking logic into dedicated versioning module
647
- - Made version checking more permissive for minor and patch versions
648
- - Only major version incompatibilities will block execution
649
- - Minor version differences now show warnings but allow execution to continue
650
- - Patch version differences are completely ignored
651
- - Added comprehensive test coverage for version resolution
652
- - Improved error messages and warnings for better developer experience
653
- - Maintains backward compatibility with existing configurations
654
-
655
- ## 4.0.9
656
-
657
- ### Patch Changes
658
-
659
- - [#3343](https://github.com/equinor/fusion-framework/pull/3343) [`68dc22f`](https://github.com/equinor/fusion-framework/commit/68dc22f582bb68fbc94f29ad053122f81c049405) Thanks [@odinr](https://github.com/odinr)! - Enhanced documentation with comprehensive guides and improved developer experience.
660
- - **Complete documentation rewrite** with better structure and organization
661
- - **Added comprehensive API reference** with detailed interface documentation
662
- - **Enhanced configuration guide** with clear required/optional settings tables
663
- - **Added migration guide** for v4 breaking changes and module hoisting
664
- - **Improved troubleshooting section** with common issues and solutions
665
- - **Added quick start examples** with practical usage patterns
666
- - **Enhanced module hoisting documentation** explaining shared authentication state
667
- - **Added package description** for better npm package visibility
668
-
669
- **Key Improvements:**
670
- - Clear separation between required and optional configuration
671
- - Comprehensive API reference with TypeScript interfaces
672
- - Migration guidance for v4 breaking changes
673
- - Better developer onboarding with quick start examples
674
- - Enhanced troubleshooting with platform-specific solutions
675
-
676
- ## 4.0.8
677
-
678
- ### Patch Changes
679
-
680
- - [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253) Thanks [@odinr](https://github.com/odinr)! - Upgrade zod dependency to ^3.25.76 in all affected packages.
681
-
682
- - Updated dependencies [[`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253), [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253)]:
683
- - @equinor/fusion-framework-module@5.0.0
684
-
685
- ## 4.0.7
686
-
687
- ### Patch Changes
688
-
689
- - [#3088](https://github.com/equinor/fusion-framework/pull/3088) [`7441b13`](https://github.com/equinor/fusion-framework/commit/7441b13aa50dd7362d1629086a27b6b4e571575d) Thanks [@eikeland](https://github.com/eikeland)! - chore: update package typesVersions
690
- - Updated package.json typesVersions.
691
- - Ensures backward compatibility with older node versions.
692
- - Ensured consistency with workspace and repository configuration.
693
-
694
- ## 4.0.6
695
-
696
- ### Patch Changes
697
-
698
- - Updated dependencies [[`96bb1fb`](https://github.com/equinor/fusion-framework/commit/96bb1fb744d8dc2410e99fea6ca948d2d5489428)]:
699
- - @equinor/fusion-framework-module@4.4.2
700
-
701
- ## 4.0.5
702
-
703
- ### Patch Changes
704
-
705
- - [#3054](https://github.com/equinor/fusion-framework/pull/3054) [`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Re-add typesVersions from package.json files
706
-
707
- - Updated dependencies [[`e49f916`](https://github.com/equinor/fusion-framework/commit/e49f9161557202df57248d02ade4d2ef50231bdc), [`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde)]:
708
- - @equinor/fusion-framework-module@4.4.1
709
-
710
- ## 4.0.4
711
-
712
- ### Patch Changes
713
-
714
- - Updated dependencies [[`efd70a3`](https://github.com/equinor/fusion-framework/commit/efd70a34f734e0c155d3440e35ce4fa11a7abc42)]:
715
- - @equinor/fusion-framework-module@4.4.0
716
-
717
- ## 4.0.3
718
-
719
- ### Patch Changes
720
-
721
- - [#3012](https://github.com/equinor/fusion-framework/pull/3012) [`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43) Thanks [@odinr](https://github.com/odinr)! - removed `typesVersions` from packages, since we no longer support TS < 4.7, also corrected `types` path in package.json
722
-
723
- - Updated dependencies [[`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43)]:
724
- - @equinor/fusion-framework-module@4.3.8
725
-
726
- ## 4.0.2
727
-
728
- ### Patch Changes
729
-
730
- - [#2885](https://github.com/equinor/fusion-framework/pull/2885) [`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update he `Typescript` version `^5.7.3` to `^5.8.2`
731
-
732
- - Updated dependencies [[`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237)]:
733
- - @equinor/fusion-framework-module@4.3.7
734
-
735
- ## 4.0.1
736
-
737
- ### Patch Changes
738
-
739
- - [#2865](https://github.com/equinor/fusion-framework/pull/2865) [`6efabb7`](https://github.com/equinor/fusion-framework/commit/6efabb7837a97319e976e122db855d8b88b031a6) Thanks [@odinr](https://github.com/odinr)! - hotfix: added `defaultConfig` to `AuthProvider.createProxyProvider` to allow legacy child providers to access the `config` object.
740
-
741
- - [#2854](https://github.com/equinor/fusion-framework/pull/2854) [`1953dd2`](https://github.com/equinor/fusion-framework/commit/1953dd217d85fa4880856b2c97b6305fcbaf2e24) Thanks [@odinr](https://github.com/odinr)! - removed useless switch cases
742
-
743
- - [#2848](https://github.com/equinor/fusion-framework/pull/2848) [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d) Thanks [@odinr](https://github.com/odinr)! - Refactored imports to use `type` when importing types from a module, to conform with the `useImportType` rule in Biome.
744
-
745
- - Updated dependencies [[`ba5d12e`](https://github.com/equinor/fusion-framework/commit/ba5d12eba0a38db412353765e997d02c1fbb478d), [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d)]:
746
- - @equinor/fusion-framework-module@4.3.6
747
-
748
- ## 4.0.0
749
-
750
- ### Major Changes
751
-
752
- - [#2814](https://github.com/equinor/fusion-framework/pull/2814) [`ea4b522`](https://github.com/equinor/fusion-framework/commit/ea4b5221b30719289fc947b5dbb0acd3ea52ffaa) Thanks [@odinr](https://github.com/odinr)! - Rework of the MSAL module to support module hoisting. This means that sub modules instances will proxy the parent module instance. This means that the module instance will be shared between all instances of the module.
753
-
754
- **Highlights:**
755
- - Versioning module, config and provider.
756
- - Interfaces for MSAL versions
757
- - Proxy provider instances for sub modules.
758
- - Transpile provider implementation to requested version.
759
- - Configurator using `BaseConfigBuilder` (aligned with other modules)
760
-
761
- **BREAKING CHANGES:**
762
- - `configureMsal` has changed parameter signature to `configureMsal(msalConfigurator: MsalConfigurator): void`
763
- - Added `enableMsal` with parameter signature to `enableMsal(configurator: IModulesConfigurator, configureMsal: (msalConfigurator: MsalConfigurator) => void): void`
764
-
765
- **How to migrate:**
766
-
767
- > **As an application no changes are required, the module will work as before.**
768
-
769
- ```diff
770
- import { configureMsal } from '@equinor/fusion-framework-module-msal';
771
-
772
- - configureMsal(
773
- - {
774
- - tenantId: '{TENANT_ID}',
775
- - clientId: '{CLIENT_ID}',
776
- - redirectUri: '/authentication/login-callback',
777
- - },
778
- - { requiresAuth: true }
779
- - );
780
- + enableMsal(configurator, (msalConfigurator) => {
781
- + msalConfigurator.setClientConfig({
782
- + tenantId: '{TENANT_ID}',
783
- + clientId: '{CLIENT_ID}',
784
- + redirectUri: '/authentication/login-callback',
785
- + });
786
- + msalConfigurator.requiresAuth(true);
787
- +})
788
- ```
789
-
790
- ## 3.1.5
791
-
792
- ### Patch Changes
793
-
794
- - Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]:
795
- - @equinor/fusion-framework-module@4.3.5
796
-
797
- ## 3.1.4
798
-
799
- ### Patch Changes
800
-
801
- - Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]:
802
- - @equinor/fusion-framework-module@4.3.4
803
-
804
- ## 3.1.3
805
-
806
- ### Patch Changes
807
-
808
- - Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]:
809
- - @equinor/fusion-framework-module@4.3.3
810
-
811
- ## 3.1.2
812
-
813
- ### Patch Changes
814
-
815
- - [#2333](https://github.com/equinor/fusion-framework/pull/2333) [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1) Thanks [@odinr](https://github.com/odinr)! - Updated `TypeScript` to 5.5.3
816
-
817
- - [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
818
-
819
- Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
820
- 1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
821
- 2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
822
- 3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
823
-
824
- No action is required from consumers of the library. This change affects the build process and doesn't introduce any breaking changes or new features.
825
-
826
- Before:
827
-
828
- ```json
829
- {
830
- "compilerOptions": {
831
- "module": "ES2022",
832
- "target": "ES6",
833
- "incremental": true,
834
- "removeComments": true,
835
- "preserveConstEnums": true,
836
- "sourceMap": true,
837
- "moduleResolution": "node"
838
- }
839
- }
840
- ```
841
-
842
- After:
843
-
844
- ```json
845
- {
846
- "compilerOptions": {
847
- "module": "ES2022",
848
- "target": "ES6",
849
- "incremental": true,
850
- "preserveConstEnums": true,
851
- "sourceMap": true,
852
- "moduleResolution": "node"
853
- }
854
- }
855
- ```
856
-
857
- This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework.
858
-
859
- - Updated dependencies [[`2f74edc`](https://github.com/equinor/fusion-framework/commit/2f74edcd4a3ea2b87d69f0fd63492145c3c01663), [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1), [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee)]:
860
- - @equinor/fusion-framework-module@4.3.2
861
-
862
- ## 3.1.1
863
-
864
- ### Patch Changes
865
-
866
- - Updated dependencies [[`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2)]:
867
- - @equinor/fusion-framework-module@4.3.1
868
-
869
- ## 3.1.0
870
-
871
- ### Minor Changes
872
-
873
- - [#1953](https://github.com/equinor/fusion-framework/pull/1953) [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904) Thanks [@odinr](https://github.com/odinr)! - updated typescript to 5.4.2
874
-
875
- ### Patch Changes
876
-
877
- - Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
878
- - @equinor/fusion-framework-module@4.3.0
879
-
880
- ## 3.0.10
881
-
882
- ### Patch Changes
883
-
884
- - Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
885
- - @equinor/fusion-framework-module@4.2.7
886
-
887
- ## 3.0.9
888
-
889
- ### Patch Changes
890
-
891
- - [#1646](https://github.com/equinor/fusion-framework/pull/1646) [`5eab8af`](https://github.com/equinor/fusion-framework/commit/5eab8afe3c3106cc67ad14ce4cbee6c7e4e8dfb1) Thanks [@odinr](https://github.com/odinr)! - re-export `AuthenticationResult` from `@azure/msal-browser`
892
-
893
- ## 3.0.8
894
-
895
- ### Patch Changes
896
-
897
- - [#1595](https://github.com/equinor/fusion-framework/pull/1595) [`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125) Thanks [@Gustav-Eikaas](https://github.com/Gustav-Eikaas)! - support for module resolution NodeNext & Bundler
898
-
899
- - Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
900
- - @equinor/fusion-framework-module@4.2.6
901
-
902
- ## 3.0.7
903
-
904
- ### Patch Changes
905
-
906
- - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
907
-
908
- - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
909
- - @equinor/fusion-framework-module@4.2.5
910
-
911
- ## 3.0.6
912
-
913
- ### Patch Changes
914
-
915
- - Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
916
- - @equinor/fusion-framework-module@4.2.4
917
-
918
- ## 3.0.5
919
-
920
- ### Patch Changes
921
-
922
- - [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
923
-
924
- conflicts of `@types/react` made random outcomes when using `yarn`
925
-
926
- this change should not affect consumer of the packages, but might conflict dependent on local package manager.
927
-
928
- - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
929
- - @equinor/fusion-framework-module@4.2.3
930
-
931
- ## 3.0.4
932
-
933
- ### Patch Changes
934
-
935
- - [#946](https://github.com/equinor/fusion-framework/pull/946) [`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352) Thanks [@odinr](https://github.com/odinr)! - Build/update typescript to 5
936
-
937
- - Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
938
- - @equinor/fusion-framework-module@4.2.1
939
-
940
- ## 3.0.3
941
-
942
- ### Patch Changes
943
-
944
- - [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
945
- - align all versions of typescript
946
- - update types to build
947
- - a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
948
-
949
- - Updated dependencies [[`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`76b30c1e`](https://github.com/equinor/fusion-framework/commit/76b30c1e86db3db18adbe759bb1e39885de1c898), [`83ee5abf`](https://github.com/equinor/fusion-framework/commit/83ee5abf7bcab193c85980e5ae44895cd7f6f08d), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`060818eb`](https://github.com/equinor/fusion-framework/commit/060818eb04ebb9ed6deaed1f0b4530201b1181cf), [`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c)]:
950
- - @equinor/fusion-framework-module@4.2.0
951
-
952
- All notable changes to this project will be documented in this file.
953
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
954
-
955
- ## 3.0.2 (2023-05-23)
956
-
957
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
958
-
959
- ## 3.0.1 (2023-05-05)
960
-
961
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
962
-
963
- ## 3.0.0 (2023-04-16)
964
-
965
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
966
-
967
- ## [2.0.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@2.0.0...@equinor/fusion-framework-module-msal@2.0.1) (2023-03-20)
968
-
969
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
970
-
971
- ## [2.0.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.23...@equinor/fusion-framework-module-msal@2.0.0) (2023-01-27)
972
-
973
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
974
-
975
- ## [2.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.23...@equinor/fusion-framework-module-msal@2.0.0-alpha.0) (2023-01-26)
976
-
977
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
978
-
979
- ## 1.0.23 (2023-01-26)
980
-
981
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
982
-
983
- ## 1.0.22 (2023-01-17)
984
-
985
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
986
-
987
- ## 1.0.21 (2022-12-01)
988
-
989
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
990
-
991
- ## 1.0.20 (2022-12-01)
992
-
993
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
994
-
995
- ## 1.0.19 (2022-11-11)
996
-
997
- ### Bug Fixes
998
-
999
- - **module-msal:** await redirect handling ([92686d2](https://github.com/equinor/fusion-framework/commit/92686d2ae054d7f507093b839edb2fe5775c7449))
1000
-
1001
- ## 1.0.18 (2022-11-11)
1002
-
1003
- ### Bug Fixes
1004
-
1005
- - **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
1006
-
1007
- ## 1.0.17 (2022-11-03)
1008
-
1009
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1010
-
1011
- ## 1.0.16 (2022-11-02)
1012
-
1013
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1014
-
1015
- ## 1.0.15 (2022-11-01)
1016
-
1017
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1018
-
1019
- ## 1.0.14 (2022-10-27)
1020
-
1021
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1022
-
1023
- ## 1.0.13 (2022-10-21)
1024
-
1025
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1026
-
1027
- ## [1.0.12](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.11...@equinor/fusion-framework-module-msal@1.0.12) (2022-10-17)
1028
-
1029
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1030
-
1031
- ## 1.0.11 (2022-10-03)
1032
-
1033
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1034
-
1035
- ## 1.0.10 (2022-10-03)
1036
-
1037
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1038
-
1039
- ## [1.0.9](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.8...@equinor/fusion-framework-module-msal@1.0.9) (2022-09-29)
1040
-
1041
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1042
-
1043
- ## 1.0.8 (2022-09-27)
1044
-
1045
- ### Bug Fixes
1046
-
1047
- - update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
1048
-
1049
- ## 1.0.7 (2022-09-20)
1050
-
1051
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1052
-
1053
- ## [1.0.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.5...@equinor/fusion-framework-module-msal@1.0.6) (2022-09-16)
1054
-
1055
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1056
-
1057
- ## [1.0.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.4...@equinor/fusion-framework-module-msal@1.0.5) (2022-09-14)
1058
-
1059
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1060
-
1061
- ## [1.0.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.3...@equinor/fusion-framework-module-msal@1.0.4) (2022-09-13)
1062
-
1063
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1064
-
1065
- ## [1.0.3](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.2...@equinor/fusion-framework-module-msal@1.0.3) (2022-09-13)
1066
-
1067
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1068
-
1069
- ## [1.0.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.1...@equinor/fusion-framework-module-msal@1.0.2) (2022-09-13)
1070
-
1071
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1072
-
1073
- ## [1.0.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.1-next.1...@equinor/fusion-framework-module-msal@1.0.1) (2022-09-12)
1074
-
1075
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1076
-
1077
- ## [1.0.1-next.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.1-next.0...@equinor/fusion-framework-module-msal@1.0.1-next.1) (2022-09-12)
1078
-
1079
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1080
-
1081
- ## [1.0.1-next.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@1.0.0...@equinor/fusion-framework-module-msal@1.0.1-next.0) (2022-09-12)
1082
-
1083
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1084
-
1085
- ## 1.0.0 (2022-09-12)
1086
-
1087
- ### Features
1088
-
1089
- - **module-msal:** expose simple config ([596c4c2](https://github.com/equinor/fusion-framework/commit/596c4c222a75bfef67e2e129792f6132cbceb47c))
1090
-
1091
- ### Bug Fixes
1092
-
1093
- - **module-msal:** set default logging to errors ([1b53be8](https://github.com/equinor/fusion-framework/commit/1b53be816600c838257f0b3c6f3a338466938a3f))
1094
-
1095
- ## [1.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.4.2...@equinor/fusion-framework-module-msal@1.0.0-alpha.0) (2022-09-12)
1096
-
1097
- ### Features
1098
-
1099
- - **module-msal:** expose simple config ([596c4c2](https://github.com/equinor/fusion-framework/commit/596c4c222a75bfef67e2e129792f6132cbceb47c))
1100
-
1101
- ### Bug Fixes
1102
-
1103
- - **module-msal:** set default logging to errors ([1b53be8](https://github.com/equinor/fusion-framework/commit/1b53be816600c838257f0b3c6f3a338466938a3f))
1104
-
1105
- ## 0.4.2 (2022-09-05)
1106
-
1107
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1108
-
1109
- ## 0.4.1 (2022-09-05)
1110
-
1111
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1112
-
1113
- ## 0.4.0 (2022-08-29)
1114
-
1115
- ### ⚠ BREAKING CHANGES
1116
-
1117
- - rename fetch
1118
-
1119
- - fix(module-service-discovery): update http client consumer
1120
-
1121
- - build: update allowed branches
1122
-
1123
- - build: add conventional commit
1124
-
1125
- - build: use conventionalcommits
1126
-
1127
- - build(module-http): push major
1128
-
1129
- - build: update deps
1130
-
1131
- ### Features
1132
-
1133
- - rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
1134
-
1135
- ## 0.3.2 (2022-08-19)
1136
-
1137
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1138
-
1139
- ## [0.3.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.3.0...@equinor/fusion-framework-module-msal@0.3.1) (2022-08-15)
1140
-
1141
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1142
-
1143
- # [0.3.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.2.0...@equinor/fusion-framework-module-msal@0.3.0) (2022-08-11)
1144
-
1145
- - feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
1146
-
1147
- ### BREAKING CHANGES
1148
-
1149
- - module.initialize now has object as arg
1150
-
1151
- # 0.2.0 (2022-08-08)
1152
-
1153
- ### Features
1154
-
1155
- - **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
1156
-
1157
- ## [0.1.24](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.23...@equinor/fusion-framework-module-msal@0.1.24) (2022-08-04)
1158
-
1159
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1160
-
1161
- ## [0.1.23](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.22...@equinor/fusion-framework-module-msal@0.1.23) (2022-08-01)
1162
-
1163
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1164
-
1165
- ## 0.1.22 (2022-08-01)
1166
-
1167
- ### Bug Fixes
1168
-
1169
- - change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
1170
-
1171
- ## [0.1.21](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.20...@equinor/fusion-framework-module-msal@0.1.21) (2022-07-01)
1172
-
1173
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1174
-
1175
- ## [0.1.20](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.19...@equinor/fusion-framework-module-msal@0.1.20) (2022-07-01)
1176
-
1177
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1178
-
1179
- ## [0.1.19](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.18...@equinor/fusion-framework-module-msal@0.1.19) (2022-06-30)
1180
-
1181
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1182
-
1183
- ## [0.1.18](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.17...@equinor/fusion-framework-module-msal@0.1.18) (2022-06-30)
1184
-
1185
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1186
-
1187
- ## [0.1.17](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.16...@equinor/fusion-framework-module-msal@0.1.17) (2022-06-28)
1188
-
1189
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1190
-
1191
- ## [0.1.16](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.15...@equinor/fusion-framework-module-msal@0.1.16) (2022-06-28)
1192
-
1193
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1194
-
1195
- ## [0.1.15](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.14...@equinor/fusion-framework-module-msal@0.1.15) (2022-06-28)
1196
-
1197
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1198
-
1199
- ## 0.1.14 (2022-06-28)
1200
-
1201
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1202
-
1203
- ## 0.1.13 (2022-06-14)
1204
-
1205
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1206
-
1207
- ## 0.1.12 (2022-06-13)
1208
-
1209
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1210
-
1211
- ## 0.1.11 (2022-06-10)
1212
-
1213
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1214
-
1215
- ## 0.1.10 (2022-05-31)
1216
-
1217
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1218
-
1219
- ## [0.1.9](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.8...@equinor/fusion-framework-module-msal@0.1.9) (2022-03-25)
1220
-
1221
- ### Bug Fixes
1222
-
1223
- - **module-msal:** prevent redirect loop ([2d0f57c](https://github.com/equinor/fusion-framework/commit/2d0f57c737282f485099ff2562b4c4c956f8e30a))
1224
-
1225
- ## 0.1.8 (2022-03-25)
1226
-
1227
- ### Bug Fixes
1228
-
1229
- - **modules-msal:** change regex group selector ([ebaa118](https://github.com/equinor/fusion-framework/commit/ebaa11849303e68f67544f8db57727673f821744))
1230
-
1231
- ## [0.1.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.6...@equinor/fusion-framework-module-msal@0.1.7) (2022-02-23)
1232
-
1233
- ### Bug Fixes
1234
-
1235
- - **module-msal:** await auth ([#33](https://github.com/equinor/fusion-framework/issues/33)) ([d4c3dbd](https://github.com/equinor/fusion-framework/commit/d4c3dbd0afc6a3adebe23853ccd363d1bf37f131))
1236
-
1237
- ## [0.1.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.5...@equinor/fusion-framework-module-msal@0.1.6) (2022-02-23)
1238
-
1239
- ### Bug Fixes
1240
-
1241
- - deps ([2f2938b](https://github.com/equinor/fusion-framework/commit/2f2938b554610a068ed451623dd13480cae27302))
1242
-
1243
- ## [0.1.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.4...@equinor/fusion-framework-module-msal@0.1.5) (2022-02-23)
1244
-
1245
- ### Bug Fixes
1246
-
1247
- - add missing deps ([d689a02](https://github.com/equinor/fusion-framework/commit/d689a025613401eadf693bdd52694ba462dcfea3))
1248
-
1249
- ## [0.1.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.3...@equinor/fusion-framework-module-msal@0.1.4) (2022-02-23)
1250
-
1251
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1252
-
1253
- ## [0.1.3](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.2...@equinor/fusion-framework-module-msal@0.1.3) (2022-02-23)
1254
-
1255
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1256
-
1257
- ## 0.1.2 (2022-02-23)
1258
-
1259
- ### Bug Fixes
1260
-
1261
- - **module-msal:** auth client id check ([#27](https://github.com/equinor/fusion-framework/issues/27)) ([907460e](https://github.com/equinor/fusion-framework/commit/907460e3e63e777f6766dcc044cad7078d7ab747))
1262
-
1263
- ## 0.1.1 (2022-02-09)
1264
-
1265
- **Note:** Version bump only for package @equinor/fusion-framework-module-msal
1266
-
1267
- # 0.1.0 (2022-02-07)
1268
-
1269
- ### Bug Fixes
1270
-
1271
- - **module-msal:** invert bool check of scopes ([3d9fb50](https://github.com/equinor/fusion-framework/commit/3d9fb50e4b3d408cab4f6e68c44ca9045e8ce40d))
1272
-
1273
- ### Features
1274
-
1275
- - add client for msal ([41e6b13](https://github.com/equinor/fusion-framework/commit/41e6b1378f41b1e03023186d480460a0189878c6))
1276
- - **module-msal:** change behavoir to redirect ([9f2193f](https://github.com/equinor/fusion-framework/commit/9f2193f21a7056cb6b42513845fdc19910522628))
1277
- - **module-msal:** expose account ([f4b27b3](https://github.com/equinor/fusion-framework/commit/f4b27b3db7cf5133afbaf366ba953561dd23c113))