Have you checked this out?

http://docs.jboss.org/resteasy/docs/3.0.6.Final/userguide/html/Authentication.html#d4e1730

I've never used it, but it may help.

On 1/23/2014 8:39 AM, andrew simpson wrote:
>
> I'd like to test rest services which implement oauth1.0a.
>
> What's the best way to generate the CLIENT oauth1.0a headers necessary
> to do this?
>
> I've seen how to manually construct a client request with oauth headers
> (https://github.com/ams10961/siwtjsf) but am not sure whether I can
> manipulate all the headers correctly when making the client calls from a
> rs client in an arquillian test...
>
> Has anyone managed to do this, or are there rs clients that will
> generate the oauth headers that I could use from an arquillian test?
>
> Thanks..
>
> Andrew
>
> https://github.com/ams10961/siwtjsf
>
> import javax.ws.rs.client.Client;
> import javax.ws.rs.client.ClientBuilder;
> import javax.ws.rs.client.Entity;
> import javax.ws.rs.client.WebTarget;
> import javax.ws.rs.core.MediaType;
> import javax.ws.rs.core.Response;
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to