Results 1 to 3 of 3

Thread: CAS and a Servlet accessed programmatically

  1. #1
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default CAS and a Servlet accessed programmatically

    Hi,

    We created a servlet that is supposed to be access programmatically vs. via a web browser. We want to protect it using the features available to protecting web services via Acegi, i.e. the stuff detailed under Advanced CAS Usage.

    I have written code that will retrieve a ticket to be sent. However, I am struggling with the set up that should be used to handle this. I set up the application to use CAS, but obviously it just tries to redirect to the CAS login .

    Is what I want to do possible outside of the normal web service paradigm? If so, what additional set up do I need?

    Thanks
    -Scott

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

    Default

    Sounds like you're on the right track, but need to switch the SecurityEnforcementFilter.authenticationEntryPoint from CasProcessingFilterEntryPoint to BasicProcessingFilterEntryPoint.

  3. #3
    Join Date
    Aug 2004
    Location
    Roselle Park, NJ
    Posts
    167

    Default

    Thanks, that did the trick!

Posting Permissions

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