Shiro
  1. Shiro
  2. SHIRO-73

Add Authentication Caching to AuthenticatingRealm

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      Description

      Stateless clients would benefit from an authentication cache.

      For example if a stateless client may make several authentication requests within a few seconds.

      Ideally the cache timeouts would be different. For example i might want to sent the Authentication cache to 30 seconds, but the Authorization cache to longer.

      (From previous email to Les)

      I created a Realm that authenticates against a URL, if the user has
      access. The problem is that we have a stateless client [maven2] that
      connects to our server[Nexus], and needs to authenticate each time.
      This means the same user needs to authenticate 9+ times in a few
      seconds (for a single task).

        Activity

        Toby Stevens created issue -
        Jeremy Haile made changes -
        Field Original Value New Value
        Assignee Jeremy Haile [ jhaile ]
        Alan Cabrera made changes -
        Fix Version/s 1.0 [ 12313312 ]
        Component/s Caching [ 12312405 ]
        Project JSecurity [ 12310812 ] Ki [ 12310890 ]
        Key JSEC-55 KI-58
        Component/s Realms [ 12312407 ]
        Alan Cabrera made changes -
        Fix Version/s 1.0 [ 12313690 ]
        Alan Cabrera made changes -
        Component/s Realms [ 12312681 ]
        Component/s Caching [ 12312674 ]
        Niclas Hedhman made changes -
        Project Ki [ 12310890 ] Shiro [ 12310950 ]
        Key KI-58 SHIRO-73
        Assignee Jeremy Haile [ jhaile ]
        Component/s Caching [ 12312674 ]
        Component/s Realms [ 12312681 ]
        Fix Version/s 1.0 [ 12313690 ]
        Les Hazlewood made changes -
        Assignee Les Hazlewood [ lhazlewood ]
        Les Hazlewood made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Les Hazlewood made changes -
        Summary Add Authenticating Cache to AuthenticatingRealm Add Authentication Caching to AuthenticatingRealm
        Issue Type Improvement [ 4 ] New Feature [ 2 ]
        Hide
        Les Hazlewood added a comment -

        I implemented this feature to trunk over the weekend - 100% test coverage for methods and lines in AuthenticatingRealm and its parent class. Please try it out!

        Show
        Les Hazlewood added a comment - I implemented this feature to trunk over the weekend - 100% test coverage for methods and lines in AuthenticatingRealm and its parent class. Please try it out!
        Les Hazlewood made changes -
        Fix Version/s 1.2.0 [ 12315478 ]
        Affects Version/s 1.1.0 [ 12314742 ]
        Les Hazlewood made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Les Hazlewood made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        791d 4h 51m 1 Les Hazlewood 08/Apr/11 20:01
        In Progress In Progress Open Open
        291d 16m 1 Les Hazlewood 24/Jan/12 19:17
        Open Open Closed Closed
        5s 1 Les Hazlewood 24/Jan/12 19:17

          People

          • Assignee:
            Les Hazlewood
            Reporter:
            Toby Stevens
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development