Skip to content

Commit

Permalink
Merge pull request #18 from ribeirogab/feature/sso-google
Browse files Browse the repository at this point in the history
Feature/sso google
  • Loading branch information
ribeirogab authored Sep 22, 2024
2 parents e93ffc9 + ced53e3 commit 15eb8b2
Show file tree
Hide file tree
Showing 33 changed files with 830 additions and 214 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ STAGE=dev
# Application
JWT_SECRET=auth-jwt-secret
JWT_SECRET_VERIFICATION_TOKEN=verification-token-jwt-secret
APPLICATION_BASE_URL=http://localhost:8080
FRONTEND_CONFIRM_SIGN_UP_URL=http://localhost:3000/registration
FRONTEND_CONFIRM_SIGN_IN_URL=http://localhost:3000/login

Expand All @@ -15,3 +16,8 @@ AWS_DYNAMO_TABLE_NAME=dev-authentication
# Email provider
RESEND_API_KEY=
DEFAULT_SENDER_EMAIL=norepy@example.com

# Google SSO
GOOGLE_SSO_ENABLED=false
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
13 changes: 1 addition & 12 deletions infra/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,10 @@ resource "aws_dynamodb_table" "auth_resource_table" {
name = "SK"
type = "S"
}
attribute {
name = "ReferenceId"
type = "S"
}
ttl {
attribute_name = "TTL"
enabled = true
}
global_secondary_index {
name = "ReferenceIdIndex"
hash_key = "PK"
range_key = "ReferenceId"
projection_type = "ALL"
}
tags = {
Environment = var.environment
}
Expand Down Expand Up @@ -127,8 +117,7 @@ resource "aws_iam_role" "lambda_exec_role" {
]
Effect = "Allow"
Resource = [
"${aws_dynamodb_table.auth_resource_table.arn}",
"${aws_dynamodb_table.auth_resource_table.arn}/index/ReferenceIdIndex"
"${aws_dynamodb_table.auth_resource_table.arn}"
]
},
{
Expand Down
Loading

0 comments on commit 15eb8b2

Please sign in to comment.