Liam Newman
1b84efdbfa
Add GitHub.DependentAuthorizationProvider
...
Rather than exposing an unsafe wrapper for GitHub instances, I added a base class
that can be extended by anyone wanting to implement an authorization provider
that needs a GitHub instance to generate it's authorization string.
2021-01-14 10:32:25 -08:00
Liam Newman
c33e78a7dc
Create authorization package
2021-01-14 09:23:17 -08:00
Marcos.Cela
747c759bbb
fix code violations again
2021-01-08 10:10:44 +01:00
Marcos.Cela
e0a709676e
fix format violations
2021-01-08 09:56:05 +01:00
Marcos.Cela
a96275c286
tests for JWTTokenProvider, verifying the "Authentication" header
...
This test basically ensures that the requests made with a
JWTTokenProvider follow a valid Authentication pattern,
verifying that the header "conforms" to a valid JWT token
More information on JWT tokens can be found at:
- https://jwt.io/introduction/
2021-01-08 09:52:50 +01:00
Marcos.Cela
ca7c809feb
remove unused field MINUTES_10 from JWTTokenProvider
2021-01-08 08:21:35 +01:00
Marcos Cela López
a8a0bcb7db
Merge branch 'master' into feat/credential-provider-refresh
2021-01-07 12:03:27 +01:00
Marcos.Cela
0e2bf23830
add CODE_SCANNING_ALERT to GHEvent enum
2021-01-07 11:32:33 +01:00
Marcos.Cela
44a8b797fb
fix: JWTTokenProvider has an incorrect value for the returned authorization header
...
more info:
https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app
2021-01-07 11:23:22 +01:00
Marcos.Cela
cdede298a9
rename OrgInstallationAuthorizationProvider to OrgAppInstallationAuthorizationProvider
2021-01-07 09:53:19 +01:00
Marcos.Cela
f6ac4d3559
rename: credential provider -> authorization provider
...
This includes renames in comments, related methods,
javadocs and fields/variables.
2021-01-07 09:46:30 +01:00
seregamorph
0f4a5227e1
internal package
2021-01-05 23:03:49 +03:00
seregamorph
d16a752b43
Fix mocking Previews
2021-01-05 18:50:24 +03:00
Liam Newman
6670446037
Reenable GitHubBuilder tests
2020-12-31 09:49:51 -08:00
Liam Newman
bd39b07bb5
Fix javadoc issues
2020-12-30 14:07:37 -08:00
Liam Newman
a9438b6121
Move tests to use JWTTokenProvider
2020-12-30 10:46:45 -08:00
Liam Newman
f546cf4521
Use only credential providers internally to track credentials
...
Removes extra fields from GitHubClient.
2020-12-30 09:52:30 -08:00
Liam Newman
43efa78750
Post-merge fixes
2020-12-29 09:29:30 -08:00
Liam Newman
9e3de43802
Merge remote-tracking branch 'upstream/master' into feat/credential-provider-refresh
2020-12-29 09:19:09 -08:00
Liam Newman
cf9caa6af5
Update test to check values
2020-12-28 22:00:44 -08:00
Liam Newman
15f748358d
Merge remote-tracking branch 'upstream/master' into bugfix-883
2020-12-28 20:02:24 -08:00
Liam Newman
33d70560b8
Deprecate templateRepository() for isTemplate()
2020-12-28 18:44:30 -08:00
Liam Newman
865a49d2e8
Update GHRepository method to use Setter
...
It appears that the correct way to pass these booleans is as booleans not as strings.
Fixes #765
2020-12-28 18:07:32 -08:00
Liam Newman
4fca68c25c
Add GHRepository.Setter
2020-12-28 17:03:36 -08:00
Liam Newman
f131a0c1c2
Formatting fixes
2020-12-28 16:26:23 -08:00
Liam Newman
cd4368fa79
Merge remote-tracking branch 'upstream/master' into jae/bulk-update
2020-12-28 16:25:31 -08:00
Liam Newman
1ef0ec0432
Update src/main/java/org/kohsuke/github/GitHub.java
...
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com >
2020-12-28 15:47:28 -08:00
Liam Newman
bd0093c8ea
Change reader and writer to no longer deprecated
...
While still no recommended, these methods are more recommended than
users creating their own. These will continue to work even when
internals change, whereas user configured readers or writers may not.
2020-12-28 12:39:21 -08:00
Liam Newman
e150280010
Merge remote-tracking branch 'upstream/master' into object-base
2020-12-28 10:52:16 -08:00
Liam Newman
6a39d7fca5
Trim whitespace and end with newline
2020-12-23 17:13:27 -08:00
Liam Newman
a15e67f065
Switch formatting to spotless
...
This is change includes minimal changes required to make the switch
2020-12-23 17:13:27 -08:00
Liam Newman
7a1bce9578
Merge branch 'master' into object-base
2020-12-22 09:17:52 -08:00
Liam Newman
f2b4de7943
Merge branch 'master' into jae/bulk-update
2020-12-22 08:32:12 -08:00
Liam Newman
b3ff4ac6d9
Merge pull request #984 from gsmet/okhttp-close-responsebody
...
Close Okhttp ResponseBody instances when closing the InputStream
2020-12-21 10:20:50 -08:00
Liam Newman
1c56e7fab5
Add missing argument
2020-12-21 09:28:44 -08:00
Liam Newman
70ba4df385
Make root field transient in all classes
2020-12-18 14:58:12 -08:00
Liam Newman
8062c705e8
Merge branch 'master' into jae/bulk-update
2020-12-17 15:12:19 -08:00
Marco Ferrer
4e7ac7030c
Add beta api annotation to project
2020-12-16 16:39:48 -05:00
Liam Newman
4803daca5a
Merge branch 'master' into okhttp-close-responsebody
2020-12-15 16:21:08 -08:00
Liam Newman
facfc61316
Merge branch 'master' into jae/bulk-update
2020-12-15 16:08:41 -08:00
Liam Newman
e007284d2f
Merge branch 'master' into preview-enum-and-cleanup
2020-12-15 15:20:30 -08:00
Marco Ferrer
79b49a469c
Clean up preview declarations
2020-12-15 14:39:00 -05:00
Marco Ferrer
5888efcaef
Merge branch 'master' into add-preview-arch-rules
2020-12-15 12:41:51 -05:00
Marco Ferrer
459d1b4f56
update arch tests to add enum checks
2020-12-15 12:41:02 -05:00
Liam Newman
9151102bda
Merge pull request #998 from bitwiseman/obsolete-okhttp
...
Deprecate OkHttp 2.x connector
2020-12-12 16:49:13 -08:00
Tadas Giniotis
3b58fbc186
test "target_url"
2020-12-12 23:53:40 +02:00
Tadas Giniotis
55e589b3d9
add the "target_url" field for "status" events
2020-12-12 23:46:03 +02:00
Liam Newman
e64d64d8d8
Deprecate OkHttp 2.x connector
...
OkHttp 2.x is unsupported. OkHttpUrlFactory contains bugs and limiations which will not
be fixed and also cannot be mitigated by this library. Users should move to OkHttp3.
Closes #997
2020-12-11 17:17:08 -08:00
Jae Gangemi
37c2d9135b
- bulk update of repository options
2020-12-11 16:56:26 -07:00
Liam Newman
30c96221bd
Make wiremock less noisy with slf4j simple logger during tests
2020-12-11 13:54:47 -08:00