Soap call requires username/password

Created on 9 May 2018, about 6 years ago
Updated 11 December 2023, 7 months ago

I came across a situation where I'm making a soap call that requires a username/password to gain access. There is currently no option to pass this information along when doing a soap call through the migration tool.

Would need the ability to pass in a username, password, and an optional namespace to the header. This would need to be a change so that all previous calls to soap would not be impacted by this, and would only come into play if the information was entered into the yml.

Possibly something as simple as:

username: myusername
password: mypassword
namespace: mynamespace (optional)

If these values are passed in then add them to SoapHeader, otherwise proceed as normal

✨ Feature request
Status

Needs review

Version

4.0

Component

API

Created by

πŸ‡ΊπŸ‡ΈUnited States rshafakian

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update 7 months ago
    195 pass
  • πŸ‡΅πŸ‡±Poland pjmuszynski

    Hi @mbatterton thanks for the patch!

    I'm not sure about these lines:

            // Required method.
            $client->__soapCall('Initialize', []);
    

    I'm not sure if that's my ignorance about the SOAP standard, but those don't work in my case.

    Please review the patch that I'm attaching (against 6.0.x), and let's chat about the correct solution. Thanks!

Production build 0.69.0 2024