Results 1 to 2 of 2

Thread: How to secure a Web Service with ACEGI

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Bologna, Italy
    Posts
    79

    Default How to secure a Web Service with ACEGI

    Our project is not to the point where we have to implement a Web Service but I think it's good time to start asking questions. Does acegi offer something to secure WS'es or is one forced to use the industry standars (does that mean CAS only?). Any real world examples or links would be really usefull. Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Most people secure web services in two ways with Acegi Security:

    1. Protecting the web services endpoint URLs, such as /ws/** with a ROLE_WEB_SERVICE or similar. This ensures that only authorized principals can invoke the web service. Generally BASIC authentication is used with the web service (as nearly all web services support BASIC authentication out-of-the-box, and indeed implementing it a BASIC authentication client from scratch is a very simple exercise).

    2. Protecting individual methods on the service layer that the web services act as a facade to. So, your FooManager.create() method is accessible by the FooManagerHttpInvoker web service. You can elect to have very little security at the web request level (ie protecting /ws/FooManagerHttpInvoker**), and instead rely on MethodSecurityInterceptor to protect FooManager.create=ROLE_FOO_CREATION. Any AuthorizationExceptions are therefore transported back to the client, which is more informative than a 403 error (SC_FORBIDDEN).
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Similar Threads

  1. Replies: 5
    Last Post: May 2nd, 2006, 02:11 PM
  2. Securing Spring-based services with Acegi
    By Andrei Lissovski in forum Security
    Replies: 3
    Last Post: Sep 23rd, 2005, 06:56 PM
  3. Replies: 2
    Last Post: Apr 28th, 2005, 10:11 AM
  4. Replies: 9
    Last Post: Feb 8th, 2005, 09:25 PM
  5. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •