Commit Graph
123 Commits
Author SHA1 Message Date
renkelvin a51b4d005a Clean no-op code in linkWithEmailPassword method (#12056) 2023-11-06 20:23:29 -08:00
renkelvin 6673e7caff Use sign up endpoint for link with email password (resubmit #11925) (#12009) 2023-11-01 13:10:34 -07:00
renkelvin a15117c599 Revert "Use sign up endpoint for link with email password" (#11957) 2023-10-18 12:24:16 -07:00
renkelvin b7fd1697dd Use sign up endpoint for link with email password (#11925) 2023-10-13 16:56:34 -07: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
pragatimodiandrenkelvin 91a6974365 custom auth domain changes (#11619)
Co-authored-by: renkelvin <chuanr@google.com>
2023-09-26 21:31:44 -04:00
Andrew Heard a69962d5fc Upgrade to clang-format v17 (#11824) 2023-09-19 09:59:37 -07:00
renkelvin 009b87b7b4 Fix a bug where getProjectConfig uses http post (#11698) 2023-08-18 11:22:06 -07:00
Paul Beusterien 3995b43b98 Update to TARGET_OS_VISION (#11692) 2023-08-17 16:12:30 -04:00
renkelvinandPaul Beusterien 0cddb58d2d Auth reCAPTCHA integration (#11681)
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2023-08-16 16:32:38 -07:00
Andrew Heard 24c9cba18b [Auth] Revert reCAPTCHA integration PRs (#11617)
Reverted reCAPTCHA <-> Auth integration PRs (#11231, #11606, #11609, #11610) due to an issue with the zip build.
2023-07-26 14:20:42 -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
renkelvin 367643716b App extension shared application fix (#11605) 2023-07-25 16:27:33 -07:00
renkelvin 032abb438c Recaptcha integration master pr (#11231) 2023-07-25 14:32:48 -07:00
pragatimodi 931255bb22 shared application fix (#11554)
* shared application fix

* lint fix
2023-07-24 18:01:41 -07:00
Liubin Jiang 14ef7b1bc2 Updating API reference for constant FIRPhoneMultiFactorID and FIRTOTPMultiFactorID (#11532) 2023-07-12 09:38:37 -07:00
Nick Cooke 028153415a [Auth] Forward declare type in header (#11501) 2023-06-30 17:37:59 -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
renkelvin 26c5a715f2 Update FIRRevokeTokenRequest.h (#11419) 2023-06-12 10:23:31 -07:00
Paul Beusterien 458919f6ba Fix combined error and completion handling (#11225) 2023-05-04 11:16:40 -07:00
Nick Cooke 963cc2d6bd [Auth] Remove unreachable code (#11091)
* [Auth] Remove unreachable code

* Rename '-[FIRAuthStoredUserManager getStoredUserAccessGroupWithError:]'

* Favor 'NULL' over 'nil' for a **

* Rename '-[FIRAuthStoredUserManager setStoredUserAccessGroup:error:]'
2023-04-10 14:21:41 -04:00
renkelvin f87cfad1ea Implement token revocation public api (#11001) 2023-04-04 10:57:02 -07:00
Paul Beusterien a446367de9 Address Xcode 14.3 build warnings and a few typos (#11063) 2023-04-03 10:24:35 -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 0216c1a2bf Multi-app fix (#10805) 2023-02-10 14:01:39 -08:00
Paul Beusterien 6d66e85d14 Fix verifying typo (#10792) 2023-02-07 14:19:32 -08:00
markarndt e5b11abcf7 Fix typo. (#10783) 2023-02-06 12:23:21 -08:00
Paul Beusterien 74d80aa651 Fix breif typo (#10761) 2023-02-01 13:26:22 -08: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
Nick Cooke a9b889dd62 [Auth] Add 'kSecUseDataProtectionKeychain' flag to keychain access (#10759)
* [Auth] Add 'kSecUseDataProtectionKeychain' flag to keychain access

* Add CHANGELOG entry

* [skip ci] Update CHANGELOG

* [skip ci] Update CHANGELOG (1)
2023-01-31 16:13:35 -05:00
Paul Beusterien ff9439a38d Fix misplaced return after error (#10677) 2023-01-12 20:21:16 -08:00
Juan Alvarez 0b3bf6124f added handling of error returned from a blocking cloud function (#10628) 2023-01-05 11:30:28 -08:00
Igor Makarov 1095aaf47f Fix secure coding bugs in MFA (#10633) 2023-01-04 13:39:34 -08:00
Paul Beusterien 391d9f255a Another typo (#10627) 2022-12-29 16:19:05 -08:00
Paul Beusterien fda78167b3 Fix typo (#10610) 2022-12-27 13:53:53 -08:00
chuanr 3d6305a9fa Force to recaptcha verification flow for phone auth in Simulators (#10426) 2022-11-03 17:25:55 -07:00
chuanr c13cc92595 Fix a bug where the linking/reauth flows errors are not caught (#10407) 2022-11-02 15:24:47 -07:00
chuanr 9ea83c816c Persist FIRPhoneMultiFactorInfo (instead of FIRMultiFactorInfo) so that full phone number is always cached (#10296) 2022-10-04 08:26:16 -07:00
chuanr 26075af26e Fix a bug where phone multi factor id is not correctly retrieved (#10061) 2022-08-02 09:22:39 -07:00
Lyle Dean 5b4a1ae260 Add move verbose logging message for custom token error (#9993) 2022-07-18 10:13:46 -07:00
Rosalyn Tan e8828e8efc Try to address prewarming issue by catching keychain errors instead of using isProtectedDataAvailable (#9898)
* Another attempt at fixing prewarming issues.

* Fix style.

* Check the correct error code.

* Add changelog and fix style.

* Prevent retain cycle?

* Prevent retain cycle?

* Address review comment.

* Move observer removal into block.

* Update version number in changelog.
2022-06-14 15:13:18 -07:00
Morgan Chen 4c2c86d942 fix doc comments in auth header (#9846) 2022-05-26 14:59:39 -07:00
Paul Beusterien a7ab2ca184 the the typos (#9726) 2022-04-28 10:06:21 -07:00
Rosalyn Tan dc45185045 Fix keychain access issues caused by prewarming (#9622)
* Try listening to `UIApplicationProtectedDataDidBecomeAvailable`.

* Handle platform availability.

* More platform availability handling.

* Fix static analysis issue.

* Update changelog.
2022-04-19 16:03:01 -07:00
Morgan Chen c148216344 Fix import bug (#9624)
* Fix import bug

* add test

* make test better
2022-04-11 12:03:29 -07:00
Morgan Chen 9f2a3132fa Use Swift syntax in reference documentation (#9594)
* fix returns typo

* change some headers

* style

* the rest of the header comments

* revert changes to FIRStorageReference
2022-04-08 14:50:22 -07:00
Paul Beusterien 7b946765ec Remove slashes from log messages (#9391) 2022-04-06 14:19:47 -07:00