Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to have a callback (for me to kinit) if a ticket is deemed to have expired? #155

Open
csm10495 opened this issue Oct 21, 2020 · 0 comments

Comments

@csm10495
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant