@@ -18,6 +18,25 @@ void describe('client config converter', () => {
18
18
aws_cognito_region : 'test_cognito_region' ,
19
19
aws_user_pools_id : 'test_user_pool_id' ,
20
20
aws_user_pools_web_client_id : 'test_user_pool_app_client_id' ,
21
+ aws_cognito_identity_pool_id : 'test_identity_pool_id' ,
22
+ aws_cognito_signup_attributes : [
23
+ 'test_signup_attribute_1' ,
24
+ 'test_signup_attribute_2' ,
25
+ ] ,
26
+ aws_cognito_username_attributes : [
27
+ 'test_username_attribute_1' ,
28
+ 'test_username_attribute_2' ,
29
+ ] ,
30
+ aws_cognito_password_protection_settings : {
31
+ passwordPolicyMinLength : 1234 ,
32
+ passwordPolicyCharacters : [ 'a' , 'b' , 'c' ] ,
33
+ } ,
34
+ aws_cognito_verification_mechanisms : [
35
+ 'test_verification_mechanism_1' ,
36
+ 'test_verification_mechanism_2' ,
37
+ ] ,
38
+ aws_cognito_mfa_configuration : 'test_mfa_configuration' ,
39
+ aws_cognito_mfa_types : [ 'test_mfa_type_1' , 'test_mfa_type_2' ] ,
21
40
} ;
22
41
const expectedMobileConfig : ClientConfigMobile = {
23
42
UserAgent : expectedUserAgent ,
@@ -37,14 +56,32 @@ void describe('client config converter', () => {
37
56
CredentialsProvider : {
38
57
CognitoIdentity : {
39
58
Default : {
40
- PoolId : 'test_user_pool_id ' ,
59
+ PoolId : 'test_identity_pool_id ' ,
41
60
Region : 'test_cognito_region' ,
42
61
} ,
43
62
} ,
44
63
} ,
45
64
Auth : {
46
65
Default : {
47
66
authenticationFlowType : 'USER_SRP_AUTH' ,
67
+ mfaConfiguration : 'test_mfa_configuration' ,
68
+ mfaTypes : [ 'test_mfa_type_1' , 'test_mfa_type_2' ] ,
69
+ signupAttributes : [
70
+ 'test_signup_attribute_1' ,
71
+ 'test_signup_attribute_2' ,
72
+ ] ,
73
+ usernameAttributes : [
74
+ 'test_username_attribute_1' ,
75
+ 'test_username_attribute_2' ,
76
+ ] ,
77
+ passwordProtectionSettings : {
78
+ passwordPolicyMinLength : 1234 ,
79
+ passwordPolicyCharacters : [ 'a' , 'b' , 'c' ] ,
80
+ } ,
81
+ verificationMechanisms : [
82
+ 'test_verification_mechanism_1' ,
83
+ 'test_verification_mechanism_2' ,
84
+ ] ,
48
85
} ,
49
86
} ,
50
87
} ,
@@ -91,6 +128,7 @@ void describe('client config converter', () => {
91
128
const clientConfig : ClientConfig = {
92
129
aws_cognito_region : 'test_cognito_region' ,
93
130
aws_user_pools_id : 'test_user_pool_id' ,
131
+ aws_cognito_identity_pool_id : 'test_identity_pool_id' ,
94
132
aws_user_pools_web_client_id : 'test_user_pool_app_client_id' ,
95
133
aws_appsync_region : 'test_app_sync_region' ,
96
134
aws_appsync_graphqlEndpoint : 'https://test_api_endpoint.amazon.com' ,
@@ -115,14 +153,23 @@ void describe('client config converter', () => {
115
153
CredentialsProvider : {
116
154
CognitoIdentity : {
117
155
Default : {
118
- PoolId : 'test_user_pool_id ' ,
156
+ PoolId : 'test_identity_pool_id ' ,
119
157
Region : 'test_cognito_region' ,
120
158
} ,
121
159
} ,
122
160
} ,
123
161
Auth : {
124
162
Default : {
125
163
authenticationFlowType : 'USER_SRP_AUTH' ,
164
+ mfaConfiguration : undefined ,
165
+ mfaTypes : undefined ,
166
+ signupAttributes : [ ] ,
167
+ usernameAttributes : [ ] ,
168
+ passwordProtectionSettings : {
169
+ passwordPolicyCharacters : [ ] ,
170
+ passwordPolicyMinLength : undefined ,
171
+ } ,
172
+ verificationMechanisms : [ ] ,
126
173
} ,
127
174
} ,
128
175
AppSync : {
0 commit comments