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.
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.
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
Compruebe este ejemplo Jersey + Oltu + Oauth: https://bitbucket.org/dobromyslov/oauth2-example/src /
La explicación de cómo funciona se encuentra aquí:
Http://blogs.steeplesoft.com/posts/2013/07/11/a-simple-oauth2-client-and-server-example-part-i/
Y aquí:
Http://blogs.steeplesoft.com/posts/2013/07/12/a-simple-oauth2-client-and-server-example:-part-ii/
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:
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