Is there an OAuth 2.0 Provider implementation in Java? (not oauth client)

JustGoscha picture JustGoscha · Apr 24, 2012 · Viewed 94.9k times · Source

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)?

Answer

Christophe L picture Christophe L · Jun 9, 2013

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 (http://oltu.apache.org/) is another project (now deprecated) that makes it fairly straightforward to build an OAuth2 provider. See: