Skip to content

Commit

Permalink
update example with supported scope and adds link (#8213)
Browse files Browse the repository at this point in the history
* update example with supported scope and adds link
  • Loading branch information
ykethan authored Jan 24, 2025
1 parent 607f169 commit ddf77d3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ You need to now inform your external provider of the newly configured authentica
</Block>
</BlockSwitcher>

Learn more about using social identity providers with user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html)

### Customizing scopes for retrieving user data from external providers

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`.
Expand All @@ -230,7 +232,7 @@ export const auth = defineAuth({
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
clientSecret: secret('LOGINWITHAMAZON_CLIENT_SECRET'),
// highlight-next-line
scopes: ['email']
scopes: ['profile']
},
callbackUrls: [
'http://localhost:3000/profile',
Expand Down Expand Up @@ -277,7 +279,7 @@ export const auth = defineAuth({
});
```
<InlineFilter filters={["angular", "javascript", "nextjs", "react", "vue"]}>
- [Learn more about configuring the React Authenticator component for external providers](https://ui.docs.amplify.aws/react/connected-components/authenticator/configuration#external-providers)
[Learn more about configuring the React Authenticator component for external providers](https://ui.docs.amplify.aws/react/connected-components/authenticator/configuration#external-providers)
</InlineFilter>

## Configure OIDC provider
Expand Down

0 comments on commit ddf77d3

Please sign in to comment.