Skip to content

Commit

Permalink
add modal secret to secret manager
Browse files Browse the repository at this point in the history
  • Loading branch information
seplee committed Apr 14, 2024
1 parent 6f3489c commit 4679496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions _infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ resource "aws_apprunner_service" "this" {
runtime_environment_secrets = {
GOOGLE_CLIENT_SECRET="arn:aws:secretsmanager:us-east-2:310753928788:secret:drive-gooder-secrets-5lmhvt:GOOGLE_CLIENT_SECRET::"
OPENAI_API_KEY="arn:aws:secretsmanager:us-east-2:310753928788:secret:drive-gooder-secrets-5lmhvt:OPENAI_API_KEY::"
MODAL_AUTH_TOKEN="arn:aws:secretsmanager:us-east-2:310753928788:secret:drive-gooder-secrets-5lmhvt:MODAL_AUTH_TOKEN::"
}
}
image_identifier = local.container_image
Expand Down
4 changes: 2 additions & 2 deletions api/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def login():
# scopes that let you retrieve user's profile from Google
redirect_uri = "https://drive-gooder.com/api/login"
# print(f'callback uri: {request.base_url + "/callback"}')
print(f'callback uri: {redirect_uri + "/callback"}')
print(f'callback uri: {request.base_url + "/callback"}')
request_uri = client.prepare_request_uri(
authorization_endpoint,
redirect_uri=redirect_uri + "/callback",
redirect_uri=request.base_url + "/callback",
scope=["openid", "email", "profile"],
)
return redirect(request_uri)
Expand Down

0 comments on commit 4679496

Please sign in to comment.