@restorecommerce/facade 1.13.23 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/debug-run.ts +1 -2
- package/dist/modules/identity/index.d.ts.map +1 -1
- package/dist/modules/identity/index.js +0 -11
- package/dist/modules/identity/index.js.map +1 -1
- package/dist/modules/identity/interfaces.d.ts +0 -1
- package/dist/modules/identity/interfaces.d.ts.map +1 -1
- package/dist/modules/identity/interfaces.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/modules/identity/api-key/api-key.d.ts +0 -12
- package/dist/modules/identity/api-key/api-key.d.ts.map +0 -1
- package/dist/modules/identity/api-key/api-key.js +0 -136
- package/dist/modules/identity/api-key/api-key.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,30 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.13.24...@restorecommerce/facade@2.0.0) (2024-06-27)
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* remove apiKey and sync mechanism as seed accounts are used for importing data ([02733fa](https://github.com/restorecommerce/libs/commit/02733faf070a072039f2ee59e78a6bb134931363))
|
12
|
+
|
13
|
+
|
14
|
+
### BREAKING CHANGES
|
15
|
+
|
16
|
+
* seed accounts are used for data import
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [1.13.24](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.13.23...@restorecommerce/facade@1.13.24) (2024-06-26)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @restorecommerce/facade
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
6
30
|
## [1.13.23](https://github.com/restorecommerce/libs/compare/@restorecommerce/facade@1.13.22...@restorecommerce/facade@1.13.23) (2024-06-26)
|
7
31
|
|
8
32
|
**Note:** Version bump only for package @restorecommerce/facade
|
package/debug-run.ts
CHANGED
@@ -52,8 +52,7 @@ const createTestFacade = () => {
|
|
52
52
|
],
|
53
53
|
jwks,
|
54
54
|
},
|
55
|
-
oauth: true
|
56
|
-
apiKey: 'api_key'
|
55
|
+
oauth: true
|
57
56
|
}))
|
58
57
|
.useModule(resourceModule({config: serviceConfig.get('master_data')}))
|
59
58
|
.useModule(accessControlModule({config: serviceConfig.get('access_control')}))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/identity/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/identity/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,iBAAiB,CAAC;AAK3E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvF,eAAO,MAAM,cAAc,8GAqCzB,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { createFacadeModuleFactory } from '../../utils.js';
|
2
2
|
import { FederatedResourceSchema } from './gql/federation.js';
|
3
3
|
import { createOIDC } from './oidc/index.js';
|
4
|
-
import { setupApiKey } from './api-key/api-key.js';
|
5
4
|
import { IdentitySrvGrpcClient } from './grpc/index.js';
|
6
5
|
import { createOAuth } from './oauth/oauth.js';
|
7
6
|
import mount from 'koa-mount';
|
@@ -10,16 +9,6 @@ export const identityModule = createFacadeModuleFactory('identity', (facade, con
|
|
10
9
|
...config.config.client,
|
11
10
|
logger: facade.logger,
|
12
11
|
});
|
13
|
-
if (!!config.apiKey) {
|
14
|
-
const apiKey = setupApiKey({
|
15
|
-
logger: facade.logger,
|
16
|
-
apiKey: config.apiKey
|
17
|
-
});
|
18
|
-
if (apiKey) {
|
19
|
-
facade.koa.use(apiKey.router.routes());
|
20
|
-
facade.koa.use(apiKey.app);
|
21
|
-
}
|
22
|
-
}
|
23
12
|
if (config.oidc) {
|
24
13
|
const { provider, router } = createOIDC({
|
25
14
|
identitySrvClient,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/identity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/identity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,MAAM,WAAW,CAAC;AAK9B,MAAM,CAAC,MAAM,cAAc,GAAG,yBAAyB,CAAiC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;IACrH,MAAM,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;QAChF,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM;QACvB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CAAC;IAEH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AC;AAE3D,eAAO,MAAM,SAAS,aAAa,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/modules/identity/interfaces.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/modules/identity/interfaces.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC"}
|