How to implement an OAuth provider in Java?

I have many problems trying to implement an OAuth provider.

I would like to know if anyone has successfully used an Oauth provider using Java? I found many libraries, but they all comment very poorly, and I can’t work with them. I accept any documentation that explains how the oauth provider should work and / or how to implement it.

Situation: I have some data in MySQL on my server, and I would like to authorize a "third party" to access OAuth, but I'm not sure how to do this.

+7
source share
3 answers

I assume you want to protect your Oauth server services? You did not say which server technology you are using.

For example, for REST-based servers, both Jersey and Resteasy are already integrated by Oauth.

Also, it looks like a pretty complete servlet + OAuth JSP example: http://oauth.googlecode.com/svn/code/java/example/oauth-provider/

+1
source

Here is the best alternative, it is in java and comes with demo dropwizard and Java EE applications

https://github.com/OpenConextApps/apis

+1
source

ApiFest is an open source project that implements the final version of the OAuth20 specification (RFC 6749). The project is available on github and is released under the Apache license, version 2.0. ApiFest is written in pure Java and uses Netty as a server. You can check the code - https://github.com/apifest/apifest-oauth20 . You can also see the documentation on the website - http://apifest.com .

+1
source

All Articles