From 10e002ecf35043a234d0003cd2508f27c9a3cf0f Mon Sep 17 00:00:00 2001 From: Dan Kiuna Date: Wed, 8 Mar 2023 17:24:17 -0600 Subject: [PATCH 1/4] Updating social sign in attribute mappings callout on imported Auth --- src/fragments/lib/auth/js/start.mdx | 2 +- src/pages/cli/auth/import.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fragments/lib/auth/js/start.mdx b/src/fragments/lib/auth/js/start.mdx index 644b357e77e..863a3defeb2 100644 --- a/src/fragments/lib/auth/js/start.mdx +++ b/src/fragments/lib/auth/js/start.mdx @@ -128,7 +128,7 @@ Amplify.configure({ const currentConfig = Auth.configure(); ``` -If your existing UserPool client has a required attribute that is NOT set to mutable, you may face login issues when using Social sign in. To resolve this, you will need to create a new UserPool client and mark the required attribute as mutable. +For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. ### Note about OAuth configuration parameters diff --git a/src/pages/cli/auth/import.mdx b/src/pages/cli/auth/import.mdx index 61fa75f3f86..056388c37a1 100644 --- a/src/pages/cli/auth/import.mdx +++ b/src/pages/cli/auth/import.mdx @@ -34,7 +34,7 @@ Select the "Cognito User Pool only" option when you've run `amplify import auth` Run `amplify push` to complete the import procedure. -If your existing UserPool client has a required attribute that is NOT set to mutable, you may face login issues when using Social sign in. To resolve this, you will need to create a new UserPool client and mark the required attribute as mutable. +For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. ## Import an existing Identity Pool From 32a56a693d5452b95fbd79e47a3fb41e32bcc6ec Mon Sep 17 00:00:00 2001 From: Dan Kiuna Date: Thu, 16 Mar 2023 11:40:16 -0500 Subject: [PATCH 2/4] adding callout to fragments/common --- src/fragments/common/writable-vs-mutable-attributes.mdx | 3 +++ src/fragments/lib/auth/js/start.mdx | 6 +++--- src/pages/cli/auth/import.mdx | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 src/fragments/common/writable-vs-mutable-attributes.mdx diff --git a/src/fragments/common/writable-vs-mutable-attributes.mdx b/src/fragments/common/writable-vs-mutable-attributes.mdx new file mode 100644 index 00000000000..d7f3db03a77 --- /dev/null +++ b/src/fragments/common/writable-vs-mutable-attributes.mdx @@ -0,0 +1,3 @@ + +For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. + \ No newline at end of file diff --git a/src/fragments/lib/auth/js/start.mdx b/src/fragments/lib/auth/js/start.mdx index 863a3defeb2..dbafa4a2f22 100644 --- a/src/fragments/lib/auth/js/start.mdx +++ b/src/fragments/lib/auth/js/start.mdx @@ -127,9 +127,9 @@ Amplify.configure({ // You can get the current config object const currentConfig = Auth.configure(); ``` - -For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. - +import attributesCallout from "/src/fragments/common/writable-vs-mutable-attributes.mdx"; + + ### Note about OAuth configuration parameters These settings can be found in the Cognito User Pools console under **App Integration** section diff --git a/src/pages/cli/auth/import.mdx b/src/pages/cli/auth/import.mdx index 056388c37a1..a8a4da2ef4c 100644 --- a/src/pages/cli/auth/import.mdx +++ b/src/pages/cli/auth/import.mdx @@ -33,9 +33,9 @@ Select the "Cognito User Pool only" option when you've run `amplify import auth` Run `amplify push` to complete the import procedure. - -For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. - +import attributesCallout from "/src/fragments/common/writable-vs-mutable-attributes.mdx"; + + ## Import an existing Identity Pool From 672f59e4ae67af280ec18feb034b82b7ceaeb779 Mon Sep 17 00:00:00 2001 From: Dan Kiuna Date: Thu, 16 Mar 2023 16:43:45 -0500 Subject: [PATCH 3/4] Updating link Co-authored-by: josef --- src/fragments/common/writable-vs-mutable-attributes.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fragments/common/writable-vs-mutable-attributes.mdx b/src/fragments/common/writable-vs-mutable-attributes.mdx index d7f3db03a77..c4788cb729a 100644 --- a/src/fragments/common/writable-vs-mutable-attributes.mdx +++ b/src/fragments/common/writable-vs-mutable-attributes.mdx @@ -1,3 +1,3 @@ -For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. Learn more about mapping social sign-in provider attributes. +For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. [Learn more about mapping social sign-in provider attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html#cognito-user-pools-specifying-attribute-mapping-requirements). \ No newline at end of file From a01d6616c181c91a685aa475fe38eb9d17fc4551 Mon Sep 17 00:00:00 2001 From: Dan Kiuna Date: Thu, 23 Mar 2023 12:28:26 -0500 Subject: [PATCH 4/4] Update text formatting to enable links --- src/fragments/common/writable-vs-mutable-attributes.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fragments/common/writable-vs-mutable-attributes.mdx b/src/fragments/common/writable-vs-mutable-attributes.mdx index c4788cb729a..c150a32bd47 100644 --- a/src/fragments/common/writable-vs-mutable-attributes.mdx +++ b/src/fragments/common/writable-vs-mutable-attributes.mdx @@ -1,3 +1,8 @@ -For social sign-in, required attributes such as email will need to be both mutable on the User Pool as well as writable on the User Pool Client. [Learn more about mapping social sign-in provider attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html#cognito-user-pools-specifying-attribute-mapping-requirements). + + For social sign-in, required attributes such as email will need to be both + mutable on the User Pool as well as writable on the User Pool Client. + + [Learn more about mapping social sign-in provider attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html#cognito-user-pools-specifying-attribute-mapping-requirements). + \ No newline at end of file