From 0d1a517625e33177968a9b76e8a9b9914c4fd40b Mon Sep 17 00:00:00 2001 From: "odinr[bot]" Date: Fri, 1 Nov 2024 12:49:26 +0000 Subject: [PATCH] Version Packages --- .changeset/lazy-games-clap.md | 5 ----- .changeset/little-gifts-chew.md | 10 ---------- packages/react/legacy-interopt/CHANGELOG.md | 13 +++++++++++++ packages/react/legacy-interopt/package.json | 2 +- 4 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 .changeset/lazy-games-clap.md delete mode 100644 .changeset/little-gifts-chew.md diff --git a/.changeset/lazy-games-clap.md b/.changeset/lazy-games-clap.md deleted file mode 100644 index 93197f6c8..000000000 --- a/.changeset/lazy-games-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@equinor/fusion-framework-legacy-interopt': patch ---- - -Fixed `LegacyAuthContainer.registerAppAsync` to not create duplicate AuthApps when additional resources are added to the app. diff --git a/.changeset/little-gifts-chew.md b/.changeset/little-gifts-chew.md deleted file mode 100644 index 6d7e42efd..000000000 --- a/.changeset/little-gifts-chew.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@equinor/fusion-framework-legacy-interopt': patch ---- - -Fixed `createServiceResolver` 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). diff --git a/packages/react/legacy-interopt/CHANGELOG.md b/packages/react/legacy-interopt/CHANGELOG.md index a59fa0665..80c514cba 100644 --- a/packages/react/legacy-interopt/CHANGELOG.md +++ b/packages/react/legacy-interopt/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 17.0.1 + +### Patch Changes + +- [#2524](https://github.com/equinor/fusion-framework/pull/2524) [`1941b76`](https://github.com/equinor/fusion-framework/commit/1941b76bdad85af3fe2ccfa9e46180e14940d2a1) Thanks [@odinr](https://github.com/odinr)! - Fixed `LegacyAuthContainer.registerAppAsync` to not create duplicate AuthApps when additional resources are added to the app. + +- [#2524](https://github.com/equinor/fusion-framework/pull/2524) [`1941b76`](https://github.com/equinor/fusion-framework/commit/1941b76bdad85af3fe2ccfa9e46180e14940d2a1) Thanks [@odinr](https://github.com/odinr)! - Fixed `createServiceResolver` 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). + ## 17.0.0 ### Patch Changes diff --git a/packages/react/legacy-interopt/package.json b/packages/react/legacy-interopt/package.json index 52366f05d..5858a24d6 100644 --- a/packages/react/legacy-interopt/package.json +++ b/packages/react/legacy-interopt/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/fusion-framework-legacy-interopt", - "version": "17.0.0", + "version": "17.0.1", "description": "Library for interopt legacy fusion applications", "main": "dist/esm/index.js", "exports": {