Skip to content

Commit 62570ca

Browse files
added userAgent to kerberos auth
1 parent 0282809 commit 62570ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/Auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public static function bearer(string $token, ?string $userAgent = null): array
6464
* @param string $token
6565
* @return array
6666
*/
67-
public static function kerberos(string $token): array
67+
public static function kerberos(string $token, ?string $userAgent = null): array
6868
{
6969
return [
70-
'user_agent' => self::$userAgent,
70+
'user_agent' => $userAgent ?? self::$defaultUserAgent,
7171
'scheme' => 'kerberos',
7272
'principal' => '',
7373
'credentials' => $token

0 commit comments

Comments
 (0)