-
Notifications
You must be signed in to change notification settings - Fork 131
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 sessions and refresh tokens to Users Management API #661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments; a few other things:
- Any reason to not also add support for the
/sessions
endpoints here? e.g., https://auth0.com/docs/api/management/v2/sessions/get-session. Or is that going to follow in a standalone PR? - It appears this branch is out-of-date with main and a CI check is failing, will need to update the branch with latest main and address CI failure.
Related to the /sessions
endpoint, I believe the schema is the same for both /sessions
and /users/{userId}/sessions
. So we may want to consider where the new classes are packaged so they can be reused, maybe it makes sense to have a sessions
package? Or maybe keeping them in users
is ok, what do you think?
EDIT: One more question - have the new methods introduced here been tested against a live server to verify everything is working as expected?
src/main/java/com/auth0/client/mgmt/filter/CheckpointPaginationFilter.java
Outdated
Show resolved
Hide resolved
src/test/java/com/auth0/json/mgmt/users/refreshtokens/RefreshTokensPageTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/auth0/json/mgmt/users/refreshtokens/RefreshTokensPageTest.java
Outdated
Show resolved
Hide resolved
Earlier it was not added in JIRA, now I have added /sessions and /refresh-tokens API's in the same PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need some minor javadoc updates
Changes
Adds support for the following APIs:
https://auth0.com/docs/api/management/v2/users/get-refresh-tokens-for-user
https://auth0.com/docs/api/management/v2/users/delete-refresh-tokens-for-user
https://auth0.com/docs/api/management/v2/refresh-tokens/get-refresh-token
https://auth0.com/docs/api/management/v2/refresh-tokens/delete-refresh-token
https://auth0.com/docs/api/management/v2/users/get-sessions-for-user
https://auth0.com/docs/api/management/v2/users/delete-sessions-for-user
https://auth0.com/docs/api/management/v2/sessions/get-session
https://auth0.com/docs/api/management/v2/sessions/delete-session
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.
Checklist