Skip to content

Commit 0d873a7

Browse files
committed
added check for auth token in cookie
1 parent 09d0c0f commit 0d873a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ def has_cookies(self):
504504
:return: ``True`` if there is auth token present, else ``False``
505505
:rtype: ``bool``
506506
"""
507-
auth_token_key = "splunkd_8089"
508-
return auth_token_key in self.get_cookies().keys()
507+
auth_token_key = "splunkd_"
508+
return any(auth_token_key in key for key in self.get_cookies().keys())
509509

510510
# Shared per-context request headers
511511
@property

0 commit comments

Comments
 (0)