Asegurar el servicio REST basado en jersey usando OAuth 2.0


He creado servicios RESTful en java / netbeans usando la Biblioteca Jersey. Ahora quiero asegurar este servicio usando OAuth 2.0.

¿Hay alguna biblioteca o algún tutorial para lograr eso? No pude encontrar nada útil en google.

Author: orak, 2012-07-20

3 answers

Puede usar Apache Oltu (anteriormente Apache Amber): https://cwiki.apache.org/confluence/display/OLTU/Documentation

Las secciones Servidor de Autorización y Servidor de recursos explican cómo proteger sus servicios REST.

 11
Author: Lukasz Moren,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-06-15 23:37:18
 10
Author: Viacheslav Dobromyslov,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-05-06 08:50:13

Usamos spring security, think es la forma más simple y fácil, mira aquí para más información:

 2
Author: shem,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-20 15:56:33