@backstage/plugin-catalog-backend-module-ldap 0.11.6 → 0.11.7
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/dist/index.d.ts +2 -3
- package/dist/module.cjs.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-ldap
|
|
2
2
|
|
|
3
|
+
## 0.11.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3507fcd: Just some more circular dep cleanup
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/config@1.3.3
|
|
10
|
+
- @backstage/catalog-model@1.7.5
|
|
11
|
+
- @backstage/backend-plugin-api@1.4.1
|
|
12
|
+
- @backstage/plugin-catalog-common@1.1.5
|
|
13
|
+
- @backstage/plugin-catalog-node@1.17.2
|
|
14
|
+
|
|
15
|
+
## 0.11.7-next.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 3507fcd: Just some more circular dep cleanup
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/config@1.3.3-next.0
|
|
22
|
+
- @backstage/catalog-model@1.7.5-next.0
|
|
23
|
+
- @backstage/backend-plugin-api@1.4.1-next.0
|
|
24
|
+
- @backstage/plugin-catalog-common@1.1.5-next.0
|
|
25
|
+
- @backstage/plugin-catalog-node@1.17.2-next.0
|
|
26
|
+
|
|
3
27
|
## 0.11.6
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { JsonValue } from '@backstage/types';
|
|
|
6
6
|
import { SearchEntry, SearchOptions, Client } from 'ldapjs';
|
|
7
7
|
import { UserEntity, GroupEntity } from '@backstage/catalog-model';
|
|
8
8
|
import { LocationSpec } from '@backstage/plugin-catalog-common';
|
|
9
|
-
import { UserTransformer as UserTransformer$1, GroupTransformer as GroupTransformer$1 } from '@backstage/plugin-catalog-backend-module-ldap';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* An LDAP Vendor handles unique nuances between different vendors.
|
|
@@ -477,12 +476,12 @@ interface LdapOrgEntityProviderTransformsExtensionPoint {
|
|
|
477
476
|
* Set the function that transforms a user entry in LDAP to an entity.
|
|
478
477
|
* Optionally, you can pass separate transformers per provider ID.
|
|
479
478
|
*/
|
|
480
|
-
setUserTransformer(transformer: UserTransformer
|
|
479
|
+
setUserTransformer(transformer: UserTransformer | Record<string, UserTransformer>): void;
|
|
481
480
|
/**
|
|
482
481
|
* Set the function that transforms a group entry in LDAP to an entity.
|
|
483
482
|
* Optionally, you can pass separate transformers per provider ID.
|
|
484
483
|
*/
|
|
485
|
-
setGroupTransformer(transformer: GroupTransformer
|
|
484
|
+
setGroupTransformer(transformer: GroupTransformer | Record<string, GroupTransformer>): void;
|
|
486
485
|
}
|
|
487
486
|
/**
|
|
488
487
|
* Extension point used to customize the transforms used by the module.
|
package/dist/module.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createBackendModule,\n createExtensionPoint,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport {
|
|
1
|
+
{"version":3,"file":"module.cjs.js","sources":["../src/module.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createBackendModule,\n createExtensionPoint,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { LdapOrgEntityProvider } from './processors';\nimport { GroupTransformer, UserTransformer } from './ldap/types';\n\n/**\n * Interface for {@link LdapOrgEntityProviderTransformsExtensionPoint}.\n *\n * @public\n */\nexport interface LdapOrgEntityProviderTransformsExtensionPoint {\n /**\n * Set the function that transforms a user entry in LDAP to an entity.\n * Optionally, you can pass separate transformers per provider ID.\n */\n setUserTransformer(\n transformer: UserTransformer | Record<string, UserTransformer>,\n ): void;\n\n /**\n * Set the function that transforms a group entry in LDAP to an entity.\n * Optionally, you can pass separate transformers per provider ID.\n */\n setGroupTransformer(\n transformer: GroupTransformer | Record<string, GroupTransformer>,\n ): void;\n}\n\n/**\n * Extension point used to customize the transforms used by the module.\n *\n * @public\n */\nexport const ldapOrgEntityProviderTransformsExtensionPoint =\n createExtensionPoint<LdapOrgEntityProviderTransformsExtensionPoint>({\n id: 'catalog.ldapOrgEntityProvider.transforms',\n });\n\n/**\n * Registers the LdapOrgEntityProvider with the catalog processing extension point.\n *\n * @public\n */\nexport const catalogModuleLdapOrgEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'ldapOrgEntityProvider',\n register(env) {\n let userTransformer:\n | UserTransformer\n | Record<string, UserTransformer>\n | undefined;\n let groupTransformer:\n | GroupTransformer\n | Record<string, GroupTransformer>\n | undefined;\n\n env.registerExtensionPoint(ldapOrgEntityProviderTransformsExtensionPoint, {\n setUserTransformer(transformer) {\n if (userTransformer) {\n throw new Error('User transformer may only be set once');\n }\n userTransformer = transformer;\n },\n setGroupTransformer(transformer) {\n if (groupTransformer) {\n throw new Error('Group transformer may only be set once');\n }\n groupTransformer = transformer;\n },\n });\n\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n config: coreServices.rootConfig,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ catalog, config, logger, scheduler }) {\n catalog.addEntityProvider(\n LdapOrgEntityProvider.fromConfig(config, {\n logger,\n scheduler,\n userTransformer: userTransformer,\n groupTransformer: groupTransformer,\n }),\n );\n },\n });\n },\n});\n"],"names":["createExtensionPoint","createBackendModule","catalogProcessingExtensionPoint","coreServices","LdapOrgEntityProvider"],"mappings":";;;;;;;;;;;;;;;;AAqDO,MAAM,gDACXA,qCAAoE,CAAA;AAAA,EAClE,EAAI,EAAA;AACN,CAAC;AAOI,MAAM,qCAAqCC,oCAAoB,CAAA;AAAA,EACpE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,uBAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAI,IAAA,eAAA;AAIJ,IAAI,IAAA,gBAAA;AAKJ,IAAA,GAAA,CAAI,uBAAuB,6CAA+C,EAAA;AAAA,MACxE,mBAAmB,WAAa,EAAA;AAC9B,QAAA,IAAI,eAAiB,EAAA;AACnB,UAAM,MAAA,IAAI,MAAM,uCAAuC,CAAA;AAAA;AAEzD,QAAkB,eAAA,GAAA,WAAA;AAAA,OACpB;AAAA,MACA,oBAAoB,WAAa,EAAA;AAC/B,QAAA,IAAI,gBAAkB,EAAA;AACpB,UAAM,MAAA,IAAI,MAAM,wCAAwC,CAAA;AAAA;AAE1D,QAAmB,gBAAA,GAAA,WAAA;AAAA;AACrB,KACD,CAAA;AAED,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQC,6BAAa,CAAA,UAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,SAAS,MAAQ,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNC,2CAAA,CAAsB,WAAW,MAAQ,EAAA;AAAA,YACvC,MAAA;AAAA,YACA,SAAA;AAAA,YACA,eAAA;AAAA,YACA;AAAA,WACD;AAAA,SACH;AAAA;AACF,KACD,CAAA;AAAA;AAEL,CAAC;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-ldap",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.7",
|
|
4
4
|
"description": "A Backstage catalog backend module that helps integrate towards LDAP",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"test": "backstage-cli package test"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@backstage/backend-plugin-api": "^1.4.
|
|
45
|
-
"@backstage/catalog-model": "^1.7.
|
|
46
|
-
"@backstage/config": "^1.3.
|
|
44
|
+
"@backstage/backend-plugin-api": "^1.4.1",
|
|
45
|
+
"@backstage/catalog-model": "^1.7.5",
|
|
46
|
+
"@backstage/config": "^1.3.3",
|
|
47
47
|
"@backstage/errors": "^1.2.7",
|
|
48
|
-
"@backstage/plugin-catalog-common": "^1.1.
|
|
49
|
-
"@backstage/plugin-catalog-node": "^1.17.
|
|
48
|
+
"@backstage/plugin-catalog-common": "^1.1.5",
|
|
49
|
+
"@backstage/plugin-catalog-node": "^1.17.2",
|
|
50
50
|
"@backstage/types": "^1.2.1",
|
|
51
51
|
"@types/ldapjs": "^2.2.5",
|
|
52
52
|
"ldapjs": "^2.3.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"uuid": "^11.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@backstage/cli": "^0.33.
|
|
57
|
+
"@backstage/cli": "^0.33.1",
|
|
58
58
|
"@types/lodash": "^4.14.151"
|
|
59
59
|
},
|
|
60
60
|
"configSchema": "config.d.ts",
|