Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Consistent expiration handling #1135

Merged
merged 4 commits into from May 29, 2017

Conversation

chrisowhite
Copy link
Contributor

Current time > expire time = expired grant.

  • Flip expression in DateTimeExtensions.HasExpired() to read like HasExceeded().
  • Check expiration and require consent for expired consent. Also remove consent from store.
  • Remove expiration check from DefaultGrantStore that was returning null and causing callers to return invalid error statuses rather than expired. Also allows expired consents, refresh tokens, and reference tokens to be removed from the store.
  • Change reference token expiration check to use DateTimeExtensions.HasExceeded().
  • Remove DefaultGrantStore expired grant "should not load" tests.
  • Add test for expired consent.
  • Update Expired_Reference_Token test.

#1084

ADVENT\cwhite added 3 commits May 5, 2017 14:15
Fixes IdentityServer#1084
Flip expression in DateTimeExtensions.HasExpired() to read like
HasExceeded().
Check expiration and require consent for expired consent. Also remove
consent from store.
Remove expiration check from DefaultGrantStore that was returning null
and causing callers to return invalid error statuses rather than
expired. Also allows expired consents, refresh tokens, and reference
tokens to be removed from the store.
Change reference token expiration check to use
DateTimeExtensions.HasExceeded().
Remove DefaultGrantStore expired grant "should not load" tests.
Add test for expired consent.
Update Expired_Reference_Token test.
@dnfclas
Copy link

dnfclas commented May 5, 2017

@chrisowhite,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.

It will cover your contributions to all .NET Foundation-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot

@dnfclas
Copy link

dnfclas commented May 5, 2017

@chrisowhite, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, .NET Foundation Pull Request Bot

@leastprivilege
Copy link
Member

Thanks. We will look into it for v2.

@brockallen brockallen merged commit 16cfa8c into IdentityServer:dev May 29, 2017
@brockallen
Copy link
Member

Thanks!

@lock
Copy link

lock bot commented Jan 11, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants