-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #869 from isomerpages/release/0.36.0
Release/0.36.0
- Loading branch information
Showing
13 changed files
with
454 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
ENV_TYPE=$(/opt/elasticbeanstalk/bin/get-config environment -k SSM_PREFIX) | ||
ENV_VARS=("SGID_CLIENT_ID" "SGID_CLIENT_SECRET" "SGID_PRIVATE_KEY" "SGID_REDIRECT_URI") # Add any additional env vars to this array | ||
|
||
echo "Set AWS region" | ||
aws configure set default.region ap-southeast-1 | ||
|
||
for ENV_VAR in "${ENV_VARS[@]}"; do | ||
echo "Fetching ${ENV_VAR} from SSM" | ||
VALUE=$(aws ssm get-parameter --name "${ENV_TYPE}_${ENV_VAR}" --with-decryption --query "Parameter.Value" --output text) | ||
echo "${ENV_VAR}=${VALUE}" >> /opt/elasticbeanstalk/deployment/env | ||
echo "Saved ${ENV_VAR}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { BaseIsomerError } from "@root/errors/BaseError" | ||
|
||
export class SgidCreateRedirectUrlError extends BaseIsomerError { | ||
constructor(message = "Error while creating redirect URL") { | ||
super({ | ||
status: 500, | ||
code: "SgidCreateRedirectUrlError", | ||
message, | ||
}) | ||
} | ||
} | ||
|
||
export class SgidFetchAccessTokenError extends BaseIsomerError { | ||
constructor(message = "Error while fetching access token") { | ||
super({ | ||
status: 500, | ||
code: "SgidFetchAccessTokenError", | ||
message, | ||
}) | ||
} | ||
} | ||
|
||
export class SgidFetchUserInfoError extends BaseIsomerError { | ||
constructor(message = "Error while fetching user info") { | ||
super({ | ||
status: 500, | ||
code: "SgidFetchUserInfoError", | ||
message, | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.