Skip to content

Commit 8774766

Browse files
frozencemeterysimo5
authored andcommitted
Ensure gssapi_session actually contains MagBearerToken
Fallout from #98 Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Closes #100
1 parent 3ef79e2 commit 8774766

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/t_spnego.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
r = sess.get(url, auth=HTTPKerberosAuth())
1313
if r.status_code != 200:
1414
raise ValueError('Spnego failed')
15+
16+
c = r.cookies
17+
if not c.get("gssapi_session").startswith("MagBearerToken="):
18+
raise ValueError('gssapi_session not set')

0 commit comments

Comments
 (0)