File tree
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -161,10 +161,11 @@ public final long getExpirationTimeMilliseconds() {
|
161 | 161 | * @return {@code true} if verified successfully or {@code false} if failed
|
162 | 162 | */
|
163 | 163 | public boolean verify(GoogleIdToken googleIdToken) throws GeneralSecurityException, IOException {
|
164 |
| -// check the payload |
165 |
| -if (!super.verify(googleIdToken)) { |
| 164 | +// check the payload only |
| 165 | +if (!super.verifyPayload(googleIdToken)) { |
166 | 166 | return false;
|
167 | 167 | }
|
| 168 | + |
168 | 169 | // verify signature, try all public keys in turn.
|
169 | 170 | for (PublicKey publicKey : publicKeys.getPublicKeys()) {
|
170 | 171 | if (googleIdToken.verifySignature(publicKey)) {
|
|
You can’t perform that action at this time.
0 commit comments