Skip to content

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

@csm10495

Description

@csm10495

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions