title: OAuth token generation process in class library
body: <p>I have an existing application developed in traditional ASP.Net code behind, currently, we have a custom token generation process. So basically aspx.cs invoking class library which contains the token generation logic and returning to aspx.cs file. Now the requirement is implementing OAuth token-based authentication using the same structure. </p>
  
  <p>I have gone through lot of articles and everything is in Web API. But my requirement is how can I do the OAuth token-based authentication using the C# class library. Please help me how to do that. Step by step guidance will be better for me.</p>
  
  <p>Thanks in advance.</p>