-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): Always set login methods when parsing Gen2 config files (#…
- Loading branch information
Showing
8 changed files
with
247 additions
and
120 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This directory contains equivalent Gen1 & Gen2 configurations which are used to validate interoperability between | ||
different config versions/schemas. Make sure that any updates applied to one are applied to the other. |
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"$schema": "adipisicing cillum", | ||
"version": "1", | ||
"auth": { | ||
"aws_region": "us-west-2", | ||
"user_pool_id": "mock-cup-id", | ||
"user_pool_client_id": "mock-cup-client-id", | ||
"identity_pool_id": "mock-idp-id", | ||
"oauth": { | ||
"identity_providers": ["FACEBOOK", "SIGN_IN_WITH_APPLE", "GOOGLE"], | ||
"domain": "mock-oauth-domain", | ||
"scopes": ["phone"], | ||
"redirect_sign_in_uri": ["mock-sign-in-uri"], | ||
"redirect_sign_out_uri": ["mock-sign-out-uri"], | ||
"response_type": "token" | ||
}, | ||
"standard_required_attributes": [ | ||
"address", | ||
"locale", | ||
"email" | ||
], | ||
"username_attributes": ["phone_number", "email"], | ||
"user_verification_types": ["email"], | ||
"unauthenticated_identities_enabled": true, | ||
"mfa_configuration": "OPTIONAL", | ||
"mfa_methods": ["TOTP", "SMS"], | ||
"password_policy": { | ||
"require_lowercase": true, | ||
"require_numbers": true, | ||
"require_uppercase": true, | ||
"require_symbols": true, | ||
"min_length": 6 | ||
} | ||
}, | ||
"data": { | ||
"aws_region": "us-west-2", | ||
"url": "mock-data-url", | ||
"api_key": "mock-data-api-key", | ||
"default_authorization_type": "API_KEY", | ||
"authorization_types": [] | ||
}, | ||
"geo": { | ||
"aws_region": "us-west-2", | ||
"search_indices": { | ||
"items": [ | ||
"mock-geo-search-item", | ||
"mock-geo-search-item-alt" | ||
], | ||
"default": "mock-geo-search-item" | ||
}, | ||
"geofence_collections": { | ||
"items": [ | ||
"mock-geo-fence-item", | ||
"mock-geo-fence-item-alt" | ||
], | ||
"default": "mock-geo-fence-item" | ||
} | ||
}, | ||
"custom": { | ||
"custom-prop": -51806024, | ||
"custom-prop-alt": 87599986 | ||
}, | ||
"notifications": { | ||
"aws_region": "us-west-2", | ||
"amazon_pinpoint_app_id": "mock-pinpoint-app-id", | ||
"channels": ["IN_APP_MESSAGING", "APNS"] | ||
}, | ||
"analytics": { | ||
"amazon_pinpoint": { | ||
"app_id": "mock-pinpoint-app-id", | ||
"aws_region": "us-west-2" | ||
} | ||
}, | ||
"storage": { | ||
"bucket_name": "mock-storage-bucket", | ||
"aws_region": "us-west-2" | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
packages/core/__mocks__/configMocks/amplifyconfiguration.json
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"aws_project_region": "us-west-2", | ||
"aws_cognito_identity_pool_id": "mock-idp-id", | ||
"aws_cognito_username_attributes": ["PHONE_NUMBER", "EMAIL"], | ||
"aws_cognito_signup_attributes": ["EMAIL", "ADDRESS", "LOCALE"], | ||
"aws_cognito_mfa_configuration": "OPTIONAL", | ||
"aws_cognito_mfa_types": ["TOTP", "SMS"], | ||
"aws_cognito_password_protection_settings": { | ||
"passwordPolicyMinLength": 6, | ||
"passwordPolicyCharacters": [ | ||
"REQUIRES_SYMBOLS", | ||
"REQUIRES_UPPERCASE", | ||
"REQUIRES_LOWERCASE", | ||
"REQUIRES_NUMBERS" | ||
] | ||
}, | ||
"oauth": { | ||
"domain": "mock-oauth-domain", | ||
"scope": ["phone"], | ||
"redirectSignIn": "mock-sign-in-uri", | ||
"redirectSignOut": "mock-sign-out-uri", | ||
"responseType": "token" | ||
}, | ||
"aws_cognito_verification_mechanisms": ["EMAIL"], | ||
"aws_cognito_social_providers": ["FACEBOOK", "APPLE", "GOOGLE"], | ||
"aws_mobile_analytics_app_id": "mock-pinpoint-app-id", | ||
"aws_mobile_analytics_app_region": "us-west-2", | ||
"aws_user_files_s3_bucket": "mock-storage-bucket", | ||
"aws_user_files_s3_bucket_region": "us-west-2", | ||
"aws_user_pools_id": "mock-cup-id", | ||
"aws_user_pools_web_client_id": "mock-cup-client-id", | ||
"geo": { | ||
"amazon_location_service": { | ||
"search_indices": { | ||
"items": [ | ||
"mock-geo-search-item", | ||
"mock-geo-search-item-alt" | ||
], | ||
"default": "mock-geo-search-item" | ||
}, | ||
"geofenceCollections": { | ||
"items": [ | ||
"mock-geo-fence-item", | ||
"mock-geo-fence-item-alt" | ||
], | ||
"default": "mock-geo-fence-item" | ||
}, | ||
"region": "us-west-2" | ||
} | ||
}, | ||
"aws_appsync_graphqlEndpoint": "mock-data-url", | ||
"aws_appsync_apiKey": "mock-data-api-key", | ||
"aws_appsync_region": "us-west-2", | ||
"aws_appsync_authenticationType": "API_KEY", | ||
"Notifications": { | ||
"InAppMessaging": { | ||
"AWSPinpoint": { | ||
"appId": "mock-pinpoint-app-id", | ||
"region": "us-west-2" | ||
} | ||
}, | ||
"Push": { | ||
"AWSPinpoint": { | ||
"appId": "mock-pinpoint-app-id", | ||
"region": "us-west-2" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.