Skip to content

Commit ae05cf6

Browse files
added kerberos auth
1 parent ac986dc commit ae05cf6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/helpers/Auth.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,19 @@ public static function bearer(string $token): array
5858
'credentials' => $token
5959
];
6060
}
61+
62+
/**
63+
* Kerberos authorization with token
64+
* @param string $token
65+
* @return array
66+
*/
67+
public static function kerberos(string $token): array
68+
{
69+
return [
70+
'user_agent' => self::$userAgent,
71+
'scheme' => 'kerberos',
72+
'principal' => '',
73+
'credentials' => $token
74+
];
75+
}
6176
}

0 commit comments

Comments
 (0)