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

java: oauth improvements including token refresh #3682

Merged
merged 13 commits into from
May 24, 2024
Merged

Conversation

dcb6
Copy link
Contributor

@dcb6 dcb6 commented May 22, 2024

improvements:

  • implement token refresh (via client credentials only, not by refresh token)
  • handle token prefix
  • throw better exceptions

@dcb6 dcb6 force-pushed the burke/fer-1779-java-oauth branch from 4b64305 to 286f317 Compare May 24, 2024 02:07
@@ -37,6 +37,6 @@ public String get() {
TokenResponse authResponse = fetchToken();
this.accessToken = authResponse.getAccessToken();
}
return "Bearer " + (accessToken != null ? accessToken : fetchToken());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small separate improvement -- i already check above if access token is null

@dcb6 dcb6 changed the title [WIP] java: oauth improvements including token refresh java: oauth improvements including token refresh May 24, 2024
@dcb6 dcb6 marked this pull request as ready for review May 24, 2024 02:15
@dcb6 dcb6 requested a review from dsinghvi as a code owner May 24, 2024 02:15
@dcb6 dcb6 merged commit c222939 into main May 24, 2024
23 checks passed
@dcb6 dcb6 deleted the burke/fer-1779-java-oauth branch May 24, 2024 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants