Commit Graph
34 Commits
Author SHA1 Message Date
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 e7400722fa [visionOS] Replace TARGET_OS_XR with TARGET_OS_VISION (#11603)
In Xcode 15 beta 5, TARGET_OS_XR was replaced with TARGET_OS_VISION in ObjC and os(xrOS) was replaced with os(visionOS) in Swift.
2023-07-25 20:52:07 -04:00
Andrew Heard 56cbd2d4d8 [Auth] Fix Firebase Auth build on visionOS (#11488)
Fixed Firebase Auth SDK build issues for visionOS, along with corresponding unit test changes.
2023-06-29 15:43:06 -04:00
dc754ba49b Firebase Auth TOTP support (#11261)
Added Time-based One Time Password MFA support.

Co-authored-by: pragatimodi <110490169+pragatimodi@users.noreply.github.com>
Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
2023-06-29 10:42:07 -07:00
Yvonne Cheng 43cd9c2883 Merge App check auth integration into master branch (#11056)
* Auth integration with AppCheck (#10798)

* Auth App check integration without unit testing

* Add Unitest for AppCheck Auth Integration

* Style the format for Auth-Appcheck Integration

* Fix typo in import for FIRAppCheckInterop

* Style this file

* Fix wrong import

* Fix style for this file

* Fix style in this file

* Add Source path for FIRAppCheckInterop

* Add self to async block in Unit Test

* Fix: pass appcheckInterop to request configuration

* style the fixed files

* revert files that are only for local testing

* modify init method to avoid more changes

* remove extra comments

* upload for debug unit test

* Revert Sample changes and add appcheck into unit tests

* Fix issues in FIRAuthRequestConfiguration and typos in unit tests

* fix error loading and revert pod files

* Add spaces to keep style consistent

* pass appCheckToken as URL fragment (#10877)

* pass appCheckToken as URL fragment

* pass appcheck token as url fragments to phone provider

* for test purpose only: commented async function

* test if it is google cloud error

* formatting the file

* formatting the file

* fix comments issues

* remove printing function

* remove unused property

* Adding Unit test for passing appchecktoekn as a url fragment

* add import for FIRAppCheckTokenResultInterop

* Add separate file for FIRFakeAppCheck and Modify accordingly

* add copyright comments for bewly created files

* Add declaration for completion in FIRFakeAppCheck

* add correct param decalaration

* clean FIRFakeAppCheck.h

* add method in FIRAppcheck.h to avoid complaints

* correct copyright info

* fix typo in FIRFakeAppCheck.m

* Recover declarations

* solve comments issues

* Add changes to unit tests for changes in FIRAuthRequestConfiguration

* Add changelog

* Edit changelog
2023-03-31 17:29:06 -07:00
Yvonne ChengandRosalyn Tan d21ac642c8 Add Sign in with Apple Display Name API and unit test (#10068)
* Add api addtion for SIWA and add Function for Unit test

* Adding Unit test for apple signIn flow in FIROAuthProviderTests and FIRAuthTest

* remove AuthSample.xcodeproj fiels and application.plist file under Sample

* Revert "remove AuthSample.xcodeproj fiels and application.plist file under Sample"

This reverts commit 8578f964b9.

* remove changes in AuthSample 1/5

* remove changes in AuthSample 2/5

* remove changes in AuthSample 3/5

* remove changes in AuthSample 4/5

* remove changes in AuthSample 5/5

* overwrite with master firles to remove white space changes in the two files

* Delete Application.plist file

* Clean extra methods in FIROAuthCredentialInternal and related files to add displayname

* Add displayName in FIRVerifyAssertionRequest

* Fix issues in comments, merge GoogleAuthprovider, fix files in tests

* fix issues

* Clang-format all files

* Adding comment for testSignInWithCredentialSuccess

* Adding comments for testSignInWithCredentialSuccess

* Updates to reflect approved API.

* Address review comments.

* Update unit tests.

* Update changelog.

* Remove JSON pretty-print and add one more unit test.

---------

Co-authored-by: Rosalyn Tan <rosalyntan@google.com>
2023-03-09 11:27:55 -08:00
Andrew Heard ac17640a56 [Auth] Fix FIRGameCenterAuthProvider warning on Xcode 13 (#10809)
The method "fetchItemsForIdentityVerificationSignature:" is marked as available only on tvOS 13.5+ in Xcode 13 (tvOS 15 SDK) but was extended to tvOS 13.4.8+ in Xcode 14 (tvOS 16 SDK).

Updated the availability check to limit to tvOS 13.5+ when compiling with Xcode 13.

#no-changelog
2023-02-11 13:22:23 -05:00
chuanr e423ebad5b Use team player ID, game player ID and fetchItems for signature verification (#10441)
* Initial changes

* Update response

* Update FIRSignInWithGameCenterRequest.m

* Update FIRGameCenterAuthProvider.m

* Update FIRGameCenterAuthProvider.m

* Update FIRSignInWithGameCenterTests.m
2023-01-31 13:42:32 -08:00
Paul Beusterien ff9439a38d Fix misplaced return after error (#10677) 2023-01-12 20:21:16 -08:00
chuanr 3d6305a9fa Force to recaptcha verification flow for phone auth in Simulators (#10426) 2022-11-03 17:25:55 -07:00
Nick Cooke a09083f9d0 [v9] Reorganize FirebaseCore* modules (#9482)
* [skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`

* Reorganize FirebaseCore libraries for SPM and CP

* [skip ci] Revert "[skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`"

This reverts commit 2a837e39708c21b0a324743ab226bd6c01047de7.

* Review and fix CI

* Remove `heartbeat_logging.yml` and add `core_internal.yml`

* Remove trailing whitespace

* Fix more whitespace 😞

* Fix `core_internal.yml` scheme name

* Update `check_imports.swift` and TODO

* Review

* Add FirebaseCoreInternal pod to Firestore example's Podfile

* [skip ci] Review - remove TODOs

* [skip ci] Remove duplicate `XCTest` import
2022-03-23 06:08:14 -07:00
Paul Beusterien 4f793064da Set up Core Internal for SPM (#9298) 2022-03-23 06:07:17 -07:00
Rosalyn Tan 944416b38b Add multi-tenancy support to generic OAuth providers. (#9100)
* Add multi-tenancy support to generic OAuth providers.

* Update unit tests.

* Update changelog.

* Link issue instead of PR in changelog.
2021-12-16 11:46:32 -05:00
Paul Beusterien c7c0149351 Update to clang-format@13 (#8739) 2021-10-04 07:52:21 -07:00
Rosalyn Tan 90ccc5959e Fall back to reCAPTCHA verification in phone auth if push notification is not received (#8653)
* Fall back to reCAPTCHA verification if the APNs notification for verifying the application is not received before the timeout.

* Add unit test.

* Update changelog.

* Refactor tests.
2021-09-14 17:21:11 -07:00
Paul Beusterien efc802452d Bump travis to 12.5 (#8411) 2021-07-19 13:08:21 -07:00
Paul Beusterien 0d90f2f12d Update to clang-format 12.0.1 (#8397) 2021-07-16 11:40:42 -07:00
Paul Beusterien 446b4528e3 Fix style issue from quick merge of 8214 (#8216) 2021-06-08 11:55:06 -04:00
Paul Beusterien 05819acf2e Add check to address 8210 review (#8214)
* Add check to address 8210 review

* NULL not nil
2021-06-08 10:58:45 -04:00
Paul Beusterien 1402fc36aa Fixed analyze issues introduced in Xcode 12.5 (#8210) 2021-06-08 10:10:44 -04:00
Rosalyn Tan e09c321bcd Check if reverse client ID is a registered URL scheme before setting callback scheme (#7211)
* Check if reverse client ID is registered as a custom URL scheme before setting it as the callback scheme.

* Fix existing tests.

* Add tests.

* Update changelog.
2021-01-05 14:44:51 -05:00
Rosalyn Tan 5b7e857029 Allow Generic OAuth for Facebook and Apple when using the auth emulator. (#6702) 2020-10-08 14:09:08 -07:00
Paul Beusterien 83e898ab5c One Firebase version (#6634) 2020-10-02 12:26:22 -07:00
Rosalyn Tan 984098d794 Auth Emulator support (#6402)
* Add Auth emulator support for IdentityToolkit requests.

* Formatting.

* Store the emulator URL in FIRAuthRequestConfiguration.

* Add support for emulating the web widget and SecureTokenService.

* Explicitly cast NSInteger to long to fix warning.

* Add unit tests.

* Fix copyright notice text.

* Remove useEmulator from the public API and disable app verification features when using the emulator.

* Fix test.

* Revert changes to FIRPhoneAuthProvider -- these are unnecessary for emulator support.

* Fix test.

* Fix test.

* Address review comments.
2020-09-10 16:14:55 -07:00
Paul Beusterien 7875ae2cdb Fix internal source documentation (#6372) 2020-08-31 06:42:42 -07:00
Rosalyn Tan 8f8a5fdffe Add support for deferred OAuth provisioning (#6121)
* Use GOOGLE_APP_ID instead of CLIENT_ID if CLIENT_ID is unavailable for generic IDP and phone auth flows.

* Add a prefix to the custom URL scheme when using the Firebase app ID.

* Add tests for FIROAuthProvider.

* Add tests for FIRPhoneAuthProvider.

* Change query param from firebaseAppId to appId.

* Fix tests.

* Address review comments.

* Add changelog entry.
2020-08-04 14:28:33 -07:00
Paul Beusterien 4356c91e06 FirebaseAuth public headers for SPM (#6135) 2020-07-27 15:21:19 -07:00
Paul Beusterien d33b8b3ae1 SPM - Auth unit tests (#6011) 2020-07-09 13:31:53 -07:00
Paul Beusterien fb9e788086 Auth: Repo-relative headers and SPM (#5856) 2020-06-19 10:38:31 -07:00
Paul Beusterien d4621a636f Use preserve_paths instead of CocoaPods private (#5758) 2020-06-09 05:21:28 -07:00
Paul Beusterien 02158a204f Suppress deprecation warnings in Auth (#5439) 2020-04-22 13:19:32 -07:00
Chuan Ren b1a1a0104b Remove unused mfa request field "mfa_provider" (#5397) 2020-04-16 14:06:06 -07:00
Paul Beusterien 42655733d5 Auth repo-relative headers (#5332) 2020-04-10 11:54:51 -07:00
Paul Beusterien df75e500b0 Migrate Auth to canonical directory structure (#5318) 2020-04-08 17:52:56 -07:00