Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-13403

Update user module to change the auth caching mechanism and fix some related issues

    Details

      Description

      There are 3 problems with the current user 2.5.0 setup:

      1) the authn cache uses a syncronized map so it is not centrally
      controllable or configurable and perfomance in many threads would be
      poor

      • this can be switched over to use a central cache
        2) the authn cache only takes effect if using webdav or logging in via
        the login tool - JCR and other things that call the authenticate
        method in UDS would not benefit from the caching
      • this can be fixed by forcing the authenticate method to call
        through the cached authentication mechanism
        3) some of the UDS methods make repeated calls to the provider before
        the cache is checked, in my testing it looks like 3 calls go to the
        provider for every user that is looked up for the first time, after
        the first lookup the cache is used correctly
      • this can be fixed by simply correcting the methods which are making
        the extra calls to the provider to use the cache instead

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  aaronz Aaron Zeckoski (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code