-
Notifications
You must be signed in to change notification settings - Fork 736
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
Update to newer version of jjwt library #1727
Conversation
NOTE: I expect this will fail code coverage due the reflective code not being covered. I can manually override that. |
When I went to run tests on the reflection code I ran into a number of errors. A few were straighfoward fixes but not all. The issue requiring the biggest change as that some JWT suite classes were being loaded as the JwtBuilderUtil class was being loaded, or at least before the buildJwt() method started executing. I had to move the JWT calls into a nested class to delay the loading of JWT suite classes until inside a try-catch where I could handle it as expected.
@ihrigb |
src/main/java/org/kohsuke/github/extras/authorization/JwtBuilderUtil.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
@bitwiseman I don't mind at all. Thanks for the testing effort. I marked the PR ready. |
This makes it so we only need to check once for which implementation to use.
Fixes: #1724
Description
jjwt recently introduced an incompatible change in their API. This addresses and fixes it. (see #1724)
This may leed to problems as jjwt is an optional dependency. Users would also need to update the jjwt version once they will update to a new build of the github-api.
Before submitting a PR:
@link
JavaDoc entries to the relevant documentation on https://docs.github.com/en/rest .mvn -D enable-ci clean install site
locally. If this command doesn't succeed, your change will not pass CI.main
. You will create your PR from that branch.When creating a PR: