The code here makes it pretty difficult to know if authentication is likely to fail due to ticket expiration.
|
except KerberosExchangeError: |
Is there any way that I can catch this error and do a kinit or something?
Right now I'm just looking for a 401, and doing a kinit, though optimally requests-kerberos could somehow percolate the error i see in logs: kerberos.GSSError: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Ticket expired', -1765328352))
to me. Thanks!
The code here makes it pretty difficult to know if authentication is likely to fail due to ticket expiration.
requests-kerberos/requests_kerberos/kerberos_.py
Line 262 in d9c78fc
Is there any way that I can catch this error and do a kinit or something?
Right now I'm just looking for a 401, and doing a kinit, though optimally requests-kerberos could somehow percolate the error i see in logs:
kerberos.GSSError: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Ticket expired', -1765328352))to me. Thanks!