OAuth Authorization Provider for asp net core
I started to study asp.net core and the first thing I tried was to find this kind of "OAuthAuthorizationServerProvider" for the implementation of ticket generation and "IAuthenticationTokenProvider" for implementations of token refresh as in usual asp.net, but did not find it. It is possible that he was looking badly, and there may be a comment such as "here is a library run for this case."
It's good that you can quite simply write your Middleware for processing requests, and associate it with some implementation of the provider through the "services" in ConfigureServices.
So, I need to have methods to get a token by username and password at "/token" and a method to get a token by a refresh-token.
public interface IOAuthProvider
Task ByPassword (OAuthProviderContext oAuthProviderContext);
Task ByRefreshToken (OAuthProviderContext oAuthProviderContext);
All the code is
It may be interesting
Pleasant data, significant and magnificent plan, as offer great stuff with smart thoughts and ideas, bunches of incredible data and motivation, the two of which I need, on account of offer such an accommodating data here.
Situs QQ Online