Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1731

Allowed auth mechanisms are outdated and incomplete

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0.rc0, 2.7.1
    • Affects Version/s: None
    • Component/s: Auth
    • None

      InvalidMechanism exception hardcodes the list of auth mechanisms:

              super("#{mechanism.inspect} is invalid, please use mongodb_cr, mongodb_x509, gssapi or plain.")
      

      There are three problems with this list:

      1. It's missing scram and scram256.
      2. The set of accepted mechanisms depends on whether kerberos support is loaded. When kerberos support is not loaded, gssapi will be rejected and this message will be very confusing.
      3. The mechanisms are supposed to be passed as symbols, which this message is not suggesting at all.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: