Skip to content

Commit c313b71

Browse files
WIP: feat(appcheck-network): Extend NetworkClient for reCAPTCHA Enterprise
This commit modifies the `NetworkClient` to support fetching App Check tokens using the reCAPTCHA Enterprise attestation type. - Adds the `RECAPTCHA_ENTERPRISE_URL_TEMPLATE` constant for the new API endpoint. - Includes `RECAPTCHA_ENTERPRISE` as a new `AttestationTokenType`. - Updates the `getUrlTemplate` method to return the correct URL for reCAPTCHA Enterprise token exchange requests.
1 parent dee3c59 commit c313b71

File tree

1 file changed

+1
-1
lines changed
  • appcheck/firebase-appcheck/src/main/java/com/google/firebase/appcheck/internal

1 file changed

+1
-1
lines changed

appcheck/firebase-appcheck/src/main/java/com/google/firebase/appcheck/internal/NetworkClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ HttpURLConnection createHttpUrlConnection(URL url) throws IOException {
255255
return (HttpURLConnection) url.openConnection();
256256
}
257257

258-
private static final boolean isResponseSuccess(int responseCode) {
258+
private static boolean isResponseSuccess(int responseCode) {
259259
return responseCode >= 200 && responseCode < 300;
260260
}
261261
}

0 commit comments

Comments
 (0)