Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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 builder
- Loading branch information
Showing
with
795 additions
and 0 deletions.
- +51 −0 README.md
- +397 −0 oauth2_http/java/com/google/auth/oauth2/TokenVerifier.java
- +270 −0 oauth2_http/javatests/com/google/auth/oauth2/TokenVerifierTest.java
- +20 −0 oauth2_http/testresources/federated_keys.json
- +49 −0 oauth2_http/testresources/iap_keys.json
- +4 −0 oauth2_http/testresources/legacy_federated_keys.json
- +4 −0 oauth2_http/testresources/service_account_keys.json
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.