Uploaded image for project: 'VuFind'
  1. VuFind
  2. VUFIND-368

New MultiAuth authentication handler

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.1
    • Component/s: Admin
    • Labels:
      None

      Description

      The MultiAuth Authentication plugin enables chaining of multiple authentication plugins. I'm using this to chain the standard VuFind ILS driver and a custom LDAP driver that has extra ILS synchronisation points to handle specific functionality (e.g. staff ID's are encoded a special way that isn't easy to directly map). Authentication plugins are executed in order and the first successful authentication is returned with the rest ignored. The last error message is used to be returned to the calling function.

      The plugin works by being defined as the authentication handler for the system and then defining its own order for plugins. A sample is included below:
      <pre>
      [Authentication]
      method = MultiAuth

      [MultiAuth]
      method_order = ILS,USQLDAP
      filters = username:strtoupper,username:trim,password:trim
      </pre>

      The filters follow the format fieldname:PHP string function. We can see we upper case the username and trim the username and password fields. This is done to enable common filtering before handing off to the authentication handlers. In the example USQLDAP is the name of the local authentication plugin and ILS is the standard VuFind ILS driver.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pasamio Sam Moffatt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: