Commit 06b717a
authored
feat: add TokenVerifier class that can verify RS256/ES256 tokens (#420)
* feat: add TokenVerifier class that can verify RS256/ES256 tokens
* test: inject HttpTransportFactory for testing
* test: inject HttpTransportFactory for testing
* fix: use google-http-client for actual signature verification
* chore: lint
* test: split test into unit and integration
Unit tests mock out the http request activity. Integration tests hit the
live urls.
* chore: lint
* fix: return the JsonWebSignature instance on verify
* test: remove IT test as the signature keys can/will change over time
* docs: add javadoc for TokenVerifier
* docs: add guide for verifying tokens in the README
* chore: remove auto-value config changes
* chore: tense, lower-case first word, no period
* chore: run formatter
* chore: more javadoc fixes
* chore: remove line from README example
* sample: add snippet showing check for additional claim
* fix: remove default constructor - users should always use builder1 parent 158d6da commit 06b717a
7 files changed
Lines changed: 795 additions & 0 deletions
File tree
- google-auth-library-java
- oauth2_http
- javatests/com/google/auth/oauth2
- java/com/google/auth/oauth2
- testresources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
246 | 295 | | |
247 | 296 | | |
248 | 297 | | |
| |||
283 | 332 | | |
284 | 333 | | |
285 | 334 | | |
| 335 | + | |
| 336 | + | |
286 | 337 | | |
287 | 338 | | |
0 commit comments