Skip to content

Commit

Permalink
Update README.md to Resolve Errors
Browse files Browse the repository at this point in the history
Adding an additional scheduler option as the previous example was failing to build the backend.  
Also, the spec was missing in the groupTransformer which caused all insertions of new groups to fail with an error such that:
```
Thanks, this helped.  
Next error now is:
[1] 2024-03-21T21:53:32.085Z catalog warn Policy check failed for group:default/xxxxxxxx; caused by Error: Malformed envelope, <root> must NOT have additional properties type=plugin entity=group:default/xxxxx
```
  • Loading branch information
billabongrob authored Mar 22, 2024
1 parent 89e4ba5 commit e444047
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plugins/catalog-backend-module-okta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default async function createPlugin(
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { days: 1 },
timeout: { minutes: 30 },
}),
// query params passed to the okta api groups request
listGroupsRequest: {
Expand Down Expand Up @@ -67,10 +68,12 @@ export default async function createPlugin(
name: oktaGroup.profile!.name!.toLowerCase(),
description: oktaGroup.profile?.description || '',
},
type: 'team',
children: [],
profile: {
displayName: oktaGroup.profile!.name!,
spec: {
type: 'team',
children: [],
profile: {
displayName: oktaGroup.profile!.name!,
},
},
}),
}),
Expand Down

0 comments on commit e444047

Please sign in to comment.