This application allows the users to sign in with their Twitter account using OAuth 1a APIs provided by Twitter. One benefit of OAuth is the ability to use third-party authentication systems to authenticate our users. This functionality is implemented at the login & register page.
- Add the
Microsoft.AspNetCore.Authentication.Twitter
NuGet package to the project. - Navigate to twitter developer portal dashboard and sign in.
- Create a project within the twitter developer portal.
- Click on
Add App
. Insert the App name then record the generatedAPI Key
,API Key Secret
. - In the App Settings page, select
Edit
in the Authentication settings section, then:- Enable 3-legged OAuth
- Request email address from users
- Fill out the required fields and select Save