Skip to content

Commit

Permalink
added files
Browse files Browse the repository at this point in the history
  • Loading branch information
gaokevin1 committed Nov 13, 2024
1 parent dd836a7 commit 844b040
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions lib/descope-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,24 +201,6 @@ export class DescopeAuth extends Construct implements sbt.IAuth {
);
clientSecretSSMMgmtKey.grantRead(this.createMachineClientFunction);

// // Define the custom resource provider
// const provider = new Provider(this, "Provider", {
// onEventHandler: this.createMachineClientFunction,
// });

// // Create the custom resource
// const customResource = new CustomResource(
// this,
// "machineClientCustomResource",
// {
// serviceToken: provider.serviceToken,
// properties: {
// name: "SBT Access Key",
// description: "Auto-generated Access Key for SBT",
// },
// }
// );

const machineClientResource = this.createMachineClient(
this,
"MachineClient",
Expand Down Expand Up @@ -324,8 +306,12 @@ export class DescopeAuth extends Construct implements sbt.IAuth {
},
});
}
createAdminUser(scope: Construct, id: string, props: CreateAdminUserProps) {
new CustomResource(scope, `createAdminUserCustomResource-v2-${id}`, {
createAdminUser(
scope: Construct,
id: string,
props: CreateAdminUserProps
): cdk.CustomResource {
return new CustomResource(scope, `createAdminUserCustomResource-v2-${id}`, {
serviceToken: this.createAdminUserFunction.functionArn,
properties: {
Name: props.name,
Expand Down

0 comments on commit 844b040

Please sign in to comment.