Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6116

[Python Client 08..091] Add ability to negotiate SASL mechanism and add support for SCRAM, CRAM, PLAIN mechanisms

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.31
    • Component/s: Python Client
    • Labels:
      None

      Description

      On the 08..091 code path, users of the Python API are responsible for forming the SASL response themselves and passing this as an argument to the Client#start method. This approach works only for SASL interactions that do not require a 'secure' step.

      client = Client("localhost", 5672)
      client.start(response="\0guest\0guest", mechanism="PLAIN")
      

      The API will be changed so that Client#start accept username/password arguments, and that the client internally selects a suitable SASL mechanism from those offered by the server. SASL mechanisms will be included for:

      • SCRAM SHA1/25
      • CRAM-MD5
      • PLAIN
      • EXTERNAL
      • ANONYMOUS
      • AMQPLAIN/CRAM-MD5-HEX (legacy - to aid interoperability)

      The existing API will be maintain through the change. The 0-10 paths will not be impacted by this change.

        Attachments

          Activity

            People

            • Assignee:
              k-wall Keith Wall
              Reporter:
              k-wall Keith Wall
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: