Skip to content

Commit

Permalink
add (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
k70suK3-k06a7ash1 authored Apr 17, 2024
1 parent bad2502 commit ef25deb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions cdk/lib/constructs/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class Auth extends Construct {
}
);
client.node.addDependency(googleProvider);
break;
}
case "oidc": {
const issuerUrl = secret
Expand All @@ -124,6 +125,7 @@ export class Auth extends Construct {
}
);
client.node.addDependency(oidcProvider);
break;
}
}
};
Expand All @@ -141,10 +143,16 @@ export class Auth extends Construct {
}

if (props.allowedSignUpEmailDomains.length >= 1) {
const checkEmailDomainFunction = new PythonFunction(this, 'CheckEmailDomain',{
const checkEmailDomainFunction = new PythonFunction(
this,
"CheckEmailDomain",
{
runtime: Runtime.PYTHON_3_12,
index: 'check_email_domain.py',
entry: path.join(__dirname, "../../../backend/auth/check_email_domain"),
index: "check_email_domain.py",
entry: path.join(
__dirname,
"../../../backend/auth/check_email_domain"
),
timeout: Duration.minutes(1),
environment: {
ALLOWED_SIGN_UP_EMAIL_DOMAINS_STR: JSON.stringify(
Expand Down

0 comments on commit ef25deb

Please sign in to comment.