Skip to content

Commit ddf77d3

Browse files
authored
update example with supported scope and adds link (#8213)
* update example with supported scope and adds link
1 parent 607f169 commit ddf77d3

File tree

1 file changed

+4
-2
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers

1 file changed

+4
-2
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers/index.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ You need to now inform your external provider of the newly configured authentica
216216
</Block>
217217
</BlockSwitcher>
218218

219+
Learn more about using social identity providers with user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html)
220+
219221
### Customizing scopes for retrieving user data from external providers
220222

221223
You can determine the pieces of data you want to retrieve from each external provider when setting them up in the `amplify/auth/resource.ts` file using `scopes`.
@@ -230,7 +232,7 @@ export const auth = defineAuth({
230232
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
231233
clientSecret: secret('LOGINWITHAMAZON_CLIENT_SECRET'),
232234
// highlight-next-line
233-
scopes: ['email']
235+
scopes: ['profile']
234236
},
235237
callbackUrls: [
236238
'http://localhost:3000/profile',
@@ -277,7 +279,7 @@ export const auth = defineAuth({
277279
});
278280
```
279281
<InlineFilter filters={["angular", "javascript", "nextjs", "react", "vue"]}>
280-
- [Learn more about configuring the React Authenticator component for external providers](https://ui.docs.amplify.aws/react/connected-components/authenticator/configuration#external-providers)
282+
[Learn more about configuring the React Authenticator component for external providers](https://ui.docs.amplify.aws/react/connected-components/authenticator/configuration#external-providers)
281283
</InlineFilter>
282284

283285
## Configure OIDC provider

0 commit comments

Comments
 (0)