Skip to content

Add configurable clock skew#326

Open
cgostuff wants to merge 1 commit into
coreos:v3from
cgostuff:v3
Open

Add configurable clock skew#326
cgostuff wants to merge 1 commit into
coreos:v3from
cgostuff:v3

Conversation

@cgostuff
Copy link
Copy Markdown
Contributor

@cgostuff cgostuff commented Dec 14, 2021

This implements clock skew similar to AzureAD. The existing solution with 5 min nbf leeway and a configurable time function does not let you get a true 5 min clock skew, because the time.now() function used to check expiry is reused to check the nbf-constraint.

This is configurable in .NET TokenValidationParameters.ClockSkew Property, and is used like this in IdentityServer4 PrivateKeyJwtSecretValidator.cs#L106.

@jordaniversen
Copy link
Copy Markdown

Any word on this? I was also looking for such a feature.

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