-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic HTTP Auth? #97
Comments
This comment may help you: |
The BeSimple's $builder = $this->get('besimple.soap.client.builder.client_name');
$builder->withBasicAuthentication('login', 'password');
$client = $builder->build(); It would be good to add the posibility to config basic authentication in be_simple_soap:
clients:
client_name:
...
auth:
login: %soap_login%
password: %soap_password%
... and add the appropriate code to the |
Hi uelnur I had eventually tried to use that option but it still did not function This issue is two years old, I've not only since opted to just use phps Thanks anyways! On Oct 6, 2016 6:31 AM, "uelnur" [email protected] wrote:
|
Having a situation where authentication is to be handled not through a proxy, but through basic HTTP Auth
I am adapting an existing Soap interface to BeSimple's, it used to look like this:
where
SoapClient
is PHP's built in SoapClient class (which I see BeSimple's extends from)However, no where do I see an option to provide these two configuration options, UNLESS I attempt to use the proxy settings, which do not work correctly no matter how I configure it. When I don't configure auth of any kind, I get
SoapClient::__doRequest() returned non string value
but when I provide the proxy options, it takes a million years to come back withErrorException: SOAP-ERROR: Parsing WSDL: Couldn't load from {my private api url}
How do I provide these two options?
The text was updated successfully, but these errors were encountered: