-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update aws amplify from v5 to v6 and fix its test (#1513)
* docs: fix typo in console error message for cognito index page * fix: global replace of case-sensitive VITE_APP with VITE; this seems to have been a mistake during the upgrade from create-react-app to vite. See historical commits 7b78b6e and e66f559 for the mystery of where VITE_APP came from. REACT_APP should have been replaced with VITE but was replaced with VITE_APP instead. * chore: upgrade amplify-js library from version 5 to version 6 and fix its example cypress tests for programmatic login and cy.origin() login. * docs: prettier fixes to README.md * build: update yarn lock changes only for amplify on chore branch by: removing amplify from package.json, yarn install, replacing amplify in package.json, yarn install. * Update README.md backtick-quote cy.origin() Co-authored-by: Bill Glesias <[email protected]> * Update README.md backtick-quote .env Co-authored-by: Bill Glesias <[email protected]> --------- Co-authored-by: Bill Glesias <[email protected]>
- Loading branch information
1 parent
2094abd
commit 2002af2
Showing
15 changed files
with
1,146 additions
and
2,916 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ VITE_BACKEND_PORT=3001 | |
#VITE_OKTA_DOMAIN="dev-your-domain-id.okta.com" | ||
#VITE_OKTA_CLIENTID="your-client-id" | ||
|
||
# AWS Cognito #Okta Configuration to be added to .env when running "yarn dev:cognito" | ||
# AWS Cognito Configuration to be added to .env when running "yarn dev:cognito" | ||
# Additional config taken from aws-exports.js | ||
#AWS_COGNITO_USERNAME="[email protected]" | ||
#AWS_COGNITO_PASSWORD="s3cret1234$" | ||
#AWS_COGNITO_DOMAIN="https://YOUR_COGNITO_INSTANCE.auth.us-east-1.amazoncognito.com" | ||
#AWS_COGNITO_DOMAIN="https://YOUR_COGNITO_USER_POOL_HOSTED_UI_DOMAIN_PREFIX.auth.us-east-1.amazoncognito.com" | ||
|
||
# Google Auth Configuration to be added to .env when running "yarn dev:google" | ||
# client ID should look something like <identifier>.apps.googleusercontent.com | ||
|
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
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
// mock aws-exports-es5.js | ||
|
||
const awsmobile = { | ||
aws_cognito_region: "", | ||
aws_user_pools_id: "", | ||
Auth: { | ||
Cognito: { | ||
userPoolId: "us-east-1_abcdefghi", | ||
userPoolClientId: "a1b2c3d4e5f6g7h8i9j0k1l2m", | ||
loginWith: { | ||
oauth: { | ||
domain: "YOUR_COGNITO_USER_POOL_HOSTED_UI_DOMAIN_PREFIX.auth.us-east-1.amazoncognito.com", | ||
scopes: ["email", "openid", "aws.cognito.signin.user.admin"], | ||
redirectSignIn: ["http://localhost:3000/"], | ||
redirectSignOut: ["http://localhost:3000/"], | ||
responseType: "token", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
exports.default = awsmobile; |
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
// mock aws-exports.js | ||
|
||
const awsmobile = { | ||
aws_cognito_region: "", | ||
aws_user_pools_id: "", | ||
Auth: { | ||
Cognito: { | ||
userPoolId: "us-east-1_abcdefghi", | ||
userPoolClientId: "a1b2c3d4e5f6g7h8i9j0k1l2m", | ||
loginWith: { | ||
oauth: { | ||
domain: "YOUR_COGNITO_USER_POOL_HOSTED_UI_DOMAIN_PREFIX.auth.us-east-1.amazoncognito.com", | ||
scopes: ["email", "openid", "aws.cognito.signin.user.admin"], | ||
redirectSignIn: ["http://localhost:3000/"], | ||
redirectSignOut: ["http://localhost:3000/"], | ||
responseType: "token", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default awsmobile; |
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
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.