Skip to content

Commit 94dc640

Browse files
fix(CLI/JS): Updating social sign-in attribute mappings callout on imported Auth (#5223)
* Updating social sign in attribute mappings callout on imported Auth * adding callout to fragments/common * Updating link Co-authored-by: josef <[email protected]> --------- Co-authored-by: josef <[email protected]>
1 parent f56a0c1 commit 94dc640

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Callout warning={true}>
2+
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).
3+
</Callout>

src/fragments/lib/auth/js/start.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ Amplify.configure({
127127
// You can get the current config object
128128
const currentConfig = Auth.configure();
129129
```
130-
<Callout warning={true}>
131-
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 <ExternalLink href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html">create a new UserPool client</ExternalLink> and mark the required attribute as mutable.
132-
</Callout>
130+
import attributesCallout from "/src/fragments/common/writable-vs-mutable-attributes.mdx";
131+
132+
<Fragments fragments={{all: attributesCallout}} />
133133

134134
### Note about OAuth configuration parameters
135135
These settings can be found in the Cognito User Pools console under **App Integration** section

src/pages/cli/auth/import.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Select the "Cognito User Pool only" option when you've run `amplify import auth`
3333

3434
Run `amplify push` to complete the import procedure.
3535

36-
<Callout warning={true}>
37-
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 <ExternalLink href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html">create a new UserPool client</ExternalLink> and mark the required attribute as mutable.
38-
</Callout>
36+
import attributesCallout from "/src/fragments/common/writable-vs-mutable-attributes.mdx";
37+
38+
<Fragments fragments={{all: attributesCallout}} />
3939

4040
## Import an existing Identity Pool
4141

0 commit comments

Comments
 (0)