Skip to content

alvaromongon/Microsoft.Extensions.Http.OAuth

Repository files navigation

Build Status

Introduction

Microsoft http extension for OAuth.

Currently supporting:

  • Application-user authentication: OAuth 1a (access token for user context)

Getting Started

Just get it and build it. I was using VS 2019

The idea is to include other types of Oauth authentication making very easy to use the library and avoiding unnecessary code and dependencies.

Oauth1a

IOAuth1aConfiguration configuration = new OAuth1aConfiguration(); // You need to create this implementation
IAuthProvider provider = new OAuth1aProtocol(configuration);

var request = new HttpRequestMessage(httpMethod, requestUri);
request.Headers.Authorization = await provider.AuthenticationHeader(request);
var result = await httpClient.SendAsync(request);

Build and Test

Building is easy since there it not special dependecies. Just update the settings json file in the integration tests, build and run the tests.

Releases

No releases published

Packages

No packages published

Languages