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

oauth2: Add ability to purge old access tokens #738

Closed
aeneasr opened this issue Jan 15, 2018 · 0 comments
Closed

oauth2: Add ability to purge old access tokens #738

aeneasr opened this issue Jan 15, 2018 · 0 comments
Assignees
Labels
feat New feature or request. package/oauth2
Milestone

Comments

@aeneasr
Copy link
Member

aeneasr commented Jan 15, 2018

This should probably be an endpoint like:

POST /oauth2/purge

{
  "before": time.Time,
  "after": time.Time,
}
@aeneasr aeneasr added feat New feature or request. package/oauth2 labels Jan 15, 2018
@aeneasr aeneasr added this to the 1.0.0-alpha1 milestone Jan 15, 2018
@aeneasr aeneasr self-assigned this Jan 15, 2018
aeneasr pushed a commit that referenced this issue Feb 6, 2018
Previously, no way of removing old access tokens from the database.
This patch adds a new endpoint (`POST /oauth2/flush`) capable of
flushing old / stale access tokens.

Additionally, `hydra token flush` was added which is the CLI command
for flushing tokens using the api.

Closes #738
@aeneasr aeneasr closed this as completed in ed0aa28 Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request. package/oauth2
Projects
None yet
Development

No branches or pull requests

1 participant