dotnet / dotnet/Kerberos.NET

Force refreshing ticket near expiration?

Open
#119 4 comments 0 reactions 0 assignees View on GitHub
enhancement Kerberos.NET up-for-grabs
Dominant language
C#
Stars
567
Forks
109
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
So currently as I am experimenting the ticket expiration is always the same even if you call renew/authenticate and getserviceticket multiple times. This makes me wonder what would happen if at the edge of expiration kerberos ticket is retrieved but used in the request a second after it has expired (due to just some delay).

**Describe the solution you'd like**
To avoid this I would like to force refresh/generate new ticket that would have new expiration.

**Describe alternatives you've considered**
I couldn't get this to happen any other way except when creating new instance of the KerberosClient. I obviously could just add some sleep if I can see that the ticket is about to expire, but that is not ideal.

Is this already possible in some way or maybe the usage of kerberos is incorrect here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.