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

#254 auth0 access token alternative #256

Closed
wants to merge 15 commits into from

Conversation

tubbynl
Copy link
Contributor

@tubbynl tubbynl commented Oct 4, 2023

Fixes #254

This adds a Auth0ManagementTokenProvider (extracted from Auth0ManagementAPI) so it can be retained / reinvoked when a new machine2machine token is required.

Other than that the usage of auth0 ManagementAPI is responsiblity of Auth0AuthenticationService only (easier to replace calls on this API).

ManagementAPI has been wrapped in a ManagementAPISupplier which handles refreshing the token if required

@tubbynl tubbynl marked this pull request as ready for review October 4, 2023 20:51
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [15.32%] 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 1% 🍏
ManagementAPISupplier.java 0% 🍏
Auth0RoleService.java 0% 🍏
Total Project Coverage 71.61% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [20.66%] 🍏
ManagementAPISupplier.java 95.65% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 1% 🍏
Auth0RoleService.java 0% 🍏
Total Project Coverage 72.33% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [20.66%] 🍏
ManagementAPISupplier.java 95.65% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 1% 🍏
Auth0RoleService.java 0% 🍏
Total Project Coverage 72.33% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [23.97%] 🍏
ManagementAPISupplier.java 95.65% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
Auth0RoleService.java 37.93% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 4% 🍏
Total Project Coverage 73.19% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [24.35%] 🍏
ManagementAPISupplier.java 96.3% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
Auth0RoleService.java 37.93% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 3.03% 🍏
Total Project Coverage 73.21% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [22.81%] 🍏
ManagementAPISupplier.java 96.3% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.49% 🍏
Auth0AuthenticationService.java 1% 🍏
Total Project Coverage 72.98% 🍏

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

File Coverage [22.93%] 🍏
ManagementAPISupplier.java 96.3% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.49% 🍏
Auth0AuthenticationService.java 1.01% 🍏
Total Project Coverage 73.03% 🍏

@tubbynl tubbynl force-pushed the feature/254-auth0-access-token-alternative branch from 6ea3a55 to 5bafc5d Compare October 6, 2023 16:55
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

File Coverage [22.35%] 🍏
ManagementAPISupplier.java 96.3% 🍏
Auth0ManagementTokenProvider.java 90.28% 🍏
ApplicationLifeCycle.java 22.05% 🍏
Auth0AuthenticationService.java 0.97% 🍏
Total Project Coverage 72.78% 🍏

@tubbynl tubbynl closed this Oct 6, 2023
@tubbynl tubbynl deleted the feature/254-auth0-access-token-alternative branch October 6, 2023 19:41
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.

auth0 management access token expiry
1 participant