/LINQ_To_Twitter_OAuth2_Sample

Twitter OAuth2 authentication Blazor WASM sample with Joe Mayo's Linq To Twitter C# Library

Primary LanguageC#MIT LicenseMIT

Kestrel Hosted Blazor WASM / LINQ To Twitter OAuth2 Sample

Joe Mayo's Linq To Twitter OAuth2 blog post

Screenshot

For this sample to work you'll need to add the file /Server/twitterkeys.ini which is called in /Server/Program.cs (line 5-13) and sets the TwitterClientID & TwitterClientSecret enviroment variables.

TwitterClientID="Your Twitter Client ID"
TwitterClientSecret="Your Twitter Client Secret"

You can obtain your Twitter OAuth2 Client ID & Client Secret at developer.twitter.com

Also at developer.twitter.com set your 'User authentication settings' to:

  • Enable 'OAuth2'
  • Type of App: 'Web App'
  • Twitter Callback URI / Redirect URL: https://127.0.0.1/OAuth2/Complete

Notable files:


Joe Mayo's LINQ to Twitter ASP.NET 6 OAuth2 GitHub Examples