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

RFC 7009: Token Revocation #10

Merged
merged 2 commits into from
Oct 29, 2024
Merged

RFC 7009: Token Revocation #10

merged 2 commits into from
Oct 29, 2024

Conversation

vamsii777
Copy link
Contributor

@vamsii777 vamsii777 commented Oct 29, 2024

Adds the ability to revoke access and refresh tokens using the OAuth2 token revocation endpoint.

This feature provides a mechanism for clients to invalidate tokens that are no longer needed, enhancing security and compliance.

The implementation includes:

  • A new TokenRevocationHandler route handler to process revocation requests.
  • Updates to the TokenManager protocol and its implementations for revoking tokens.
  • New request and response models for the token revocation endpoint.
  • Updated tests to ensure proper handling of revocation requests.

Closes #9

Adds the ability to revoke access and refresh tokens using the OAuth2 token revocation endpoint.

This feature provides a mechanism for clients to invalidate tokens that are no longer needed, enhancing security and compliance.

The implementation includes:

- A new `TokenRevocationHandler` route handler to process revocation requests.
- Updates to the `TokenManager` protocol and its implementations for revoking tokens.
- New request and response models for the token revocation endpoint.
- Updated tests to ensure proper handling of revocation requests.

Closes #9
Enhances the token revocation endpoint by validating the Content-Type header and setting appropriate cache control headers for improved security and performance.
@vamsii777 vamsii777 merged commit 90777b9 into swift-6 Oct 29, 2024
2 checks passed
@vamsii777 vamsii777 deleted the rfc/token-revocation branch October 29, 2024 07:33
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.

Implement OAuth2 Token Revocation Endpoint
1 participant