Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-237

Create different implementation of JaasSecurityManager

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.0.2.CR4
    • 2.0.2.CR3
    • JBossSX
    • None

      The current implementation of the JaasSecurityManager could lead to a problem where multiple threads try to authenticate concurrently.
      Both threads would try to validate the principal in the cache and fail (as the principal has not logged in yet) and proceed to authentication. The first threads authenticates the principal, but the second one removes that entry from the cache (causing a logout) and authenticates the principal again.
      One solution is to make cache validation and authentication an atomic operation, synchronized on the principal's name.

              mmoyses Marcus Moyses (Inactive)
              mmoyses Marcus Moyses (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: