@equinor/fusion-framework-module-msal 11.0.0 → 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.
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -5
- package/CHANGELOG.md +0 -1212
- package/docs/api-reference.md +0 -85
- package/docs/auth-code-flow.md +0 -86
- package/docs/migration-v2-to-v4.md +0 -115
- package/docs/testing.md +0 -191
- package/docs/troubleshooting.md +0 -17
- package/docs/version-management.md +0 -67
- package/src/MsalClient.interface.ts +0 -139
- package/src/MsalClient.ts +0 -326
- package/src/MsalConfigurator.ts +0 -486
- package/src/MsalProvider.interface.ts +0 -179
- package/src/MsalProvider.ts +0 -776
- package/src/MsalProxyProvider.interface.ts +0 -72
- package/src/__tests__/MsalConfigurator.test.ts +0 -222
- package/src/__tests__/MsalProvider.test.ts +0 -74
- package/src/__tests__/create-proxy-provider.test.ts +0 -77
- package/src/__tests__/mock/create-mock-user-from-token.test.ts +0 -46
- package/src/__tests__/mock/msal-mock.test.ts +0 -613
- package/src/__tests__/versioning/resolve-version.test.ts +0 -161
- package/src/create-client-log-callback.ts +0 -102
- package/src/create-proxy-provider.ts +0 -97
- package/src/index.ts +0 -48
- package/src/mock/MsalMockClient.ts +0 -618
- package/src/mock/MsalMockConfigurator.ts +0 -305
- package/src/mock/create-mock-token.ts +0 -92
- package/src/mock/create-mock-user-from-token.ts +0 -46
- package/src/mock/create-msal-mock-client.ts +0 -25
- package/src/mock/decode-jwt-segment.ts +0 -22
- package/src/mock/index.ts +0 -30
- package/src/mock/module.ts +0 -54
- package/src/module.ts +0 -142
- package/src/msal-config-schema.ts +0 -81
- package/src/static.ts +0 -38
- package/src/telemetry-config-schema.ts +0 -25
- package/src/types.ts +0 -16
- package/src/util/compare-origin.ts +0 -18
- package/src/util/normalize-uri.ts +0 -24
- package/src/util/redirect.ts +0 -19
- package/src/v2/IAuthClient.interface.ts +0 -114
- package/src/v2/Logger.ts +0 -204
- package/src/v2/MsalProvider.interface.ts +0 -102
- package/src/v2/create-proxy-client.ts +0 -195
- package/src/v2/create-proxy-provider.ts +0 -177
- package/src/v2/map-account-info.ts +0 -23
- package/src/v2/map-authentication-result.ts +0 -28
- package/src/v2/types.ts +0 -674
- package/src/v4/create-proxy-provider.ts +0 -75
- package/src/v4/index.ts +0 -13
- package/src/v4/types.ts +0 -727
- package/src/version.ts +0 -2
- package/src/versioning/VersionError.ts +0 -64
- package/src/versioning/index.ts +0 -29
- package/src/versioning/resolve-version.ts +0 -154
- package/src/versioning/types.ts +0 -60
- package/tsconfig.json +0 -18
- package/vitest.config.ts +0 -11
package/CHANGELOG.md
DELETED
|
@@ -1,1212 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 11.0.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- f663b46: Move the MSAL configuration schema into `MsalConfig.schema.ts` and add `MsalConfigExtension`, an extension point for variants of this module.
|
|
8
|
-
|
|
9
|
-
`MsalConfig` is now the schema's inferred type intersected with `MsalConfigExtension`, an empty interface a variant merges its own configuration into:
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
declare module '@equinor/fusion-framework-module-msal' {
|
|
13
|
-
interface MsalConfigExtension {
|
|
14
|
-
mock?: { account?: MsalMockUser };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
`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.
|
|
20
|
-
|
|
21
|
-
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.
|
|
22
|
-
- f663b46: Extract client construction from `MsalConfigurator._processConfig` into overridable seams.
|
|
23
|
-
|
|
24
|
-
`_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.
|
|
25
|
-
|
|
26
|
-
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.
|
|
27
|
-
|
|
28
|
-
This gives a supported seam for authenticating through something other than Entra ID:
|
|
29
|
-
|
|
30
|
-
```typescript
|
|
31
|
-
class MyConfigurator extends MsalConfigurator {
|
|
32
|
-
protected override async _createClient(config: MsalConfig): Promise<IMsalClient> {
|
|
33
|
-
// same fully resolved configuration the real client is built from
|
|
34
|
-
return new MyOwnMsalClient(this._createClientConfig(config));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Overriding it replaces only the client, leaving the builder, the schema validation and `MsalProvider` untouched.
|
|
40
|
-
|
|
41
|
-
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.
|
|
42
|
-
|
|
43
|
-
Also adds `getClientConfig()`, the counterpart to `setClientConfig`, so a subclass can tell "nothing was declared" apart from "declared, and here it is".
|
|
44
|
-
|
|
45
|
-
`_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.
|
|
46
|
-
- f663b46: Add a `./mock` entry point so applications can run against the auth module without credentials or
|
|
47
|
-
network access.
|
|
48
|
-
|
|
49
|
-
```ts
|
|
50
|
-
import { enableMsalMock } from '@equinor/fusion-framework-module-msal/mock';
|
|
51
|
-
|
|
52
|
-
enableMsalMock(configurator, (builder) => {
|
|
53
|
-
builder.setAccount({ name: 'Ada Lovelace' });
|
|
54
|
-
});
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Only the MSAL **client** is substituted — `MsalMockClient` resolves tokens in-process from the same
|
|
58
|
-
`MsalClientConfig` the real `MsalClient` takes, built through the `_createClient` seam, so
|
|
59
|
-
`MsalProvider`, schema validation and the whole start-up path run exactly as they do in production.
|
|
60
|
-
Tokens are structurally valid, unsigned JWTs, identical between runs, and are rejected by any real
|
|
61
|
-
service.
|
|
62
|
-
|
|
63
|
-
`MsalMockConfigurator.setAccount(user | null | callback)` declares the signed-in user on the
|
|
64
|
-
builder instead of baking it into a client: `null` starts signed out and forgets the identity,
|
|
65
|
-
`{ signedOut: true }` starts signed out but keeps it for a later `login()` to resolve. The
|
|
66
|
-
declaration is applied to whichever client the module ends up authenticating through — including a
|
|
67
|
-
host framework's client when this module is hoisted into a portal — so pairing
|
|
68
|
-
`{ signedOut: true }` with `setRequiresAuth(true)` exercises the real automatic login.
|
|
69
|
-
|
|
70
|
-
`MsalMockConfigurator.setToken(token, skipResolve?)` returns that exact access/id token instead of
|
|
71
|
-
one generated from the account's claims, for a backend mock that validates specific claims,
|
|
72
|
-
audience or signature. By default it also signs in the account derived from the token's own claims
|
|
73
|
-
(`name`, `preferred_username`, `oid`, `tid`, `scp`) via `createMockUserFromToken`; pass
|
|
74
|
-
`skipResolve: true` to keep a separately declared account while still returning this token.
|
|
75
|
-
|
|
76
|
-
`MsalMockClient` keeps a real account cache keyed by `homeAccountId` alongside an active account,
|
|
77
|
-
matching MSAL: `getAccount(filter)` matches on `homeAccountId`/`localAccountId`/`username`/`tenantId`,
|
|
78
|
-
`getAllAccounts()` returns everything cached, sign-in/sign-out add and remove cache entries instead
|
|
79
|
-
of leaving stale ones behind, and `setActiveAccount` accepts an account that was never issued by a
|
|
80
|
-
sign-in (added to the cache), so swapping the user between tests is a single line:
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
beforeEach(() => {
|
|
84
|
-
fusion.modules.auth.client.setActiveAccount(account);
|
|
85
|
-
});
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
The same client works with the plain (non-mock) module:
|
|
89
|
-
|
|
90
|
-
```ts
|
|
91
|
-
enableMSAL(configurator, (builder) =>
|
|
92
|
-
builder.setClient(createMsalMockClient({ auth: { clientId: 'my-app' } }, { name: 'Ada Lovelace' })),
|
|
93
|
-
);
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Exports `enableMsalMock`, `msalMockModule`, `MsalMockConfigurator`, `MsalMockClient`,
|
|
97
|
-
`createMsalMockClient` and `createMockToken`. Does not change or replace `token_only` mode, which
|
|
98
|
-
remains the right choice for CI/CD scenarios needing a static token.
|
|
99
|
-
|
|
100
|
-
### Patch Changes
|
|
101
|
-
|
|
102
|
-
- f663b46: Restructure documentation so each README is an entry point rather than a manual.
|
|
103
|
-
|
|
104
|
-
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.
|
|
105
|
-
|
|
106
|
-
- **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.
|
|
107
|
-
- **service-discovery** — `docs/configuration.md`, `docs/testing.md`, `docs/session-overrides.md`, `docs/api-reference.md`.
|
|
108
|
-
- **framework** — `docs/testing-choosing-a-layer.md`, `docs/testing.md`, `docs/testing-design.md`, `docs/testing-extending.md`, `docs/testing-api.md`.
|
|
109
|
-
|
|
110
|
-
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.
|
|
111
|
-
- f663b46: Remove a stray `console.log` left in `resolveVersion`'s minor-version-mismatch warning path.
|
|
112
|
-
|
|
113
|
-
## 10.0.2
|
|
114
|
-
|
|
115
|
-
### Patch Changes
|
|
116
|
-
|
|
117
|
-
- 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.
|
|
118
|
-
- 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.
|
|
119
|
-
- 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`.
|
|
120
|
-
|
|
121
|
-
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).
|
|
122
|
-
|
|
123
|
-
## 10.0.1
|
|
124
|
-
|
|
125
|
-
### Patch Changes
|
|
126
|
-
|
|
127
|
-
- 7508555: Updated `@azure/msal-browser` from `5.10.1` to `5.17.1`. Includes multiple minor enhancements and bug fixes across MSAL browser SDK.
|
|
128
|
-
|
|
129
|
-
## 10.0.0
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- @equinor/fusion-framework-module-telemetry@7.0.0
|
|
134
|
-
|
|
135
|
-
## 9.0.0
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- @equinor/fusion-framework-module-telemetry@6.0.0
|
|
140
|
-
|
|
141
|
-
## 8.0.5
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- 730d51a: Fix silent token acquisition hanging ~10–20 s when refresh token is revoked.
|
|
146
|
-
|
|
147
|
-
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.
|
|
148
|
-
|
|
149
|
-
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.
|
|
150
|
-
|
|
151
|
-
**Configuration:**
|
|
152
|
-
|
|
153
|
-
The policy is fully configurable via `MsalConfigurator.setCacheLookupPolicy`. To restore MSAL's original waterfall (cache → refresh token → iframe):
|
|
154
|
-
|
|
155
|
-
```typescript
|
|
156
|
-
import { CacheLookupPolicy } from "@azure/msal-browser";
|
|
157
|
-
|
|
158
|
-
configurator.setCacheLookupPolicy(CacheLookupPolicy.Default);
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
Per-request `cacheLookupPolicy` on `SilentRequest` still takes precedence over the instance default.
|
|
162
|
-
|
|
163
|
-
Fixes: https://github.com/equinor/fusion-core-tasks/issues/1234
|
|
164
|
-
|
|
165
|
-
## 8.0.4
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- 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.
|
|
170
|
-
|
|
171
|
-
Fixes: https://github.com/equinor/fusion/issues/840
|
|
172
|
-
|
|
173
|
-
## 8.0.3
|
|
174
|
-
|
|
175
|
-
### Patch Changes
|
|
176
|
-
|
|
177
|
-
- 51e6e50: Internal: bump `@azure/msal-browser` from `5.4.0` to `5.8.0`.
|
|
178
|
-
|
|
179
|
-
## 8.0.2
|
|
180
|
-
|
|
181
|
-
### Patch Changes
|
|
182
|
-
|
|
183
|
-
- 02a5859: Internal: Bump `@azure/msal-browser` from 5.4.0 to 5.7.0.
|
|
184
|
-
|
|
185
|
-
## 8.0.1
|
|
186
|
-
|
|
187
|
-
### Patch Changes
|
|
188
|
-
|
|
189
|
-
- 244b995: Internal: update resolved `@azure/msal-browser` from 5.4.0 to 5.6.3.
|
|
190
|
-
|
|
191
|
-
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.
|
|
192
|
-
|
|
193
|
-
## 8.0.0
|
|
194
|
-
|
|
195
|
-
### Major Changes
|
|
196
|
-
|
|
197
|
-
- abffa53: Major version bump for Fusion Framework React 19 release.
|
|
198
|
-
|
|
199
|
-
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.
|
|
200
|
-
|
|
201
|
-
**Breaking changes:**
|
|
202
|
-
- Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
|
|
203
|
-
- React Router upgraded from v6 to v7
|
|
204
|
-
- Navigation module refactored with new history API
|
|
205
|
-
- `renderComponent` and `renderApp` now use `createRoot` API
|
|
206
|
-
|
|
207
|
-
**Migration:**
|
|
208
|
-
- Update your React version to 18.0.0 or higher before upgrading
|
|
209
|
-
- Replace `NavigationProvider.createRouter()` with `@equinor/fusion-framework-react-router`
|
|
210
|
-
- See individual package changelogs for package-specific migration steps
|
|
211
|
-
|
|
212
|
-
### Patch Changes
|
|
213
|
-
|
|
214
|
-
- abffa53: **Fix:** Skip full authentication flow when running inside MSAL's silent renewal iframe.
|
|
215
|
-
|
|
216
|
-
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.
|
|
217
|
-
|
|
218
|
-
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.
|
|
219
|
-
|
|
220
|
-
- Updated dependencies [abffa53]
|
|
221
|
-
- Updated dependencies [abffa53]
|
|
222
|
-
- @equinor/fusion-framework-module@6.0.0
|
|
223
|
-
- @equinor/fusion-framework-module-telemetry@5.0.0
|
|
224
|
-
|
|
225
|
-
## 7.3.1
|
|
226
|
-
|
|
227
|
-
### Patch Changes
|
|
228
|
-
|
|
229
|
-
- [#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.
|
|
230
|
-
|
|
231
|
-
- [#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.
|
|
232
|
-
|
|
233
|
-
- Updated dependencies [[`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
|
|
234
|
-
- @equinor/fusion-framework-module@5.0.6
|
|
235
|
-
- @equinor/fusion-framework-module-telemetry@4.6.4
|
|
236
|
-
|
|
237
|
-
## 7.3.0
|
|
238
|
-
|
|
239
|
-
### Minor Changes
|
|
240
|
-
|
|
241
|
-
- [#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`.
|
|
242
|
-
|
|
243
|
-
`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.
|
|
244
|
-
|
|
245
|
-
Closes #4137
|
|
246
|
-
|
|
247
|
-
## 7.2.2
|
|
248
|
-
|
|
249
|
-
### Patch Changes
|
|
250
|
-
|
|
251
|
-
- [`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.
|
|
252
|
-
|
|
253
|
-
## 7.2.1
|
|
254
|
-
|
|
255
|
-
### Patch Changes
|
|
256
|
-
|
|
257
|
-
- [#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.
|
|
258
|
-
|
|
259
|
-
```ts
|
|
260
|
-
// Reuse the provider's default scope logic
|
|
261
|
-
const scopes = provider.defaultScopes;
|
|
262
|
-
|
|
263
|
-
// If scopes are omitted/empty, the provider will fall back to `defaultScopes` when possible.
|
|
264
|
-
await provider.acquireToken();
|
|
265
|
-
|
|
266
|
-
// Explicitly using the same fallback
|
|
267
|
-
await provider.acquireToken({ request: { scopes } });
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
- [#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`.
|
|
271
|
-
|
|
272
|
-
```ts
|
|
273
|
-
// Calling without options is now supported; safe defaults are applied.
|
|
274
|
-
await provider.acquireToken();
|
|
275
|
-
await provider.acquireAccessToken();
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
## 7.2.0
|
|
279
|
-
|
|
280
|
-
### Minor Changes
|
|
281
|
-
|
|
282
|
-
- [#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.
|
|
283
|
-
|
|
284
|
-
## 7.1.0
|
|
285
|
-
|
|
286
|
-
### Minor Changes
|
|
287
|
-
|
|
288
|
-
- [#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
|
|
289
|
-
|
|
290
|
-
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.
|
|
291
|
-
|
|
292
|
-
**New API:**
|
|
293
|
-
- `MsalConfigurator.setAuthCode(authCode: string)` - Configure backend auth code for token exchange
|
|
294
|
-
- `IMsalClient.acquireTokenByCode(request)` - Exchange auth code for tokens (inherited from PublicClientApplication)
|
|
295
|
-
|
|
296
|
-
**How it works:**
|
|
297
|
-
1. Backend authenticates user and generates short-lived SPA auth code
|
|
298
|
-
2. Frontend calls `builder.setAuthCode(authCode)` during MSAL configuration
|
|
299
|
-
3. During `initialize()`, auth code is exchanged for tokens before `requiresAuth` check
|
|
300
|
-
4. Tokens are cached by MSAL - user is automatically signed in
|
|
301
|
-
5. Falls back to standard MSAL flows if exchange fails
|
|
302
|
-
|
|
303
|
-
**Example:**
|
|
304
|
-
|
|
305
|
-
```typescript
|
|
306
|
-
enableMSAL(configurator, (builder) => {
|
|
307
|
-
builder.setClientConfig({
|
|
308
|
-
auth: { clientId: "app-id", tenantId: "tenant-id" },
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
// Backend injects auth code as window.MSAL_AUTH_CODE during initial first page load
|
|
312
|
-
if (typeof window !== "undefined" && window.MSAL_AUTH_CODE) {
|
|
313
|
-
builder.setAuthCode(window.MSAL_AUTH_CODE);
|
|
314
|
-
delete (window as any).MSAL_AUTH_CODE; // Clear after consuming
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
builder.setRequiresAuth(true);
|
|
318
|
-
});
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
Fixes: https://github.com/equinor/fusion-core-tasks/issues/271
|
|
322
|
-
|
|
323
|
-
## 7.0.0
|
|
324
|
-
|
|
325
|
-
### Major Changes
|
|
326
|
-
|
|
327
|
-
- [#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
|
|
328
|
-
|
|
329
|
-
**Changes:**
|
|
330
|
-
- Updated MSAL browser dependency to v5.0.2
|
|
331
|
-
- Added V5 to MsalModuleVersion enum for version detection
|
|
332
|
-
- Updated version mapping logic to handle MSAL v5.x (maps to V5)
|
|
333
|
-
- Created v4 compatibility layer with frozen type snapshots from MSAL v5
|
|
334
|
-
- Fixed internal logger calls to include required correlationId parameter
|
|
335
|
-
- Added v4 export to package.json for consumers needing v4-compatible types
|
|
336
|
-
|
|
337
|
-
**Breaking changes:**
|
|
338
|
-
None - all changes are internal. Consumer API remains unchanged and fully backward compatible.
|
|
339
|
-
|
|
340
|
-
**Migration:**
|
|
341
|
-
No action required. The module automatically detects and uses MSAL v5 when available, while maintaining compatibility with existing code through version proxies.
|
|
342
|
-
|
|
343
|
-
## 6.0.5
|
|
344
|
-
|
|
345
|
-
### Patch Changes
|
|
346
|
-
|
|
347
|
-
- [#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
|
|
348
|
-
|
|
349
|
-
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.
|
|
350
|
-
|
|
351
|
-
- Updated dependencies [[`f70d66f`](https://github.com/equinor/fusion-framework/commit/f70d66f1bc826e614140adb2c6ee052f98e3b3da)]:
|
|
352
|
-
- @equinor/fusion-framework-module-telemetry@4.6.1
|
|
353
|
-
|
|
354
|
-
## 6.0.4
|
|
355
|
-
|
|
356
|
-
### Patch Changes
|
|
357
|
-
|
|
358
|
-
- [#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.
|
|
359
|
-
|
|
360
|
-
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.
|
|
361
|
-
|
|
362
|
-
Before:
|
|
363
|
-
|
|
364
|
-
```typescript
|
|
365
|
-
await provider.acquireToken({ scopes: ["User.Read"] }); // request undefined, account implicit
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
After (both forms valid, account resolved automatically):
|
|
369
|
-
|
|
370
|
-
```typescript
|
|
371
|
-
await provider.acquireToken({ scopes: ["User.Read"] });
|
|
372
|
-
await provider.acquireToken({ request: { scopes: ["User.Read"] } });
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
Internal: improves stability of legacy usage without breaking API.
|
|
376
|
-
|
|
377
|
-
## 6.0.3
|
|
378
|
-
|
|
379
|
-
### Patch Changes
|
|
380
|
-
|
|
381
|
-
- [`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`.
|
|
382
|
-
|
|
383
|
-
This change corrects internal wiring used when creating the proxy provider in the v2 implementation. No public API changes.
|
|
384
|
-
|
|
385
|
-
## 6.0.2
|
|
386
|
-
|
|
387
|
-
### Patch Changes
|
|
388
|
-
|
|
389
|
-
- [`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.
|
|
390
|
-
|
|
391
|
-
## 6.0.1
|
|
392
|
-
|
|
393
|
-
### Patch Changes
|
|
394
|
-
|
|
395
|
-
- [`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.
|
|
396
|
-
|
|
397
|
-
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.
|
|
398
|
-
|
|
399
|
-
## 6.0.0
|
|
400
|
-
|
|
401
|
-
### Major Changes
|
|
402
|
-
|
|
403
|
-
- [#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
|
|
404
|
-
|
|
405
|
-
## What Changed
|
|
406
|
-
|
|
407
|
-
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).
|
|
408
|
-
|
|
409
|
-
## Impact on Your Code
|
|
410
|
-
|
|
411
|
-
**✅ No breaking changes for existing code** - All current MSAL v2 API calls continue to work exactly as before.
|
|
412
|
-
|
|
413
|
-
**🚀 Enhanced features available** - New v4 APIs provide better performance, security, and error handling.
|
|
414
|
-
|
|
415
|
-
## What You Get
|
|
416
|
-
- **Better Security**: Latest MSAL v4 security improvements and vulnerability fixes
|
|
417
|
-
- **Improved Performance**: Faster token acquisition and caching
|
|
418
|
-
- **Enhanced Error Handling**: More robust error recovery and retry mechanisms
|
|
419
|
-
- **Future-Proof**: Access to latest Microsoft authentication features
|
|
420
|
-
|
|
421
|
-
## Migration (Optional)
|
|
422
|
-
|
|
423
|
-
**Current code works unchanged:**
|
|
424
|
-
|
|
425
|
-
```typescript
|
|
426
|
-
// Framework configuration still works exactly the same
|
|
427
|
-
const framework = await createFramework({
|
|
428
|
-
modules: [enableMSAL()],
|
|
429
|
-
});
|
|
430
|
-
|
|
431
|
-
// Provider usage remains unchanged
|
|
432
|
-
const token = await framework.modules.auth.acquireToken({
|
|
433
|
-
scopes: ["User.Read"],
|
|
434
|
-
});
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
**New v4 features available:**
|
|
438
|
-
|
|
439
|
-
```typescript
|
|
440
|
-
// Enhanced configuration with new options
|
|
441
|
-
const framework = await createFramework({
|
|
442
|
-
modules: [enableMSAL()],
|
|
443
|
-
});
|
|
444
|
-
|
|
445
|
-
// Improved token acquisition with MSAL v4 request structure
|
|
446
|
-
const token = await framework.modules.auth.acquireToken({
|
|
447
|
-
request: { scopes: ["User.Read"] },
|
|
448
|
-
behavior: "popup",
|
|
449
|
-
silent: true,
|
|
450
|
-
});
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
## Breaking Changes
|
|
454
|
-
|
|
455
|
-
None for existing consumers. This is marked as major due to internal architecture changes, but the public API remains fully compatible.
|
|
456
|
-
|
|
457
|
-
- [#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.
|
|
458
|
-
|
|
459
|
-
**BREAKING CHANGES:**
|
|
460
|
-
- `acquireAccessToken(options: AcquireTokenOptions)` → `acquireAccessToken(options: AcquireTokenOptionsLegacy)`
|
|
461
|
-
- `acquireToken(options: AcquireTokenOptions)` → `acquireToken(options: AcquireTokenOptionsLegacy)`
|
|
462
|
-
- `logout(options?: LogoutOptions): Promise<void>` → `logout(options?: LogoutOptions): Promise<boolean>`
|
|
463
|
-
- `handleRedirect(): Promise<void>` → `handleRedirect(): Promise<AuthenticationResult | null>`
|
|
464
|
-
- Added `initialize(): Promise<void>` method
|
|
465
|
-
|
|
466
|
-
**New Features:**
|
|
467
|
-
- Optional provider-level telemetry for MSAL flows (login, token acquisition, redirect handling)
|
|
468
|
-
- Emits telemetry events and measurements via injected telemetry provider when available
|
|
469
|
-
- Includes basic metadata (framework module version, clientId, tenantId) and authentication context
|
|
470
|
-
- Integrates MSAL client logging with framework telemetry system
|
|
471
|
-
|
|
472
|
-
**Migration:**
|
|
473
|
-
|
|
474
|
-
```typescript
|
|
475
|
-
// Before
|
|
476
|
-
await msalProvider.acquireAccessToken({ scopes: ["user.read"] });
|
|
477
|
-
await msalProvider.logout();
|
|
478
|
-
const result = await msalProvider.handleRedirect();
|
|
479
|
-
|
|
480
|
-
// After
|
|
481
|
-
await msalProvider.acquireAccessToken({ request: { scopes: ["user.read"] } });
|
|
482
|
-
const logoutResult = await msalProvider.logout(); // Now returns boolean
|
|
483
|
-
const result = await msalProvider.handleRedirect(); // Now returns AuthenticationResult | null
|
|
484
|
-
await msalProvider.initialize(); // New required method
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
Related to `Add Telemetry Integration to MSAL Module` [#3634](https://github.com/equinor/fusion-framework/issues/3634).
|
|
488
|
-
|
|
489
|
-
### Patch Changes
|
|
490
|
-
|
|
491
|
-
- Updated dependencies [[`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8)]:
|
|
492
|
-
- @equinor/fusion-framework-module-telemetry@4.4.0
|
|
493
|
-
|
|
494
|
-
## 5.1.2
|
|
495
|
-
|
|
496
|
-
### Patch Changes
|
|
497
|
-
|
|
498
|
-
- [#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.
|
|
499
|
-
|
|
500
|
-
- [#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.
|
|
501
|
-
|
|
502
|
-
- Updated dependencies [[`cd06a8a`](https://github.com/equinor/fusion-framework/commit/cd06a8a8de86a44edf349103fb9da6c8615a1d59)]:
|
|
503
|
-
- @equinor/fusion-framework-module@5.0.5
|
|
504
|
-
|
|
505
|
-
## 5.1.1
|
|
506
|
-
|
|
507
|
-
### Patch Changes
|
|
508
|
-
|
|
509
|
-
- [#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.
|
|
510
|
-
|
|
511
|
-
- Updated dependencies [[`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`0bc6b38`](https://github.com/equinor/fusion-framework/commit/0bc6b38e61c98a2f9dea7b55fa9983f268f860be)]:
|
|
512
|
-
- @equinor/fusion-framework-module@5.0.4
|
|
513
|
-
|
|
514
|
-
## 5.1.0
|
|
515
|
-
|
|
516
|
-
### Minor Changes
|
|
517
|
-
|
|
518
|
-
- [#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`.
|
|
519
|
-
- Added `client` property to IAuthProvider interface
|
|
520
|
-
- Replaced deprecated `defaultClient` getter with `client` getter
|
|
521
|
-
- Updated internal references to use private `#client` field
|
|
522
|
-
- Maintained backward compatibility through proxy provider with deprecation warning
|
|
523
|
-
|
|
524
|
-
- [#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.
|
|
525
|
-
|
|
526
|
-
**Changes:**
|
|
527
|
-
- Removed `create-version-message.ts` and `static.ts` utility files
|
|
528
|
-
- Modified `resolveVersion()` to collect warnings for version mismatches instead of throwing errors
|
|
529
|
-
- Simplified `VersionError` class by removing factory methods and type enum references
|
|
530
|
-
- Updated tests to reflect new warning-based behavior
|
|
531
|
-
|
|
532
|
-
**Breaking Changes:**
|
|
533
|
-
- Version resolution now returns warnings for incompatible versions instead of throwing errors
|
|
534
|
-
- This change is backward compatible as existing code will continue to work, but error handling behavior has changed
|
|
535
|
-
|
|
536
|
-
**Migration:**
|
|
537
|
-
If your code previously caught `VersionError` exceptions for version incompatibilities, you should now check the `warnings` array in the resolution result instead.
|
|
538
|
-
|
|
539
|
-
## 5.0.1
|
|
540
|
-
|
|
541
|
-
### Patch Changes
|
|
542
|
-
|
|
543
|
-
- [#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
|
|
544
|
-
|
|
545
|
-
- [#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
|
|
546
|
-
- **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
|
|
547
|
-
- **v4.1.11**: Maintenance release with general improvements
|
|
548
|
-
|
|
549
|
-
This patch update enhances schema validation performance without changing any APIs.
|
|
550
|
-
|
|
551
|
-
- Updated dependencies [[`3b614f8`](https://github.com/equinor/fusion-framework/commit/3b614f87138f5a52f8ccc50ca8c6598ef3db37d6)]:
|
|
552
|
-
- @equinor/fusion-framework-module@5.0.2
|
|
553
|
-
|
|
554
|
-
## 5.0.0
|
|
555
|
-
|
|
556
|
-
### Major Changes
|
|
557
|
-
|
|
558
|
-
- [#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
|
|
559
|
-
|
|
560
|
-
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.
|
|
561
|
-
|
|
562
|
-
Key changes in source code:
|
|
563
|
-
- Updated `AuthClientConfigSchema` and `AuthConfigSchema` for zod v4 compatibility
|
|
564
|
-
- Enhanced version schema transformation to work with zod v4
|
|
565
|
-
- Improved validation of client configuration (clientId, tenantId, redirectUri)
|
|
566
|
-
- Better type safety for provider configuration and version handling
|
|
567
|
-
|
|
568
|
-
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.
|
|
569
|
-
|
|
570
|
-
Links:
|
|
571
|
-
- [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
|
|
572
|
-
- [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
|
|
573
|
-
|
|
574
|
-
## 4.1.0
|
|
575
|
-
|
|
576
|
-
### Minor Changes
|
|
577
|
-
|
|
578
|
-
- [#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.
|
|
579
|
-
|
|
580
|
-
Fixes: #3375
|
|
581
|
-
- Refactored version checking logic into dedicated versioning module
|
|
582
|
-
- Made version checking more permissive for minor and patch versions
|
|
583
|
-
- Only major version incompatibilities will block execution
|
|
584
|
-
- Minor version differences now show warnings but allow execution to continue
|
|
585
|
-
- Patch version differences are completely ignored
|
|
586
|
-
- Added comprehensive test coverage for version resolution
|
|
587
|
-
- Improved error messages and warnings for better developer experience
|
|
588
|
-
- Maintains backward compatibility with existing configurations
|
|
589
|
-
|
|
590
|
-
## 4.0.9
|
|
591
|
-
|
|
592
|
-
### Patch Changes
|
|
593
|
-
|
|
594
|
-
- [#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.
|
|
595
|
-
- **Complete documentation rewrite** with better structure and organization
|
|
596
|
-
- **Added comprehensive API reference** with detailed interface documentation
|
|
597
|
-
- **Enhanced configuration guide** with clear required/optional settings tables
|
|
598
|
-
- **Added migration guide** for v4 breaking changes and module hoisting
|
|
599
|
-
- **Improved troubleshooting section** with common issues and solutions
|
|
600
|
-
- **Added quick start examples** with practical usage patterns
|
|
601
|
-
- **Enhanced module hoisting documentation** explaining shared authentication state
|
|
602
|
-
- **Added package description** for better npm package visibility
|
|
603
|
-
|
|
604
|
-
**Key Improvements:**
|
|
605
|
-
- Clear separation between required and optional configuration
|
|
606
|
-
- Comprehensive API reference with TypeScript interfaces
|
|
607
|
-
- Migration guidance for v4 breaking changes
|
|
608
|
-
- Better developer onboarding with quick start examples
|
|
609
|
-
- Enhanced troubleshooting with platform-specific solutions
|
|
610
|
-
|
|
611
|
-
## 4.0.8
|
|
612
|
-
|
|
613
|
-
### Patch Changes
|
|
614
|
-
|
|
615
|
-
- [#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.
|
|
616
|
-
|
|
617
|
-
- Updated dependencies [[`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253), [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253)]:
|
|
618
|
-
- @equinor/fusion-framework-module@5.0.0
|
|
619
|
-
|
|
620
|
-
## 4.0.7
|
|
621
|
-
|
|
622
|
-
### Patch Changes
|
|
623
|
-
|
|
624
|
-
- [#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
|
|
625
|
-
- Updated package.json typesVersions.
|
|
626
|
-
- Ensures backward compatibility with older node versions.
|
|
627
|
-
- Ensured consistency with workspace and repository configuration.
|
|
628
|
-
|
|
629
|
-
## 4.0.6
|
|
630
|
-
|
|
631
|
-
### Patch Changes
|
|
632
|
-
|
|
633
|
-
- Updated dependencies [[`96bb1fb`](https://github.com/equinor/fusion-framework/commit/96bb1fb744d8dc2410e99fea6ca948d2d5489428)]:
|
|
634
|
-
- @equinor/fusion-framework-module@4.4.2
|
|
635
|
-
|
|
636
|
-
## 4.0.5
|
|
637
|
-
|
|
638
|
-
### Patch Changes
|
|
639
|
-
|
|
640
|
-
- [#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
|
|
641
|
-
|
|
642
|
-
- Updated dependencies [[`e49f916`](https://github.com/equinor/fusion-framework/commit/e49f9161557202df57248d02ade4d2ef50231bdc), [`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde)]:
|
|
643
|
-
- @equinor/fusion-framework-module@4.4.1
|
|
644
|
-
|
|
645
|
-
## 4.0.4
|
|
646
|
-
|
|
647
|
-
### Patch Changes
|
|
648
|
-
|
|
649
|
-
- Updated dependencies [[`efd70a3`](https://github.com/equinor/fusion-framework/commit/efd70a34f734e0c155d3440e35ce4fa11a7abc42)]:
|
|
650
|
-
- @equinor/fusion-framework-module@4.4.0
|
|
651
|
-
|
|
652
|
-
## 4.0.3
|
|
653
|
-
|
|
654
|
-
### Patch Changes
|
|
655
|
-
|
|
656
|
-
- [#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
|
|
657
|
-
|
|
658
|
-
- Updated dependencies [[`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43)]:
|
|
659
|
-
- @equinor/fusion-framework-module@4.3.8
|
|
660
|
-
|
|
661
|
-
## 4.0.2
|
|
662
|
-
|
|
663
|
-
### Patch Changes
|
|
664
|
-
|
|
665
|
-
- [#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`
|
|
666
|
-
|
|
667
|
-
- Updated dependencies [[`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237)]:
|
|
668
|
-
- @equinor/fusion-framework-module@4.3.7
|
|
669
|
-
|
|
670
|
-
## 4.0.1
|
|
671
|
-
|
|
672
|
-
### Patch Changes
|
|
673
|
-
|
|
674
|
-
- [#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.
|
|
675
|
-
|
|
676
|
-
- [#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
|
|
677
|
-
|
|
678
|
-
- [#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.
|
|
679
|
-
|
|
680
|
-
- Updated dependencies [[`ba5d12e`](https://github.com/equinor/fusion-framework/commit/ba5d12eba0a38db412353765e997d02c1fbb478d), [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d)]:
|
|
681
|
-
- @equinor/fusion-framework-module@4.3.6
|
|
682
|
-
|
|
683
|
-
## 4.0.0
|
|
684
|
-
|
|
685
|
-
### Major Changes
|
|
686
|
-
|
|
687
|
-
- [#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.
|
|
688
|
-
|
|
689
|
-
**Highlights:**
|
|
690
|
-
- Versioning module, config and provider.
|
|
691
|
-
- Interfaces for MSAL versions
|
|
692
|
-
- Proxy provider instances for sub modules.
|
|
693
|
-
- Transpile provider implementation to requested version.
|
|
694
|
-
- Configurator using `BaseConfigBuilder` (aligned with other modules)
|
|
695
|
-
|
|
696
|
-
**BREAKING CHANGES:**
|
|
697
|
-
- `configureMsal` has changed parameter signature to `configureMsal(msalConfigurator: MsalConfigurator): void`
|
|
698
|
-
- Added `enableMsal` with parameter signature to `enableMsal(configurator: IModulesConfigurator, configureMsal: (msalConfigurator: MsalConfigurator) => void): void`
|
|
699
|
-
|
|
700
|
-
**How to migrate:**
|
|
701
|
-
|
|
702
|
-
> **As an application no changes are required, the module will work as before.**
|
|
703
|
-
|
|
704
|
-
```diff
|
|
705
|
-
import { configureMsal } from '@equinor/fusion-framework-module-msal';
|
|
706
|
-
|
|
707
|
-
- configureMsal(
|
|
708
|
-
- {
|
|
709
|
-
- tenantId: '{TENANT_ID}',
|
|
710
|
-
- clientId: '{CLIENT_ID}',
|
|
711
|
-
- redirectUri: '/authentication/login-callback',
|
|
712
|
-
- },
|
|
713
|
-
- { requiresAuth: true }
|
|
714
|
-
- );
|
|
715
|
-
+ enableMsal(configurator, (msalConfigurator) => {
|
|
716
|
-
+ msalConfigurator.setClientConfig({
|
|
717
|
-
+ tenantId: '{TENANT_ID}',
|
|
718
|
-
+ clientId: '{CLIENT_ID}',
|
|
719
|
-
+ redirectUri: '/authentication/login-callback',
|
|
720
|
-
+ });
|
|
721
|
-
+ msalConfigurator.requiresAuth(true);
|
|
722
|
-
+})
|
|
723
|
-
```
|
|
724
|
-
|
|
725
|
-
## 3.1.5
|
|
726
|
-
|
|
727
|
-
### Patch Changes
|
|
728
|
-
|
|
729
|
-
- Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]:
|
|
730
|
-
- @equinor/fusion-framework-module@4.3.5
|
|
731
|
-
|
|
732
|
-
## 3.1.4
|
|
733
|
-
|
|
734
|
-
### Patch Changes
|
|
735
|
-
|
|
736
|
-
- Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]:
|
|
737
|
-
- @equinor/fusion-framework-module@4.3.4
|
|
738
|
-
|
|
739
|
-
## 3.1.3
|
|
740
|
-
|
|
741
|
-
### Patch Changes
|
|
742
|
-
|
|
743
|
-
- Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]:
|
|
744
|
-
- @equinor/fusion-framework-module@4.3.3
|
|
745
|
-
|
|
746
|
-
## 3.1.2
|
|
747
|
-
|
|
748
|
-
### Patch Changes
|
|
749
|
-
|
|
750
|
-
- [#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
|
|
751
|
-
|
|
752
|
-
- [#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.
|
|
753
|
-
|
|
754
|
-
Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
|
|
755
|
-
1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
|
|
756
|
-
2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
|
|
757
|
-
3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
|
|
758
|
-
|
|
759
|
-
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.
|
|
760
|
-
|
|
761
|
-
Before:
|
|
762
|
-
|
|
763
|
-
```json
|
|
764
|
-
{
|
|
765
|
-
"compilerOptions": {
|
|
766
|
-
"module": "ES2022",
|
|
767
|
-
"target": "ES6",
|
|
768
|
-
"incremental": true,
|
|
769
|
-
"removeComments": true,
|
|
770
|
-
"preserveConstEnums": true,
|
|
771
|
-
"sourceMap": true,
|
|
772
|
-
"moduleResolution": "node"
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
```
|
|
776
|
-
|
|
777
|
-
After:
|
|
778
|
-
|
|
779
|
-
```json
|
|
780
|
-
{
|
|
781
|
-
"compilerOptions": {
|
|
782
|
-
"module": "ES2022",
|
|
783
|
-
"target": "ES6",
|
|
784
|
-
"incremental": true,
|
|
785
|
-
"preserveConstEnums": true,
|
|
786
|
-
"sourceMap": true,
|
|
787
|
-
"moduleResolution": "node"
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
```
|
|
791
|
-
|
|
792
|
-
This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework.
|
|
793
|
-
|
|
794
|
-
- 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)]:
|
|
795
|
-
- @equinor/fusion-framework-module@4.3.2
|
|
796
|
-
|
|
797
|
-
## 3.1.1
|
|
798
|
-
|
|
799
|
-
### Patch Changes
|
|
800
|
-
|
|
801
|
-
- 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)]:
|
|
802
|
-
- @equinor/fusion-framework-module@4.3.1
|
|
803
|
-
|
|
804
|
-
## 3.1.0
|
|
805
|
-
|
|
806
|
-
### Minor Changes
|
|
807
|
-
|
|
808
|
-
- [#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
|
|
809
|
-
|
|
810
|
-
### Patch Changes
|
|
811
|
-
|
|
812
|
-
- Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]:
|
|
813
|
-
- @equinor/fusion-framework-module@4.3.0
|
|
814
|
-
|
|
815
|
-
## 3.0.10
|
|
816
|
-
|
|
817
|
-
### Patch Changes
|
|
818
|
-
|
|
819
|
-
- Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]:
|
|
820
|
-
- @equinor/fusion-framework-module@4.2.7
|
|
821
|
-
|
|
822
|
-
## 3.0.9
|
|
823
|
-
|
|
824
|
-
### Patch Changes
|
|
825
|
-
|
|
826
|
-
- [#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`
|
|
827
|
-
|
|
828
|
-
## 3.0.8
|
|
829
|
-
|
|
830
|
-
### Patch Changes
|
|
831
|
-
|
|
832
|
-
- [#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
|
|
833
|
-
|
|
834
|
-
- Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
|
|
835
|
-
- @equinor/fusion-framework-module@4.2.6
|
|
836
|
-
|
|
837
|
-
## 3.0.7
|
|
838
|
-
|
|
839
|
-
### Patch Changes
|
|
840
|
-
|
|
841
|
-
- [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot
|
|
842
|
-
|
|
843
|
-
- Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]:
|
|
844
|
-
- @equinor/fusion-framework-module@4.2.5
|
|
845
|
-
|
|
846
|
-
## 3.0.6
|
|
847
|
-
|
|
848
|
-
### Patch Changes
|
|
849
|
-
|
|
850
|
-
- Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]:
|
|
851
|
-
- @equinor/fusion-framework-module@4.2.4
|
|
852
|
-
|
|
853
|
-
## 3.0.5
|
|
854
|
-
|
|
855
|
-
### Patch Changes
|
|
856
|
-
|
|
857
|
-
- [#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
|
|
858
|
-
|
|
859
|
-
conflicts of `@types/react` made random outcomes when using `yarn`
|
|
860
|
-
|
|
861
|
-
this change should not affect consumer of the packages, but might conflict dependent on local package manager.
|
|
862
|
-
|
|
863
|
-
- Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
|
|
864
|
-
- @equinor/fusion-framework-module@4.2.3
|
|
865
|
-
|
|
866
|
-
## 3.0.4
|
|
867
|
-
|
|
868
|
-
### Patch Changes
|
|
869
|
-
|
|
870
|
-
- [#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
|
|
871
|
-
|
|
872
|
-
- Updated dependencies [[`5a160d88`](https://github.com/equinor/fusion-framework/commit/5a160d88981ddfe861d391cfefe10f54dda3d352)]:
|
|
873
|
-
- @equinor/fusion-framework-module@4.2.1
|
|
874
|
-
|
|
875
|
-
## 3.0.3
|
|
876
|
-
|
|
877
|
-
### Patch Changes
|
|
878
|
-
|
|
879
|
-
- [#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**
|
|
880
|
-
- align all versions of typescript
|
|
881
|
-
- update types to build
|
|
882
|
-
- 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
|
|
883
|
-
|
|
884
|
-
- 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)]:
|
|
885
|
-
- @equinor/fusion-framework-module@4.2.0
|
|
886
|
-
|
|
887
|
-
All notable changes to this project will be documented in this file.
|
|
888
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
889
|
-
|
|
890
|
-
## 3.0.2 (2023-05-23)
|
|
891
|
-
|
|
892
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
893
|
-
|
|
894
|
-
## 3.0.1 (2023-05-05)
|
|
895
|
-
|
|
896
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
897
|
-
|
|
898
|
-
## 3.0.0 (2023-04-16)
|
|
899
|
-
|
|
900
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
901
|
-
|
|
902
|
-
## [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)
|
|
903
|
-
|
|
904
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
905
|
-
|
|
906
|
-
## [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)
|
|
907
|
-
|
|
908
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
909
|
-
|
|
910
|
-
## [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)
|
|
911
|
-
|
|
912
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
913
|
-
|
|
914
|
-
## 1.0.23 (2023-01-26)
|
|
915
|
-
|
|
916
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
917
|
-
|
|
918
|
-
## 1.0.22 (2023-01-17)
|
|
919
|
-
|
|
920
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
921
|
-
|
|
922
|
-
## 1.0.21 (2022-12-01)
|
|
923
|
-
|
|
924
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
925
|
-
|
|
926
|
-
## 1.0.20 (2022-12-01)
|
|
927
|
-
|
|
928
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
929
|
-
|
|
930
|
-
## 1.0.19 (2022-11-11)
|
|
931
|
-
|
|
932
|
-
### Bug Fixes
|
|
933
|
-
|
|
934
|
-
- **module-msal:** await redirect handling ([92686d2](https://github.com/equinor/fusion-framework/commit/92686d2ae054d7f507093b839edb2fe5775c7449))
|
|
935
|
-
|
|
936
|
-
## 1.0.18 (2022-11-11)
|
|
937
|
-
|
|
938
|
-
### Bug Fixes
|
|
939
|
-
|
|
940
|
-
- **module-auth:** make http module await auth ([18a0ed9](https://github.com/equinor/fusion-framework/commit/18a0ed947e128bf1cdc86aa45d31e73c1f8c4bbb))
|
|
941
|
-
|
|
942
|
-
## 1.0.17 (2022-11-03)
|
|
943
|
-
|
|
944
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
945
|
-
|
|
946
|
-
## 1.0.16 (2022-11-02)
|
|
947
|
-
|
|
948
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
949
|
-
|
|
950
|
-
## 1.0.15 (2022-11-01)
|
|
951
|
-
|
|
952
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
953
|
-
|
|
954
|
-
## 1.0.14 (2022-10-27)
|
|
955
|
-
|
|
956
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
957
|
-
|
|
958
|
-
## 1.0.13 (2022-10-21)
|
|
959
|
-
|
|
960
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
961
|
-
|
|
962
|
-
## [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)
|
|
963
|
-
|
|
964
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
965
|
-
|
|
966
|
-
## 1.0.11 (2022-10-03)
|
|
967
|
-
|
|
968
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
969
|
-
|
|
970
|
-
## 1.0.10 (2022-10-03)
|
|
971
|
-
|
|
972
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
973
|
-
|
|
974
|
-
## [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)
|
|
975
|
-
|
|
976
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
977
|
-
|
|
978
|
-
## 1.0.8 (2022-09-27)
|
|
979
|
-
|
|
980
|
-
### Bug Fixes
|
|
981
|
-
|
|
982
|
-
- update registering of configuration ([20942ce](https://github.com/equinor/fusion-framework/commit/20942ce1c7a853ea3b55c031a242646e378db8c9))
|
|
983
|
-
|
|
984
|
-
## 1.0.7 (2022-09-20)
|
|
985
|
-
|
|
986
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
987
|
-
|
|
988
|
-
## [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)
|
|
989
|
-
|
|
990
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
991
|
-
|
|
992
|
-
## [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)
|
|
993
|
-
|
|
994
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
995
|
-
|
|
996
|
-
## [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)
|
|
997
|
-
|
|
998
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
999
|
-
|
|
1000
|
-
## [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)
|
|
1001
|
-
|
|
1002
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1003
|
-
|
|
1004
|
-
## [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)
|
|
1005
|
-
|
|
1006
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1007
|
-
|
|
1008
|
-
## [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)
|
|
1009
|
-
|
|
1010
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1011
|
-
|
|
1012
|
-
## [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)
|
|
1013
|
-
|
|
1014
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1015
|
-
|
|
1016
|
-
## [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)
|
|
1017
|
-
|
|
1018
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1019
|
-
|
|
1020
|
-
## 1.0.0 (2022-09-12)
|
|
1021
|
-
|
|
1022
|
-
### Features
|
|
1023
|
-
|
|
1024
|
-
- **module-msal:** expose simple config ([596c4c2](https://github.com/equinor/fusion-framework/commit/596c4c222a75bfef67e2e129792f6132cbceb47c))
|
|
1025
|
-
|
|
1026
|
-
### Bug Fixes
|
|
1027
|
-
|
|
1028
|
-
- **module-msal:** set default logging to errors ([1b53be8](https://github.com/equinor/fusion-framework/commit/1b53be816600c838257f0b3c6f3a338466938a3f))
|
|
1029
|
-
|
|
1030
|
-
## [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)
|
|
1031
|
-
|
|
1032
|
-
### Features
|
|
1033
|
-
|
|
1034
|
-
- **module-msal:** expose simple config ([596c4c2](https://github.com/equinor/fusion-framework/commit/596c4c222a75bfef67e2e129792f6132cbceb47c))
|
|
1035
|
-
|
|
1036
|
-
### Bug Fixes
|
|
1037
|
-
|
|
1038
|
-
- **module-msal:** set default logging to errors ([1b53be8](https://github.com/equinor/fusion-framework/commit/1b53be816600c838257f0b3c6f3a338466938a3f))
|
|
1039
|
-
|
|
1040
|
-
## 0.4.2 (2022-09-05)
|
|
1041
|
-
|
|
1042
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1043
|
-
|
|
1044
|
-
## 0.4.1 (2022-09-05)
|
|
1045
|
-
|
|
1046
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1047
|
-
|
|
1048
|
-
## 0.4.0 (2022-08-29)
|
|
1049
|
-
|
|
1050
|
-
### ⚠ BREAKING CHANGES
|
|
1051
|
-
|
|
1052
|
-
- rename fetch
|
|
1053
|
-
|
|
1054
|
-
- fix(module-service-discovery): update http client consumer
|
|
1055
|
-
|
|
1056
|
-
- build: update allowed branches
|
|
1057
|
-
|
|
1058
|
-
- build: add conventional commit
|
|
1059
|
-
|
|
1060
|
-
- build: use conventionalcommits
|
|
1061
|
-
|
|
1062
|
-
- build(module-http): push major
|
|
1063
|
-
|
|
1064
|
-
- build: update deps
|
|
1065
|
-
|
|
1066
|
-
### Features
|
|
1067
|
-
|
|
1068
|
-
- rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
|
|
1069
|
-
|
|
1070
|
-
## 0.3.2 (2022-08-19)
|
|
1071
|
-
|
|
1072
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1073
|
-
|
|
1074
|
-
## [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)
|
|
1075
|
-
|
|
1076
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1077
|
-
|
|
1078
|
-
# [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)
|
|
1079
|
-
|
|
1080
|
-
- feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9))
|
|
1081
|
-
|
|
1082
|
-
### BREAKING CHANGES
|
|
1083
|
-
|
|
1084
|
-
- module.initialize now has object as arg
|
|
1085
|
-
|
|
1086
|
-
# 0.2.0 (2022-08-08)
|
|
1087
|
-
|
|
1088
|
-
### Features
|
|
1089
|
-
|
|
1090
|
-
- **module-service-discovery:** resolve service to config ([3fa088d](https://github.com/equinor/fusion-framework/commit/3fa088d2ced8136447df6949928f1af9fc83407a))
|
|
1091
|
-
|
|
1092
|
-
## [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)
|
|
1093
|
-
|
|
1094
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1095
|
-
|
|
1096
|
-
## [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)
|
|
1097
|
-
|
|
1098
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1099
|
-
|
|
1100
|
-
## 0.1.22 (2022-08-01)
|
|
1101
|
-
|
|
1102
|
-
### Bug Fixes
|
|
1103
|
-
|
|
1104
|
-
- change typo of exports ([b049503](https://github.com/equinor/fusion-framework/commit/b049503511fb1b37b920b00aed1468ed8385a67e))
|
|
1105
|
-
|
|
1106
|
-
## [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)
|
|
1107
|
-
|
|
1108
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1109
|
-
|
|
1110
|
-
## [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)
|
|
1111
|
-
|
|
1112
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1113
|
-
|
|
1114
|
-
## [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)
|
|
1115
|
-
|
|
1116
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1117
|
-
|
|
1118
|
-
## [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)
|
|
1119
|
-
|
|
1120
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1121
|
-
|
|
1122
|
-
## [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)
|
|
1123
|
-
|
|
1124
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1125
|
-
|
|
1126
|
-
## [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)
|
|
1127
|
-
|
|
1128
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1129
|
-
|
|
1130
|
-
## [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)
|
|
1131
|
-
|
|
1132
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1133
|
-
|
|
1134
|
-
## 0.1.14 (2022-06-28)
|
|
1135
|
-
|
|
1136
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1137
|
-
|
|
1138
|
-
## 0.1.13 (2022-06-14)
|
|
1139
|
-
|
|
1140
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1141
|
-
|
|
1142
|
-
## 0.1.12 (2022-06-13)
|
|
1143
|
-
|
|
1144
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1145
|
-
|
|
1146
|
-
## 0.1.11 (2022-06-10)
|
|
1147
|
-
|
|
1148
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1149
|
-
|
|
1150
|
-
## 0.1.10 (2022-05-31)
|
|
1151
|
-
|
|
1152
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1153
|
-
|
|
1154
|
-
## [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)
|
|
1155
|
-
|
|
1156
|
-
### Bug Fixes
|
|
1157
|
-
|
|
1158
|
-
- **module-msal:** prevent redirect loop ([2d0f57c](https://github.com/equinor/fusion-framework/commit/2d0f57c737282f485099ff2562b4c4c956f8e30a))
|
|
1159
|
-
|
|
1160
|
-
## 0.1.8 (2022-03-25)
|
|
1161
|
-
|
|
1162
|
-
### Bug Fixes
|
|
1163
|
-
|
|
1164
|
-
- **modules-msal:** change regex group selector ([ebaa118](https://github.com/equinor/fusion-framework/commit/ebaa11849303e68f67544f8db57727673f821744))
|
|
1165
|
-
|
|
1166
|
-
## [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)
|
|
1167
|
-
|
|
1168
|
-
### Bug Fixes
|
|
1169
|
-
|
|
1170
|
-
- **module-msal:** await auth ([#33](https://github.com/equinor/fusion-framework/issues/33)) ([d4c3dbd](https://github.com/equinor/fusion-framework/commit/d4c3dbd0afc6a3adebe23853ccd363d1bf37f131))
|
|
1171
|
-
|
|
1172
|
-
## [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)
|
|
1173
|
-
|
|
1174
|
-
### Bug Fixes
|
|
1175
|
-
|
|
1176
|
-
- deps ([2f2938b](https://github.com/equinor/fusion-framework/commit/2f2938b554610a068ed451623dd13480cae27302))
|
|
1177
|
-
|
|
1178
|
-
## [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)
|
|
1179
|
-
|
|
1180
|
-
### Bug Fixes
|
|
1181
|
-
|
|
1182
|
-
- add missing deps ([d689a02](https://github.com/equinor/fusion-framework/commit/d689a025613401eadf693bdd52694ba462dcfea3))
|
|
1183
|
-
|
|
1184
|
-
## [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)
|
|
1185
|
-
|
|
1186
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1187
|
-
|
|
1188
|
-
## [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)
|
|
1189
|
-
|
|
1190
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1191
|
-
|
|
1192
|
-
## 0.1.2 (2022-02-23)
|
|
1193
|
-
|
|
1194
|
-
### Bug Fixes
|
|
1195
|
-
|
|
1196
|
-
- **module-msal:** auth client id check ([#27](https://github.com/equinor/fusion-framework/issues/27)) ([907460e](https://github.com/equinor/fusion-framework/commit/907460e3e63e777f6766dcc044cad7078d7ab747))
|
|
1197
|
-
|
|
1198
|
-
## 0.1.1 (2022-02-09)
|
|
1199
|
-
|
|
1200
|
-
**Note:** Version bump only for package @equinor/fusion-framework-module-msal
|
|
1201
|
-
|
|
1202
|
-
# 0.1.0 (2022-02-07)
|
|
1203
|
-
|
|
1204
|
-
### Bug Fixes
|
|
1205
|
-
|
|
1206
|
-
- **module-msal:** invert bool check of scopes ([3d9fb50](https://github.com/equinor/fusion-framework/commit/3d9fb50e4b3d408cab4f6e68c44ca9045e8ce40d))
|
|
1207
|
-
|
|
1208
|
-
### Features
|
|
1209
|
-
|
|
1210
|
-
- add client for msal ([41e6b13](https://github.com/equinor/fusion-framework/commit/41e6b1378f41b1e03023186d480460a0189878c6))
|
|
1211
|
-
- **module-msal:** change behavoir to redirect ([9f2193f](https://github.com/equinor/fusion-framework/commit/9f2193f21a7056cb6b42513845fdc19910522628))
|
|
1212
|
-
- **module-msal:** expose account ([f4b27b3](https://github.com/equinor/fusion-framework/commit/f4b27b3db7cf5133afbaf366ba953561dd23c113))
|