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

X509 auth does not work due to auth source being :external

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      The driver documents (https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-create-client) :auth_source to be of a String type. However, the driver uses :external symbol to represent the $external auth source. This symbol, when passed to the server, fails x509 auth as follows:

      D, [2019-09-04T17:38:05.105657 #20412] DEBUG -- : MONGODB | localhost:32101 | external.authenticate | FAILED | wrong type for field ($db) symbol != string (13111) | 0.000392059s
      

      Eliminating the conversion from $external to :external makes x509 auth work.

            Assignee:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: