-
Notifications
You must be signed in to change notification settings - Fork 5
Sprint 15 #459
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
Merged
Merged
Sprint 15 #459
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bbbc3e1
Frontend/vue i18n update (#380)
jsandoval81 dd33c78
Frontend/Fix search paging case (#384)
jsandoval81 5977b08
Feat/auth tweaks (#388)
ChiefStief 8ff3a18
Feat/ssn table (#411)
jusdino fb49f60
Feat/read access updates (#387)
landonshumway-ia b9bdfb3
Frontend/hifi style (#419)
jsandoval81 455f758
Feat/Transaction History Processing Workflow with Email Notifications…
landonshumway-ia 7ca275d
Remove mock resources from persistent stack (#421)
landonshumway-ia f32cad7
path-to-regexp dependency update (#432)
jsandoval81 20f3115
Frontend/Fix pw input validation messages (#430)
jsandoval81 235c8ce
Frontend/permission api updates (#428)
jsandoval81 32788ec
Feat/military affiliation (#426)
ChiefStief b6edd27
Feat/Add Attestations API Endpoint (#422)
landonshumway-ia a7e4f5e
Feat/license event records (#434)
jusdino 6273a13
fix/make file extension matching case-insensitive (#462)
landonshumway-ia 8998490
Add aria-label to mobile nav logo (#484)
jsandoval81 39172cc
Simplify password constraints to match server (#483)
jsandoval81 1a3a88e
Military modal focus and military page label contrast hotfixes (#485)
ChiefStief File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Idea | ||
.idea | ||
|
||
# VS Code | ||
.vscode | ||
|
||
#OS | ||
.DS_Store | ||
.tmp | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
set -e | ||
|
||
pip-compile --no-emit-index-url --upgrade multi-account/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade multi-account/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/common/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/common/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/custom-resources/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/custom-resources/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/data-events/requirements-dev.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/data-events/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/provider-data-v1/requirements-dev.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/provider-data-v1/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/purchases/requirements-dev.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/purchases/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/staff-user-pre-token/requirements-dev.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/staff-user-pre-token/requirements.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/staff-users/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade compact-connect/lambdas/python/staff-users/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras multi-account/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras multi-account/requirements.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/requirements-dev.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/requirements.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/attestations/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/attestations/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/common/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/common/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/custom-resources/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/custom-resources/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/data-events/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/data-events/requirements.in | ||
jlkravitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/provider-data-v1/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/provider-data-v1/requirements.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/purchases/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/purchases/requirements.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/staff-user-pre-token/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/staff-user-pre-token/requirements.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/staff-users/requirements-dev.in | ||
pip-compile --no-emit-index-url --upgrade --no-strip-extras compact-connect/lambdas/python/staff-users/requirements.in | ||
bin/sync_deps.sh |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,70 @@ | ||
#!/usr/bin/env python3 | ||
"""Provider user generation helper script. Run from `backend/compact-connect`. | ||
|
||
Note: This script requires the boto3 library and the environment variable: | ||
# The provider user pool id | ||
USER_POOL_ID=us-east-1_7zzexample | ||
|
||
The CLI must also be configured with AWS credentials that have appropriate access to Cognito | ||
""" | ||
|
||
import json | ||
import os | ||
import sys | ||
|
||
import boto3 | ||
from botocore.exceptions import ClientError | ||
|
||
with open('cdk.json') as context_file: | ||
_context = json.load(context_file)['context'] | ||
|
||
COMPACTS = _context['compacts'] | ||
USER_POOL_ID = os.environ['USER_POOL_ID'] | ||
|
||
|
||
cognito_client = boto3.client('cognito-idp') | ||
|
||
|
||
def create_cognito_user(*, email: str, compact: str, provider_id: str): | ||
sys.stdout.write(f"Creating new provider user, '{email}', in {compact}") | ||
|
||
def get_sub_from_attributes(user_attributes: list): | ||
for attribute in user_attributes: | ||
if attribute['Name'] == 'sub': | ||
return attribute['Value'] | ||
raise ValueError('Failed to find user sub!') | ||
|
||
try: | ||
user_data = cognito_client.admin_create_user( | ||
UserPoolId=USER_POOL_ID, | ||
Username=email, | ||
UserAttributes=[ | ||
{'Name': 'email', 'Value': email}, | ||
{'Name': 'custom:compact', 'Value': compact}, | ||
{'Name': 'custom:providerId', 'Value': provider_id}, | ||
], | ||
DesiredDeliveryMediums=['EMAIL'], | ||
) | ||
return get_sub_from_attributes(user_data['User']['Attributes']) | ||
|
||
except ClientError as e: | ||
if e.response['Error']['Code'] == 'UsernameExistsException': | ||
user_data = cognito_client.admin_get_user(UserPoolId=USER_POOL_ID, Username=email) | ||
return get_sub_from_attributes(user_data['UserAttributes']) | ||
raise | ||
|
||
|
||
if __name__ == '__main__': | ||
from argparse import ArgumentParser | ||
|
||
parser = ArgumentParser( | ||
description='Create a provider user', | ||
epilog='example: bin/create_provider_user.py -e [email protected] -c octp -p ac5f9901-e4e6-4a2e-8982-27d2517a3ab8', # noqa: E501 line-too-long | ||
) | ||
parser.add_argument('-e', '--email', help="The new user's email address", required=True) | ||
parser.add_argument('-c', '--compact', help="The new user's compact", required=True, choices=COMPACTS) | ||
parser.add_argument('-p', '--provider-id', help="The new user's associated provider id", required=True) | ||
|
||
args = parser.parse_args() | ||
|
||
create_cognito_user(email=args.email, compact=args.compact, provider_id=args.provider_id) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.