Java – n OAuth 2.0 Provider implementation in Java? (not oauth client)


So basically I want to protect my APIs with OAuth 2.0 and implement an OAuth Provider to enable acquiry of accessTokens etc.

Can it be done with JOAuth out of the box?

Has anybody already implemented something like this with an Open Source library (Java)?

Best Solution

Spring Security has an OAuth sub-project with support for OAuth 1.0a and OAuth2 (both client and server). They have sample code on their GitHub repo:

Apache Amber ( is another project (now deprecated) that makes it fairly straightforward to build an OAuth2 provider. See:

Related Question