Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-52862

Move logAuthentication hooks to AuthenticationSession

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Security 2021-01-25, Security 2021-02-08, Security 2021-02-22

    Description

      The AuthenticationSession is a RAII object which lives for the duration of an authentication attempt. Events that need to happen over the course of an Authentication should be migrated to its lifecycle methods, so that maintainers of saslStart and saslContinue don't need to think about them as much. The session will need methods to inform it when attempts succeed, fail(with a code), or learn the authentication names of clients.

      We should move calls to audit::logAuthentication and auth counter increments to the object.

      Attachments

        Activity

          People

            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: