Skip to content

Issue #669: Allow to create ManagementAPI with a custom TokenProvider #705

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kay-horst
Copy link

Changes

Added possibility to create a com.auth0.client.mgmt.ManagementAPI instance with an implementation of com.auth0.client.mgmt.TokenProvider instead of just a fixed token string. This allows for e.g. transparent implementation of token refreshing without having to explicitly call ManagementAPI.setApiToken(...), which can be done by providing an appropriateTokenProvider implementation, which checks the expiry of the token and fetches a new one, if necessary.

References

Address issue #669.

Testing

  • This change adds test coverage
  • This change has been tested on JDK17 and JDK21.

Checklist

@kay-horst kay-horst requested a review from a team as a code owner March 25, 2025 13:29
@kay-horst kay-horst force-pushed the feature/669__allow_to_use_custom_token_provider branch from 0159221 to a43b22a Compare March 27, 2025 08:05
@kay-horst kay-horst force-pushed the feature/669__allow_to_use_custom_token_provider branch from a43b22a to d87e39c Compare April 7, 2025 11:31
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