 <p>OAuth is a concept, and not any library which you can inject, (of course libraries exists to implement that)</p> <p>So if you want to have OAuth in your application (i.e your application has its own OAuth), you have to setup following things </p> <ul> <li>Authentication Server</li> <li>Provide Provision to Manage OAuth Clients</li> <li>Manage AccessTokens</li> </ul> <p>Check out the OAuth 2.0 Specification to get clear understanding of how it works and how to build your own.</p> <p><a href="https://tools.ietf.org/html/rfc6749" rel="nofollow">https://tools.ietf.org/html/rfc6749</a></p>