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

Move logAuthentication hooks to AuthenticationSession

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Security 2021-01-25, Security 2021-02-08, Security 2021-02-22

      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.

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

              Created:
              Updated:
              Resolved: