Move logAuthentication hooks to AuthenticationSession

XMLWordPrintableJSON

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

      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:
            Benjamin Caimano (Inactive)
            Reporter:
            Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: