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

Add Refresh Token endpoints for the Auth0 Management API #614

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

l15n
Copy link
Contributor

@l15n l15n commented Sep 20, 2024

Changes

Adds support for the Management API endpoints introduced in Manage Refresh Tokens with Auth0 Management API

API Name URL Method Added
View a refresh token information by ID GET /api/v2/refresh-tokens/{tokenId} refresh_token
Revoke a refresh token by ID DELETE /api/v2/refresh-tokens/{tokenId} delete_refresh_token
List all refresh tokens for a user GET /api/v2/users/{userId}/refresh-tokens user_refresh_tokens
Revoke all refresh tokens for a user DELETE /api/v2/users/{userId}/refresh-tokens delete_user_refresh_tokens

Adds the Auth0::Api::V2::RefreshTokens module.

Please describe both what is changing and why this is important. Include:

  • Endpoints added, deleted, deprecated, or changed
  • Classes and methods added, deleted, deprecated, or changed
  • Screenshots of new or changed UI, if applicable
  • A summary of usage if this is a new feature or change to a public API (this should also be added to relevant documentation once released)

References

https://auth0.com/docs/secure/tokens/manage-refresh-tokens-with-auth0-management-api

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of Ruby

Checklist

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.

1 participant