OAuth2 with Apache CXF


Securing Restful Web Services with OAuth2

An overview on the OAuth2 security authorization protocol and its implementation with Apache CXF.

Quick Background

OAuth and OAuth2 protocols are two successive versions of an open protocol that allows you to protect your valuable web application resources against an unauthorized access, in a simple and standard method. In this post, we will assume that the resources to be protected are being served by a set of Restfull web services. These Restfull are supposed to be taught, how to protect the resources that they serve in order to assuming the responsibility of judging an access request, and deciding whether to accept it, or to reject it.

OAuth2 is the second and latest version of this protocol that enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or…

View original post 1,840 more words