users@jersey.java.net

[Jersey] Re: help needed in authentication and authorization

From: Martin Matula <martin.matula_at_oracle.com>
Date: Mon, 14 Feb 2011 17:29:39 +0100

Hi,
The simplest thing you can do is enable SSL and HTTP Basic/Digest
authentication in your application. This is typically done by setting
the right constraints in the deployment descriptor of your war file -
see the documentation for your container (websphere).
Martin

On 14.2.2011 16:49, newaz_aiub_at_yahoo.com wrote:
> Hi,
>
> I am using jersey RESTful framework to build a web service. I have
> implemented
> a small service which Produces and consumes requests.
>
> Now I need to have a authentication and authorization mechanism for my
> services. My client will use that from their Java classes(call my
> service and GET/PUT).
>
> My platform is:
> websphere 6.1,Oracle. jersey ,JEE 5.
>
> I have deployed it in websphere. Now when my client calls my service to
> PUT from Java class,I need to authenticate him and also authorize.
>
> I saw about oauth, but I am not clear how to use it in server and
> client.Can any one
> provide me a guideline or some tutorial on how to do that? My service
> is really simple and small, but need a authentication mechanism. So I
> don't need a heavyweight security also.
>
> ciao !