Releases: equinor/fusion-framework
@equinor/[email protected]
Patch Changes
- Updated dependencies [
248ee1f
]:- @equinor/[email protected]
- @equinor/[email protected]
- @equinor/[email protected]
@equinor/[email protected]
@equinor/[email protected]
Patch Changes
- Updated dependencies [
248ee1f
]:- @equinor/[email protected]
- @equinor/[email protected]
- @equinor/[email protected]
@equinor/[email protected]
Patch Changes
- Updated dependencies [
248ee1f
]:- @equinor/[email protected]
@equinor/[email protected]
Patch Changes
-
#2528
ecc6bbb
Thanks @eikeland! - #### Updated Files:packages/react/legacy-interopt/src/create-fusion-context.ts
packages/react/legacy-interopt/src/create-service-resolver.ts
Changes:
-
create-fusion-context.ts
- Added a call to
authContainer.handleWindowCallbackAsync()
before initializingTelemetryLogger
.
- Added a call to
-
create-service-resolver.ts
- Changed the third parameter of authContainer.registerAppAsync from false to true.
@equinor/[email protected]
@equinor/[email protected]
Patch Changes
-
#2524
1941b76
Thanks @odinr! - FixedLegacyAuthContainer.registerAppAsync
to not create duplicate AuthApps when additional resources are added to the app. -
#2524
1941b76
Thanks @odinr! - FixedcreateServiceResolver
to extract app client id from each services.
Previously we assumed that all services registered to the legacy auth container would use the same scope as all other services. This is not the case, as each service can have its own scope. This change allows us to extract the client id from the service definition, which is then used to create the service resolver.Resources are indexed by the client id, so when acquiring a resource, the legacy auth container will use the client id to generate an auth token. This token is then used to authenticate the request to the resource.
NOTE: This will and should be deprecated in the future! This "bug" was discovered while an application used a mixed of legacy and new Framework, which caused the application to fail to authenticate requests to the resource (wrong audience).
@equinor/[email protected]
Patch Changes
-
#2521
65f03fa
Thanks @eikeland! - ### Adds CHANGELOG.md to app zip package- Removed individual file additions for package.json, LICENSE.md, and README.md.
- Added a loop to handle multiple files (package.json, LICENSE.md, README.md, CHANGELOG.md) in a more concise manner.
- Updated the spinner messages accordingly.
@equinor/[email protected]
@equinor/[email protected]
Minor Changes
-
#2494
e11ad64
Thanks @odinr! - Adjusted module to the new app service API.[!WARNING]
This will introduce breaking changes to the configuration ofAppConfigurator.client
.Added
- Introduced
AppClient
class to handle application manifest and configuration queries. - Added
zod
to validate the application manifest.
Changed
- Updated
AppModuleProvider
to useAppClient
for fetching application manifests and configurations. - Modified
AppConfigurator
to utilizeAppClient
for client configuration. - Updated
useApps
hook with new input parameter forfilterByCurrentUser
infusion-framework-react
.
Migration
before:
configurator.setClient({ getAppManifest: { client: { fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`), }, key: ({ appKey }) => appKey, }, getAppManifests: { client: { fn: () => httpClient.json$<ApiApp[]>(`/apps`), }, key: () => `all-apps`, }, getAppConfig: { client: { fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`), }, key: ({ appKey }) => appKey, }, });
after:
import { AppClient } from `@equinor/fusion-framework-module-app`; configurator.setClient(new AppClient());
custom client implementation:
import { AppClient } from `@equinor/fusion-framework-module-app`; class CustomAppClient implements IAppClient { ... } configurator.setClient(new CustomAppClient());
- Introduced