If you are able/want to use OAuth 2.0 (instead of 1.0a), since I already came across this issue (OAuth 2.0 server implementation for protecting Jersey endpoints) I’d like to share the lib I used to address this [1]. I tried OLTU and personally found connect2id SDK better (whether in terms of active development or in features supported).
It doesn’t give you a fully fledged, plug-and-play OAuth server but it allows you to quickly implement all required OAuth 2.0 endpoints you may need.
[1]
https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions
Cheers,
Pedro
From: Nick Cameo [mailto:symack_at_gmail.com]
Sent: 27 July 2014 16:35
To: users
Subject: [Jersey] Re: Two legged Oauth 1 server example
Watching this thread... However, would not go with spring. By
doing so, you just introduced an additional 3000 classes.
I put my sample project aside a little while ago however,
will be revamping it again. Last I found was the apache
AAA Oauth 2implementation[1]. Maybe we can work together on
this?
[1]
https://cwiki.apache.org/confluence/display/OLTU/Documentation
Nick.