Commit Graph
75 Commits
Author SHA1 Message Date
ea6d67df19 Test AppCheckCore 12.0.0 (Swift implementation) (#16544)
Co-authored-by: Nick Cooke <nickcooke@google.com>
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-09-23 19:22:44 -04:00
Daymon b5bbe060d8 fix(appcheck): build failure with unguarded provider (#16564) 2026-08-28 11:48:10 -05:00
Nick Cooke f94f9e521d fix(appcheck): safely disable recaptcha provider when swift dependencies are missing (#16479) 2026-08-10 14:13:45 -04:00
Austin Benoit 400d63ab8e chore(app_check): Update the app check debug token message (#16482) 2026-08-06 21:10:19 -04:00
Nick CookeandPaul Beusterien 0fbaa00708 refactor: remove site key from options; require explicit pass to recaptcha provider (#16409)
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2026-07-17 21:24:23 +00:00
Nick Cooke 80f07891e1 refactor(appcheck): remove recaptcha fallback from default provider factory (#16388) 2026-07-13 14:33:05 -04:00
Nick Cooke 669d38c472 refactor(appcheck): remove obsolete OS availability checks (#16310) 2026-06-23 14:32:06 -04:00
Morgan Chen 9c4a18f154 fix doc link (#16290) 2026-06-18 13:06:52 -07:00
Daymon 5fab704d7d fix(core): update error messages mentioning init usage (#16294) 2026-06-17 14:26:09 -05:00
Nick Cooke ec3c098738 docs(appcheck): update provider factory docs for new default (#16285) 2026-06-16 13:58:20 -04:00
Nick Cooke e9988455a2 chore: changelogs plus header comment update (#16258) 2026-06-10 17:47:19 -04:00
Nick CookeandPaul Beusterien 06d53a2ae0 feat(appcheck): implement RecaptchaEnterpriseProvider and tests (#16155)
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2026-06-10 12:08:31 -04:00
Nick Cooke ff92250a74 feat(appcheck): add helpful log for registering debug tokens (#16232) 2026-06-04 20:05:33 -04:00
Nick Cooke ed8932ba48 docs(appcheck): prefer 'AppCheckDebugToken' for debug env var injection (#16230) 2026-06-04 12:33:54 -04:00
Nick CookeandAndrew Heard 7250a60427 feat(appcheck): Add new internal, default provider (#16190)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-06-04 10:54:04 -04:00
Nick CookeandAndrew Heard fb217f507a fix(appcheck): remove redundant fac debug token logging (#16197)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-06-04 10:49:24 -04:00
Andrew HeardandNick Cooke 89ac23ee51 [App Check] Add AppAttestProviderFactory (#16182)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-05-19 12:02:26 -04:00
Daymon 6706aa8fd8 [FAL] Add limited-use token support (#15099) 2025-08-19 17:50:13 -05:00
Nick Cooke 284a986405 [AppCheck] Force link categories (#13435) 2024-07-31 19:12:40 -04:00
Yakov Manshin c590762053 [#13326] App Check Tests (#13327) 2024-07-22 08:32:30 -07:00
Nick Cooke bee45d0e4a [AppCheck] Remove unused Promises dependency (#13315) 2024-07-19 13:24:34 -04:00
Andrew Heard 64fd5c2021 Remove FIRAppCheckProtocol from FirebaseAppCheckInterop SDK (#13263) 2024-07-10 16:51:16 -04:00
Andrew Heard 61384c1223 Merge branch 'main' into release-11.0-merge
# Conflicts:
#	Firebase.podspec
#	FirebaseABTesting.podspec
#	FirebaseAnalytics.podspec
#	FirebaseAnalyticsOnDeviceConversion.podspec
#	FirebaseAppCheck.podspec
#	FirebaseAppCheckInterop.podspec
#	FirebaseAppDistribution.podspec
#	FirebaseAuth.podspec
#	FirebaseAuthInterop.podspec
#	FirebaseCore.podspec
#	FirebaseCoreExtension.podspec
#	FirebaseCoreInternal.podspec
#	FirebaseCrashlytics.podspec
#	FirebaseDatabase.podspec
#	FirebaseDynamicLinks.podspec
#	FirebaseFirestore.podspec
#	FirebaseFirestoreInternal.podspec
#	FirebaseFunctions.podspec
#	FirebaseInAppMessaging.podspec
#	FirebaseInstallations.podspec
#	FirebaseMLModelDownloader.podspec
#	FirebaseMessaging.podspec
#	FirebaseMessaging/CHANGELOG.md
#	FirebaseMessagingInterop.podspec
#	FirebasePerformance.podspec
#	FirebaseRemoteConfig.podspec
#	FirebaseRemoteConfigInterop.podspec
#	FirebaseSessions.podspec
#	FirebaseSharedSwift.podspec
#	FirebaseStorage.podspec
#	FirebaseVertexAI/Sources/VertexAIComponent.swift
#	GoogleAppMeasurement.podspec
#	GoogleAppMeasurementOnDeviceConversion.podspec
#	Package.swift
#	ReleaseTooling/Sources/FirebaseManifest/FirebaseManifest.swift
2024-06-21 15:33:16 -04:00
Andrew Heard f3ce673e62 Add FIRAppCheckTokenProtocol for use in FIRAppCheckProtocol (#13035) 2024-06-11 16:44:20 -04:00
Paul Beusterien f5309bf45b [v11] Remove unused FIRDependency class (#13053) 2024-06-04 06:56:50 -07:00
Paul Beusterien 2f70913391 Merge remote-tracking branch 'origin/main' into pb-merge-main 2024-04-17 11:40:52 -07:00
Nick Cooke b6e5270f75 [AppCheck] Migrate to GoogleUtilities's storage container (#12773) 2024-04-12 13:46:29 -04:00
Paul Beusterien 0b90011293 Merge remote-tracking branch 'origin/main' into auth-swift 2024-03-18 11:42:30 -07:00
Andrew Heard cd1ee8d2a4 Remove placeholder token constant from Firebase App Check (#12374) 2024-02-07 19:34:54 -05:00
Paul Beusterien 20847a1577 [auth-swift] Fix heartbeats for SPM (#12237) 2024-01-04 08:11:58 -08:00
Morgan Chen fc42195ad7 redeclare protocol method so it can be added to docs (#12142) 2023-11-28 17:29:22 -05:00
Andrew Heard a83297908d [App Check] Implement FirebaseAppCheck as a shim of AppCheckCore (#12067) 2023-11-07 18:54:45 -05:00
Andrew Heard 1317f08326 [App Check] Reset App Attest key state if attestKey fails (#11986) 2023-10-24 13:30:40 -04:00
Andrew Heard 3e4b72180d [App Check] Fix warning due to NSUInteger length on watchOS (#11974) 2023-10-20 16:28:46 +00:00
Andrew Heard f73ca9532c [App Check] Add failure reasons for App Attest error cases (#11956) 2023-10-19 17:28:38 -04:00
Andrew HeardandNick Cooke f3a14c249e Add FirebaseAppCheckInterop umbrella header (#11860)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2023-10-11 18:39:18 -04:00
Andrew Heard a885d5e023 [App Check] Remove usages of FIR_*_SUPPORTED_TARGETS macros (#11831) 2023-09-20 12:07:42 -04:00
Andrew Heard a471cc8120 Add FIRAppCheckProtocol to FirebaseAppCheckInterop SDK (#11660) 2023-09-14 17:11:28 -04:00
Andrew Heard 77fa63da55 [App Check] Add DeviceCheck isSupported check (#11663)
Added a DeviceCheck isSupported check and return a FIRAppCheckErrorCodeUnsupported error when not supported (e.g., when running on the simulator or older Macs). This was done to match the behaviour of the FIRAppAttestProvider.
2023-08-09 13:45:38 -04:00
Andrew Heard 4b9cbf6155 [App Check] Fix App Attest and DeviceCheck API availability (#11662)
- Updated the FIR_DEVICE_CHECK_PROVIDER_AVAILABILITY and FIR_APP_ATTEST_PROVIDER_AVAILABILITY API availability macros to reflect the set of supported platforms for DeviceCheck (iOS 11+, macOS 10.15+, macCatalyst 13+, tvOS 11+, watchOS 9+) and App Attest (iOS 14+, macOS 11.3+, macCatalyst 14.5+, tvOS 15+, watchOS 9+).

- Removed the extraneous check for the watchOS 9 SDK now that Xcode 14 is the minimum supported by Firebase.
Removed the #if TARGET_OS_IOS compiler directive in AppCheckAPITests.swift since TARGET_OS_IOS is only available in Objective-C and was always false.
2023-08-08 17:26:09 -04:00
0cbe4f2920 Firebase App Check One-time Use Tokens for Callable Functions SDK (#11270)
* draft pr for callable functions

* Adjust Functions podspec dependency on AppCheckInterop

* Add 'HTTPSCallableOptions' class

* Re-implement with new HTTPSCallableOptions type

* Revert and update Objective-C API tests

* Mark new AppCheckInterop API optional for backwards compatibility

* Preserve existing codable Functions API

* Revert integration tests

* Style

* Fix some test build breakages

* Add changelog entry

* Style

* Fix AppCheck tests

* Cleanup current approach

* Re-organize tests

* Add 'options' param to 'getContext' call

* Add success case unit test

* Shorten expectation waiting timeout

* Add remaining unit tests

* Amend current test

* Rename 'limitedUseTokens' to 'requireLimitedUseTokens'

* Fix build and tests

* Fix some renaming misses

* Fix some renaming misses (1)

* Update FirebaseFunctions/CHANGELOG.md

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/HTTPSCallableOptions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* [App Check] Always return fresh limitedUseToken (#11298)

Updated `limitedUseTokenWithCompletion:` to always return a fresh limited-used token in every invocation (removed the `ongoingLimitedUseTokenPromise` property).

---------

Co-authored-by: Nick Cooke <nickcooke@google.com>
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
2023-05-16 18:33:15 -04:00
Morgan Chen 93dbf7df4c fix undocumented appcheck (#11224) 2023-05-03 14:10:33 -07:00
Andrew Heard cd0456ec23 [App Check] Split App Check Component into separate file (#11220)
Extracted the App Check Component (FIRLibrary) into a separate file.
2023-05-03 11:32:13 -04:00
Yvonne ChengandAndrew Heard 87b07e2d36 Add limited use token to FirAppeCheck Interface (#11086)
* Add limited use token to FirAppeCheck Interface

* revise some naming

* remove extra promise and clean the logic for limitedUseToken

* ADD UNIT tests

* suppress style error

* style the file

* Fixed comments and still need to add one more test

* change testLimitedUseToken to uncached test and add error test too

* test in FIRAppCheckTestFile to make sure limited-use token is working

* style the file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* Run scripts/style.sh to format AppDelegate.swift

Script updated in https://github.com/firebase/firebase-ios-sdk/pull/11097

* comments typo fixed

* Fixed typos and add desciption to changelog.md

* solve comments

* remove extra space

* add a spce in the title

---------

Co-authored-by: Andrew Heard <andrewheard@google.com>
2023-04-17 13:55:59 -07:00
Andrew Heard 52f246ce87 [AppCheck] Fix unused isTokenAutoRefreshEnabled ivar warning (#10818)
Stopped synthesizing a backing instance variable for the `isTokenAutoRefreshEnabled` property in `FIRAppCheckSettings` because it is unused, resulting in a warning when "-Wunused-property-ivar" is enabled.

This resolves the error "FIRAppCheckSettings.m:92:1: error: ivar '_isTokenAutoRefreshEnabled' which backs the property is not referenced in this property's accessor [-Werror,-Wunused-property-ivar]" when building in google3 (where this warning is treated as an error).
2023-02-14 12:00:38 -05:00
Mike Hardy 16124731d2 Fix typo in error message (#10766) 2023-02-01 11:20:21 -08:00
Nick Cooke a6164a8f18 [AppCheck] Refine public docs (#10265)
skip ci
2022-09-26 17:27:15 -07:00
Nick Cooke c105a0de10 [AppCheck] App Attest provider is supported by watchOS 9.0+ (#10098)
* [AppCheck] App Attest provider is supported by watchOS 9.0+

* Style

* Add TODO

* [skip ci] Review
2022-08-12 14:43:23 -04:00
Nick Cooke 0373d0bf40 [AppCheck] App Attest provider is supported by tvOS 15.0+ (#10093)
* [AppCheck] Update supported targets for AppAttestProvider

* CHANGELOG update
2022-08-12 12:06:15 -04:00
Nick Cooke 62c77523de [AppCheck] DeviceCheck provider is supported by watchOS 9.0+ (#10094)
* [AppCheck] DeviceCheck provider is supported by watchOS 9.0+

* Update CHANGELOG

* trailing whitespace

* Review
2022-08-12 00:49:32 -04:00