@backstage/plugin-catalog-backend-module-ldap 0.4.0-next.0 → 0.4.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 +39 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-ldap
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9461f73643: **BREAKING**: Added a `schedule` field to `LdapOrgEntityProvider.fromConfig`, which is required. If you want to retain the old behavior of scheduling the provider manually, you can set it to the string value `'manual'`. But you may want to leverage the ability to instead pass in the recurring task schedule information directly. This will allow you to simplify your backend setup code to not need an intermediate variable and separate scheduling code at the bottom.
|
|
8
|
+
|
|
9
|
+
All things said, a typical setup might now look as follows:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
// packages/backend/src/plugins/catalog.ts
|
|
13
|
+
+import { Duration } from 'luxon';
|
|
14
|
+
+import { LdapOrgEntityProvider } from '@backstage/plugin-catalog-backend-module-ldap';
|
|
15
|
+
export default async function createPlugin(
|
|
16
|
+
env: PluginEnvironment,
|
|
17
|
+
): Promise<Router> {
|
|
18
|
+
const builder = await CatalogBuilder.create(env);
|
|
19
|
+
+ // The target parameter below needs to match the ldap.providers.target
|
|
20
|
+
+ // value specified in your app-config.
|
|
21
|
+
+ builder.addEntityProvider(
|
|
22
|
+
+ LdapOrgEntityProvider.fromConfig(env.config, {
|
|
23
|
+
+ id: 'our-ldap-master',
|
|
24
|
+
+ target: 'ldaps://ds.example.net',
|
|
25
|
+
+ logger: env.logger,
|
|
26
|
+
+ schedule: env.scheduler.createScheduledTaskRunner({
|
|
27
|
+
+ frequency: Duration.fromObject({ minutes: 60 }),
|
|
28
|
+
+ timeout: Duration.fromObject({ minutes: 15 }),
|
|
29
|
+
+ }),
|
|
30
|
+
+ }),
|
|
31
|
+
+ );
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- f751e84572: Ignore search referrals instead of throwing an error.
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
- @backstage/backend-tasks@0.2.0
|
|
39
|
+
- @backstage/plugin-catalog-backend@0.24.0
|
|
40
|
+
- @backstage/catalog-model@0.13.0
|
|
41
|
+
|
|
3
42
|
## 0.4.0-next.0
|
|
4
43
|
|
|
5
44
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-ldap",
|
|
3
3
|
"description": "A Backstage catalog backend module that helps integrate towards LDAP",
|
|
4
|
-
"version": "0.4.0
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"start": "backstage-cli package start"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@backstage/backend-tasks": "^0.2.0
|
|
37
|
-
"@backstage/catalog-model": "^0.13.0
|
|
36
|
+
"@backstage/backend-tasks": "^0.2.0",
|
|
37
|
+
"@backstage/catalog-model": "^0.13.0",
|
|
38
38
|
"@backstage/config": "^0.1.15",
|
|
39
39
|
"@backstage/errors": "^0.2.2",
|
|
40
|
-
"@backstage/plugin-catalog-backend": "^0.24.0
|
|
40
|
+
"@backstage/plugin-catalog-backend": "^0.24.0",
|
|
41
41
|
"@backstage/types": "^0.1.3",
|
|
42
42
|
"@types/ldapjs": "^2.2.0",
|
|
43
43
|
"ldapjs": "^2.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"winston": "^3.2.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@backstage/cli": "^0.15.2
|
|
49
|
+
"@backstage/cli": "^0.15.2",
|
|
50
50
|
"@types/lodash": "^4.14.151"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"config.d.ts"
|
|
55
55
|
],
|
|
56
56
|
"configSchema": "config.d.ts",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "60c4e39d1fcaeb10d6488ada1d907f34dc2a105a"
|
|
58
58
|
}
|