Skip to content

Commit

Permalink
fix mention of amplify add auth in gen2 auth (#6538)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikhil Swaminathan <2429410+swaminator@users.noreply.github.com>
  • Loading branch information
josefaidt and swaminator authored Nov 28, 2023
1 parent b6aca0c commit d1f5336
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The preferred way to incorporate social provider sign-in is via an OAuth redirec

[OAuth 2.0](https://en.wikipedia.org/wiki/OAuth) is the common Authorization framework used by web and mobile applications for accessing user information ("scopes") in a limited manner. Common analogies you will hear in OAuth is that of boarding a plane or staying in a hotel - showing your identification is the authentication piece (signing into an app) and using the boarding pass/hotel key is what you are authorized to access.

OAuth support in Amplify uses Cognito User Pools and supports federation with social providers, which will automatically create a corresponding user in the User Pool after they sign in. With this design you do not need to include an SDK for the social provider in your app. After you set up your developer account with these social providers you can configure the `Auth` category by running `amplify add auth` and selecting the social provider option. You can then use `signInWithRedirect()` in your app to either show a pre-built "Hosted UI" or pass in a provider name (e.g. `signInWithRedirect({ provider: 'Facebook' })`) to interface directly and build your own UI. ![Image](/images/SocialAuthZ.png)
OAuth support in Amplify uses Cognito User Pools and supports federation with social providers, which will automatically create a corresponding user in the User Pool after they sign in. With this design you do not need to include an SDK for the social provider in your app. After you set up your developer account with these social providers you can configure by specifying `externalProviders` under `loginWith`. You can then use `signInWithRedirect()` in your app to either show a pre-built "Hosted UI" or pass in a provider name (e.g. `signInWithRedirect({ provider: 'Facebook' })`) to interface directly and build your own UI. ![Image](/images/SocialAuthZ.png)

</Accordion>

Expand Down

0 comments on commit d1f5336

Please sign in to comment.