How to implement an OAuth provider in Java?

I'm having a lot of problems trying to implement an OAuth provider.

I would like to know if anyone has successfully used an Oauth provider using Java? I found a lot of libraries but all of them are really bad commented and I cant work with them. I'm accepting any documentation that explains how an oauth provider should work and/or how implement it.

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


I assume you want to secure your server-side services with Oauth? You did not say what kind of server-side technology you are using.

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

Also, this seem to be a pretty complete servlet+JSP OAuth example: http://oauth.googlecode.com/svn/code/java/example/oauth-provider/


Here is a better alternative, It's in java and comes with demo dropwizard and Java EE applications

https://github.com/OpenConextApps/apis


ApiFest is an open-source project that implements OAuth20 specification final version (RFC 6749). The project is available at github and it is released under 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 take a look at the documentation on the site, too - http://apifest.com.

链接地址: http://www.djcxy.com/p/4978.html

上一篇: 最小化图中的交叉边

下一篇: 如何在Java中实现OAuth提供程序?