users@jersey.java.net

[Jersey] Re: help with authentication in test case

From: poc <dangadadanga_at_yahoo.com>
Date: Sun, 20 Feb 2011 05:45:58 -0800 (PST)

That was very helpful and solved the problem. Thank you, Pavel!

Victor




________________________________
From: Pavel Bucek-2 [via Jersey]
<ml-node+6032618-243881402-318608_at_n2.nabble.com>
To: poc <dangadadanga_at_yahoo.com>
Sent: Wed, February 16, 2011 12:07:42 PM
Subject: Re: help with authentication in test case


Hello Victor,

see https-clientserver-grizzly sample [1]. Its not very nice or
straightforward, additionally jersey-test-framework is not used (this
solution is only applicable to grizzly) but it works.

Feel free to file enhancement request for this functionality, we
definitely could have better solution.

Hope it helps.

Regards,
Pavel



[1]
http://download.java.net/maven/2/com/sun/jersey/samples/https-clientserver-grizzly/1.6-SNAPSHOT/https-clientserver-grizzly-1.6-SNAPSHOT-project.zip




On 02/15/2011 10:02 PM, poc wrote:

> Hello,
>
> I have a jersey service deployed under websphere. Authentication was set up
> so that in my service I can say
> request.getUserPrincipal().getName() and I get the user's id.
>
> The problem I run into is setting up a test case (using JerseyTest) to
> provide the userPrincipal. Has anybody tried it?
>
> Thanks!
> Victor
>
>


________________________________
 
If you reply to this email, your message will be added to the discussion
below:http://jersey.576304.n2.nabble.com/help-with-authentication-in-test-case-tp6029265p6032618.html
 
To unsubscribe from help with authentication in test case, click here.


      
-- 
View this message in context: http://jersey.576304.n2.nabble.com/help-with-authentication-in-test-case-tp6029265p6045722.html
Sent from the Jersey mailing list archive at Nabble.com.