Skip to content
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

Auth request shouldn't send old authToken #45

Open
Furgas opened this issue Jul 20, 2020 · 0 comments
Open

Auth request shouldn't send old authToken #45

Furgas opened this issue Jul 20, 2020 · 0 comments

Comments

@Furgas
Copy link

Furgas commented Jul 20, 2020

When sending Auth request, the header with authToken is added (if set). With long running process it sometimes triggers "auth credentials have expired" error. My quick&dirty patch for this:

--- src/Zimbra/Soap/Client/Http.php.org
+++ src/Zimbra/Soap/Client/Http.php
@@ -237,7 +237,7 @@
     public function doRequest(SoapRequest $request)
     {
         $this->soapMessage = new SoapMessage;
-        if(!empty($this->_authToken))
+        if(!empty($this->_authToken) && !($request instanceof \Zimbra\Admin\Request\Auth))
         {
             $this->soapMessage->addHeader('authToken', $this->_authToken);
         }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant