A minimal dotnetcore library for authorising against OAuth services, useful for e.g. connecting to the Twitter API.
Grab your oAuth credentials and create an OAuthConfig
instance; then best used as an additional handler for HttpClient
:
using ArrayOfBytes.OAuth.Client;
...
var config = new OAuthConfig(...);
var handler = new OAuthHttpMessageHandler(config);
this.client = new HttpClient(handler);
Subsequent requests will have an Authorization: OAuth ...
header. For further examples; have a look
at TeensyTwitter which uses this library.