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

Allow the library user to explicitly set the "current" time. #98

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

bbockelm
Copy link
Contributor

For XRootD, we decided that the "time" the session token should be evaluated should be when the session starts and not when the operation is attempted; this allows session authorizations to live longer than the token (this matches how X.509 works -- expiration time is only checked at start).

Hence, at the SciTokens library level we must allow the user to explicitly set the clock backward for token evaluation.

Implementation is rather straightforward - unit test is included.

For XRootD, we decided that the "time" the session token should be
evaluated should be when the session starts and not when the operation
is attempted; this allows session authorizations to live longer than
the token (this matches how X.509 works -- expiration time is only
checked at start).

Hence, at the SciTokens library level we must allow the user to
explicitly set the clock backward for token evaluation.
@bbockelm bbockelm requested a review from djw8605 October 15, 2022 20:03
Copy link
Contributor

@djw8605 djw8605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@djw8605 djw8605 merged commit f85f271 into scitokens:master Oct 19, 2022
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

Successfully merging this pull request may close these issues.

2 participants