Skip to content

Commit b34fec6

Browse files
phantumcodetimngynkatieklein
authored
update sample amplifyconfiguration json file (aws-amplify#5874)
Co-authored-by: Tim Nguyen <[email protected]> Co-authored-by: Katie Goines <[email protected]>
1 parent 2a6495f commit b34fec6

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

src/fragments/lib/auth/android/getting_started/50_configureBackend.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,22 @@ If you are not using the Amplify CLI, existing Authentication resources from AWS
122122
"Auth": {
123123
"Default": {
124124
"authenticationFlowType": "USER_SRP_AUTH",
125+
"socialProviders": [],
126+
"usernameAttributes": [],
127+
"signupAttributes": [
128+
"[SIGNUP MECHANISM]"
129+
],
130+
"passwordProtectionSettings": {
131+
"passwordPolicyMinLength": [PASSWORD LENGTH],
132+
"passwordPolicyCharacters": []
133+
},
134+
"mfaConfiguration": "OFF",
135+
"mfaTypes": [
136+
"[MFA TYPE]"
137+
],
138+
"verificationMechanisms": [
139+
"[VERIFICATION MECHANISM]"
140+
],
125141
"OAuth": {
126142
"WebDomain": "[YOUR COGNITO DOMAIN ]",
127143
"AppClientId": "[COGNITO USER POOL APP CLIENT ID]",
@@ -163,4 +179,4 @@ If you are using a Cognito User Pool without a Cognito Identity Pool, you can om
163179

164180
</Block>
165181

166-
</BlockSwitcher>
182+
</BlockSwitcher>

src/fragments/lib/auth/ios/getting_started/50_configureBackend.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,22 @@ If you are not using the Amplify CLI, existing Authentication resources from AWS
132132
"Auth": {
133133
"Default": {
134134
"authenticationFlowType": "USER_SRP_AUTH",
135+
"socialProviders": [],
136+
"usernameAttributes": [],
137+
"signupAttributes": [
138+
"[SIGNUP MECHANISM]"
139+
],
140+
"passwordProtectionSettings": {
141+
"passwordPolicyMinLength": [PASSWORD LENGTH],
142+
"passwordPolicyCharacters": []
143+
},
144+
"mfaConfiguration": "OFF",
145+
"mfaTypes": [
146+
"[MFA TYPE]"
147+
],
148+
"verificationMechanisms": [
149+
"[VERIFICATION MECHANISM]"
150+
],
135151
"OAuth": {
136152
"WebDomain": "[YOUR COGNITO DOMAIN ]",
137153
"AppClientId": "[COGNITO USER POOL APP CLIENT ID]",
@@ -174,4 +190,4 @@ If you are using a Cognito User Pool without a Cognito Identity Pool, you can om
174190

175191
</Block>
176192

177-
</BlockSwitcher>
193+
</BlockSwitcher>

0 commit comments

Comments
 (0)