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

Allowed auth mechanisms are outdated and incomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0.rc0, 2.7.1
    • Component/s: Authentication
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.pudeyev Oleg Pudeyev
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: