Results 1 to 3 of 3

Thread: How do I use Basic Authentication without creating sessions?

  1. #1
    Join Date
    Nov 2004
    Posts
    18

    Default How do I use Basic Authentication without creating sessions?

    I have a server configured with Spring Security where the clients are authenticated using Basic Authentication. Each time a client is authenticated, Spring Security is creating a session and return it to the client as usual.

    The problem is that my clients (programs) are not designed to pass the sessions back to server. Instead, they only pass back the Authorization header with the user credential values. This causes each request to be re-authenticated and Spring Security to create a brand new session for each client/server interaction. Obviously, this quickly and unnecessarily exhausts available session space in the system.

    So my question is - how do I configure Spring Security to NOT create sessions at all in use cases like this? I did some searching around (including reference doc), and could not find pertaining information. Any information would be greatly appreciated.

    Regards,
    /Jong

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

    Default

    The easiest way is using the create-session attribute. If you have problems, refer to the FAQ.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

  3. #3
    Join Date
    Nov 2004
    Posts
    18

    Default

    Rob,

    Thanks for the pointer.

Tags for this Thread

Posting Permissions

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