Skip to content

Commit

Permalink
synced aws-exports with backend config by manual walkthrough of wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
myz540 committed Oct 18, 2024
1 parent fd6c4ca commit 2382431
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 49 deletions.
23 changes: 15 additions & 8 deletions amplify/backend/auth/reactcardgames2f2794e9/cli-inputs.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"version": "1",
"cognitoConfig": {
"identityPoolName": "reactcardgames2f2794e9_identitypool_2f2794e9",
"allowUnauthenticatedIdentities": false,
"resourceNameTruncated": "reactc2f2794e9",
"userPoolName": "reactcardgames2f2794e9_userpool_2f2794e9",
"autoVerifiedAttributes": [
Expand Down Expand Up @@ -35,8 +33,8 @@
"userpoolClientSetAttributes": false,
"sharedId": "2f2794e9",
"resourceName": "reactcardgames2f2794e9",
"authSelections": "identityPoolAndUserPool",
"useDefault": "defaultSocial",
"authSelections": "userPoolOnly",
"useDefault": "manual",
"usernameAttributes": [
"email"
],
Expand All @@ -60,9 +58,18 @@
"dependsOn": [],
"hostedUI": true,
"hostedUIDomainName": "reactcardgames",
"authProvidersUserPool": [],
"hostedUIProviderMeta": "[]",
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://thezhongfamily.net/\",\"http://localhost:3000/\"],\"LogoutURLs\":[\"https://thezhongfamily.net/\",\"http://localhost:3000/\"]}",
"authProviders": []
"authProvidersUserPool": [
"Google"
],
"hostedUIProviderMeta": "[{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]",
"userPoolGroups": false,
"adminQueries": false,
"triggers": {},
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"email\",\"openid\",\"profile\"],\"CallbackURLs\":[\"https://thezhongfamily.net/\",\"http://localhost:3000/\"],\"LogoutURLs\":[\"https://thezhongfamily.net/\",\"http://localhost:3000/\"]}",
"authProviders": [],
"parentStack": {
"Ref": "AWS::StackId"
},
"permissions": []
}
}
4 changes: 3 additions & 1 deletion amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"signupAttributes": [
"EMAIL"
],
"socialProviders": [],
"socialProviders": [
"GOOGLE"
],
"usernameAttributes": [
"EMAIL"
],
Expand Down
2 changes: 0 additions & 2 deletions amplify/backend/types/amplify-dependent-resources-ref.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export type AmplifyDependentResourcesAttributes = {
"AppClientID": "string",
"AppClientIDWeb": "string",
"HostedUIDomain": "string",
"IdentityPoolId": "string",
"IdentityPoolName": "string",
"OAuthMetadata": "string",
"UserPoolArn": "string",
"UserPoolId": "string",
Expand Down
62 changes: 24 additions & 38 deletions src/aws-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,30 @@
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
"aws_project_region": "us-east-1",
"aws_cognito_identity_pool_id": "us-east-1:ce9bc047-9ddb-48b3-8fb0-252ae800beb2",
"aws_cognito_region": "us-east-1",
"aws_user_pools_id": "us-east-1_BzbTBrNuC",
"aws_user_pools_web_client_id": "3fmalgdeh9v5kpaubg9npdnp88",
"oauth": {
"domain": "reactcardgames-dev.auth.us-east-1.amazoncognito.com",
"scope": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"redirectSignIn": "https://thezhongfamily.net/,http://localhost:3000/",
"redirectSignOut": "https://thezhongfamily.net/,http://localhost:3000/",
"responseType": "code"
},
"federationTarget": "COGNITO_USER_POOLS",
"aws_cognito_username_attributes": [
"EMAIL"
],
"aws_cognito_social_providers": [],
"aws_cognito_signup_attributes": [
"EMAIL"
],
"aws_cognito_mfa_configuration": "OFF",
"aws_cognito_mfa_types": [
"SMS"
],
"aws_cognito_password_protection_settings": {
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": []
},
"aws_cognito_verification_mechanisms": [
"EMAIL"
]
aws_project_region: "us-east-1",
aws_cognito_identity_pool_id:
"us-east-1:ce9bc047-9ddb-48b3-8fb0-252ae800beb2",
aws_cognito_region: "us-east-1",
aws_user_pools_id: "us-east-1_BzbTBrNuC",
aws_user_pools_web_client_id: "3fmalgdeh9v5kpaubg9npdnp88",
oauth: {
domain: "reactcardgames-dev.auth.us-east-1.amazoncognito.com",
scope: ["email", "openid", "profile"],
redirectSignIn: "https://thezhongfamily.net/,http://localhost:3000/",
redirectSignOut: "https://thezhongfamily.net/,http://localhost:3000/",
responseType: "code",
},
federationTarget: "COGNITO_USER_POOLS",
aws_cognito_username_attributes: ["EMAIL"],
aws_cognito_social_providers: ["GOOGLE"],
aws_cognito_signup_attributes: ["EMAIL"],
aws_cognito_mfa_configuration: "OFF",
aws_cognito_mfa_types: ["SMS"],
aws_cognito_password_protection_settings: {
passwordPolicyMinLength: 8,
passwordPolicyCharacters: [],
},
aws_cognito_verification_mechanisms: ["EMAIL"],
};


export default awsmobile;

0 comments on commit 2382431

Please sign in to comment.