File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,20 @@ public function withDigestAuth($username, $password)
471471 });
472472 }
473473
474+ /**
475+ * Specify the NTLM authentication username and password for the request.
476+ *
477+ * @param string $username
478+ * @param string $password
479+ * @return $this
480+ */
481+ public function withNtlmAuth ($ username , $ password )
482+ {
483+ return tap ($ this , function () use ($ username , $ password ) {
484+ $ this ->options ['auth ' ] = [$ username , $ password , 'ntlm ' ];
485+ });
486+ }
487+
474488 /**
475489 * Specify an authorization token for the request.
476490 *
Original file line number Diff line number Diff line change 4949 * @method static \Illuminate\Http\Client\PendingRequest replaceHeaders(array $headers)
5050 * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
5151 * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
52+ * @method static \Illuminate\Http\Client\PendingRequest withNtlmAuth(string $username, string $password)
5253 * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
5354 * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string|bool $userAgent)
5455 * @method static \Illuminate\Http\Client\PendingRequest withUrlParameters(array $parameters = [])
You can’t perform that action at this time.
0 commit comments