Results 1 to 3 of 3

Thread: Basic Authentication with OpenID Authentication

  1. #1
    Join Date
    Mar 2011
    Posts
    4

    Default Basic Authentication with OpenID Authentication

    Hello,

    First, my apologies if this question has already been answered. I just registered. I did a search and didn't find any thing relating to my question. Here's my question:

    We're currently using Spring Security (3) to authenticate users of our application using the OpenID authentication provider. Within the same application, I would like to expose web services that use basic authentication. Can I use basic authentication for our web services and OpenID authentication for the rest of the application?

    If our web services used the "service" context, here's the behavior I'm looking for:

    /service/** -> use basic authentication
    /** -> use OpenID authentication

    Thanks,

    - Gary

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    In Spring Security 3 you can do this by using the DelegatingAuthenticationEntryPoint. Spring Security 3.1 (still at RC1) Advanced Namespace Configuration demonstrates how this is easier by allowing multiple http configurations.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3
    Join Date
    Mar 2011
    Posts
    4

    Default

    Awesome! I'll take a look at the resources you referenced.

    Thanks for the quick reply.

    - Gary

Posting Permissions

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