Re: [Resteasy-users] Where to go for authorization examples?
Did you take a look at the JBoss AS quickstarts at http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/ In particular http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/tasks-rs/ shows an example of how to secure resources (see TaskResource.java). Mike Suppose the example in Chapter 11 had paths all under basic authentication with a login of admin and password of password. This is explained some in Chapter 12 I need an example of a test that would be able to login and prove the container got back the userPrincipal off the Request/Response HttpClient client = new HttpClient(); { setup the authorization credentials GetMethod method = new GetMethod(http://localhost:8080/ejb-integration-war/basic;); int status = client.executeMethod(method); I need something like the below line Assert.assertEquals(admin, method.getResponse().getUserPrincipal()); method.releaseConnection(); } Nick -Original Message- From: Bill Burke [mailto:bbu...@redhat.com] Sent: Friday, January 11, 2013 10:39 AM To: resteasy-users@lists.sourceforge.net Subject: Re: [Resteasy-users] Where to go for authorization examples? What do you actually want to do? JAXRS security is left up to web container on the server side, and is fully implementation dependent on the client. On the client side, its configuring Apache HC Client. On the server side, its configuring web.xml and setting your web tier to do SSL/HTTPS. On 1/11/2013 10:30 AM, Skriloff, Nicholas wrote: In the book, Restful Java with JAXRS there are examples up through chapter 11. I need examples with tests for chapter 12, Authentication and Authorization with JaxRS. Where can I get them? Sincerely, Nick Skriloff , ME , MCP, SCJP Information Technology Specialist Darden Information Services Voice 434 243 5025 Fax 434 243 2279 skrilo...@darden.virginia.edu -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ 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 -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
[Resteasy-users] Where to go for authorization examples?
In the book, Restful Java with JAXRS there are examples up through chapter 11. I need examples with tests for chapter 12, Authentication and Authorization with JaxRS. Where can I get them? Sincerely, Nick Skriloff , ME , MCP, SCJP Information Technology Specialist Darden Information Services Voice 434 243 5025 Fax 434 243 2279 skrilo...@darden.virginia.edu -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Where to go for authorization examples?
What do you actually want to do? JAXRS security is left up to web container on the server side, and is fully implementation dependent on the client. On the client side, its configuring Apache HC Client. On the server side, its configuring web.xml and setting your web tier to do SSL/HTTPS. On 1/11/2013 10:30 AM, Skriloff, Nicholas wrote: In the book, “Restful Java with JAXRS” there are examples up through chapter 11. I need examples with tests for chapter 12, “Authentication and Authorization with JaxRS.” Where can I get them? Sincerely, Nick Skriloff , ME , MCP, SCJP Information Technology Specialist Darden Information Services Voice 434 243 5025 Fax 434 243 2279 skrilo...@darden.virginia.edu -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ 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 -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Where to go for authorization examples?
Suppose the example in Chapter 11 had paths all under basic authentication with a login of admin and password of password. This is explained some in Chapter 12 I need an example of a test that would be able to login and prove the container got back the userPrincipal off the Request/Response HttpClient client = new HttpClient(); { setup the authorization credentials GetMethod method = new GetMethod(http://localhost:8080/ejb-integration-war/basic;); int status = client.executeMethod(method); I need something like the below line Assert.assertEquals(admin, method.getResponse().getUserPrincipal()); method.releaseConnection(); } Nick -Original Message- From: Bill Burke [mailto:bbu...@redhat.com] Sent: Friday, January 11, 2013 10:39 AM To: resteasy-users@lists.sourceforge.net Subject: Re: [Resteasy-users] Where to go for authorization examples? What do you actually want to do? JAXRS security is left up to web container on the server side, and is fully implementation dependent on the client. On the client side, its configuring Apache HC Client. On the server side, its configuring web.xml and setting your web tier to do SSL/HTTPS. On 1/11/2013 10:30 AM, Skriloff, Nicholas wrote: In the book, Restful Java with JAXRS there are examples up through chapter 11. I need examples with tests for chapter 12, Authentication and Authorization with JaxRS. Where can I get them? Sincerely, Nick Skriloff , ME , MCP, SCJP Information Technology Specialist Darden Information Services Voice 434 243 5025 Fax 434 243 2279 skrilo...@darden.virginia.edu -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ 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 -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users