-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added SSO to retrieve credentials for calling Cognito related queries #41
Conversation
mypy fails
Before doing anything I'd wait for #43 to get merged |
approver_cognito_data = CognitoIdentityProviderWrapper().get_user(approver_name) | ||
approver_email = approver_cognito_data.email | ||
|
||
# TODO the approver_name should be the user's name, not username |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -16,11 +16,12 @@ services: | |||
- ../../backend.env | |||
volumes: | |||
- ../../:/portal | |||
- ~/.aws:/.aws | |||
- ~/.aws:/root/.aws |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @KevinHa48 for the great work on this! This MR will also integrate the cognito user querying into POST This is done to separate non confidential data in the MongoDB and confidential data in Cognito. I need to test this some more before merging. |
Summary of changes
boto3
uses theAWS_CONFIG_FILE
andAWS_PROFILE
Docker environment variables to make its calls.aws configure sso
should be run by developers which creates theAWS_CONFIG_FILE
directory andAWS_PROFILE
portal
repo for setup details.