Commit Graph
59 Commits
Author SHA1 Message Date
Rosalyn Tan 474b6c3526 Remove reference to non-existent protocol. (#9095) 2021-12-14 10:27:36 -08:00
Rosalyn Tan 67038afb46 Remove unused STS auth code flow. (#9094)
* Remove unused STS auth code flow.

* Fix unit tests.
2021-12-13 17:45:55 -08:00
Rosalyn Tan c7f80c14c2 Add app ID header to Firebase Auth (#9046)
* Add user agent and heartbeat headers to Firebase Auth.

* Add app ID header.

* Fix unit tests.

* Remove user agent and heartbeat headers, as backend support is not yet ready.

* Fix typo.

* Update changelog.
2021-12-08 15:10:16 -08:00
Paul Beusterien c7c0149351 Update to clang-format@13 (#8739) 2021-10-04 07:52:21 -07:00
Akira MATSUDA 706f93967e Support multi-factor authentication with email link sign in (#8705)
* Support multi-factor authentication for email link sign in.

* Ran scripts/style.sh

* Add documentation
2021-09-29 13:18:32 -04:00
Rosalyn Tan ab74442509 Improve error logging for FIRAuthInternalErrorCodeUnexpectedErrorResponse errors (#8704)
* Add underlyingError to FIRAuthInternalErrorCodeUnexpectedErrorResponse errors.

* Revert some formatting changes that make it hard to see the actual diffs.

* Fix unit tests.

* Apparently the formatting is required.

* Update changelog.

* Re-ran the formatting script after updating clang-format.
2021-09-28 16:08:55 -04: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
Morgan Chen 9b4c5c06f3 Auth: Remove all #ifs in favor of API_UNAVAILABLE (#8451)
* Remove all #ifs in favor of API_UNAVAILABLE

* fix build

* style

* Fix FIRAuthUIDelegate availability

* fix availability for real this time

* Add headerdoc comments

* Add changelog
2021-07-30 09:20:35 -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
Nick Cooke 89f237ae78 Swift first exception messages (#8295)
* Swift first exception messages

* Review

* Minor edit

* Minor edit 2
2021-06-25 11:25:23 -04:00
Rosalyn Tan cb0bde5b4c Bug fix in account linking flows (#8196)
* Fix bug where stored ID token is not updated after linking account with email link.

* Update changelog.

* Fix the Game Center and phone auth flows as well.

* Update upcoming release version number in changelog.
2021-06-14 15:29:49 -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
Chen Liang 429bac463c Remove InstanceID from Github repo (#7970) 2021-04-27 11:54:03 -07:00
Paul Beusterien c4e994c7c4 Update to clang-format 12 (#7909) 2021-04-16 09:17:41 -07:00
Morgan Chen 6245948969 Fix #7670 (#7906)
* Fix auth settings crash on copy

* release notes

* fix compiler complaint
2021-04-15 16:10:37 -07:00
Joe Hinkle b807226e2c fix for _userAccessGroup being nil when getStoredUserForAccessGroup is called (#7472)
* shareLoginAcrossDevices

* shareLoginAcrossDevices

* shareLoginAcrossDevices

* shareLoginAcrossDevices

* formatting

* feedback changes

* linted

* setting _userAccessGroup needs to happen before getStoredUserForAccessGroup is called, because otherwise on first app launch, _userAccessGroup will be null, making it impossible for the app to find the shared keychain

* proper fix as suggested by rosalyntan
2021-03-01 17:08:04 -08:00
Rosalyn Tan 9fadbafc5d Add debug logging around token expiration (#7461)
* Add debug logging around token expiration.

* Use FIRLogger instead of NSLog.

* Move log statement.

* Add another log statement when access token is updated.
2021-02-05 12:49:11 -08:00
Peter Friese a6b1c3da2c Fix import for watchOS (#7423)
This needs to be TARGET_OS_WATCH (also see the corresponding .m file, where it actually already is TARGET_OS_WATCH)

#no-changelog
2021-02-02 14:19:35 +01:00
Rosalyn Tan 601497bbbd Allow http schemes when using the auth emulator (#7350)
* Allow http schemes when using the auth emulator.

* Update changelog and fix formatting.

* Update changelog.
2021-01-22 10:53:44 -05:00
Joe Hinkle ae854d8357 Sync login state across all Apple user's devices (#6924)
* shareLoginAcrossDevices

* shareLoginAcrossDevices

* shareLoginAcrossDevices

* shareLoginAcrossDevices

* formatting

* feedback changes

* linted
2021-01-06 13:55:19 -05:00
Chuan Ren f9e5be183a Enable multi tenancy for email link sign in (#7246) 2021-01-05 12:37:16 -08: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
Paul Beusterien 57abe06831 Fix typo in Auth Error string (#7145) 2020-12-10 11:07:12 -08:00
Rosalyn Tan 289e093f89 Replace "whitelist" with "allowlist" in the Auth source code. (#7120) 2020-12-07 15:48:06 -05:00
Vahagn GevorgyanandVahagn Gevorgyan a8dd5f196c MacOS auth issue fix. (#7050)
* MacOS auth issue fix.

On MacOS 11 catalyst apps when trying to open SFSafariViewController the default browser opens and the safariViewControllerDidFinish(_ controller: SFSafariViewController) delegate method calls immediately.

* TARGET_OS_MACCATALYST usige style fixed.

* Fix elif macro issue.

* Fixed wrong file changes.

* Fix formatting.

Co-authored-by: Vahagn Gevorgyan <vahagn.gevorgyan@picsart.com>
2020-11-30 12:01:20 -05:00
Rosalyn Tan 474a3aa85b Fix documentation typos in FIROAuthProvider. (#6994) 2020-11-19 08:37:47 -08:00
Mike Gerasimenko c8de4fcc03 FCM: Fix crash on iOS 14 when multiple app delegate completion methods are called (#6863)
* Fix crash on iOS 14 when multiple completion methods are called

* Fixed lint

* Addressed the PR comments & implemented unit tests

* Reverted auto-extracted method

* Re-organized tests

* Added completion handler for FIRAuth
2020-11-05 17:31:53 -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 672256e11e C API for Firebase Version (#6690) 2020-10-07 15:03:20 -07:00
Paul Beusterien 83e898ab5c One Firebase version (#6634) 2020-10-02 12:26:22 -07:00
Rosalyn Tan 312f733fc0 Add auth emulator support to public API. (#6624)
* Add auth emulator support to public API.

* Update changelog.
2020-10-01 10:45:52 -07:00
Paul Beusterien 6a2b9a9556 Merge remote-tracking branch 'origin/master' into pb-merge-firebase7 2020-09-30 16:49:31 -07:00
Rosalyn Tan 14764b8d60 Remove deprecated auth APIs (#6607)
* Remove deprecated APIs from public header.

* Remove deprecated API implementations.

* Also remove deprecated APIs from FIRUser.

* Update unit tests.

* Update sample app.

* Update changelog.
2020-09-30 15:51:09 -07:00
Paul Beusterien aea0e862f1 Migrate FIRLoggerServices strings from Core to clients (#6608) 2020-09-30 07:37:31 -07:00
Paul Beusterien f2bcd5d82b Make all GoogleUtilities APIs public (#6588) 2020-09-29 07:26:10 -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
Paul Beusterien f4ee160447 Auth - no typedefs in public APIs (#6283) 2020-08-18 14:42:33 -07:00
Chuan Ren bf0cb09d51 Add multi tenant support (#6142) 2020-08-17 17:25:27 -07:00
Ryan WilsonandHarri Hohteri 5fb9d2a448 watchOS support for FirebaseAuth. (#6260)
* watchOS support for FirebaseAuth.

This is a redo of #5585, which was a re-implementation of #4632. This
ignores any changes to GoogleUtilities, those will be done in a later
PR to create a common KeyedArchiver utility.

Co-authored-by: Harri Hohteri <harri.hohteri@gmail.com>

* Fixed lint errors, added GHA tests.

* Enabled GHA for PRs as well.

Co-authored-by: Harri Hohteri <harri.hohteri@gmail.com>
2020-08-12 16:13:45 -04: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
Morgan Chen f56576fd58 Fix bug where multiple keychain entries would result in user persistence failure (#5930)
* Fix bug where multiple keychain entries would result in user persistence failure

* Fix missing header

* Fix tests

* fix tests on macOS

* Always return non-legacy keychain value

* Fix thing

* Fix missing type

* fix missing bridge call
2020-07-30 15:56:10 -07:00
Paul Beusterien 4356c91e06 FirebaseAuth public headers for SPM (#6135) 2020-07-27 15:21:19 -07:00
Morgan Chen da034ba83c Fix multithreaded _completion access (#6068)
* Fix unguarded multithreaded access

* Update changelog

* fix typo in doc comments

* fix nullability build error

* Serialize via FIRAuthGlobalWorkQueue

* remove unused code
2020-07-17 15:50:50 -07:00
Paul Beusterien d33b8b3ae1 SPM - Auth unit tests (#6011) 2020-07-09 13:31:53 -07:00
Paul Beusterien 01bf549253 Update formatters (#5933) 2020-06-26 14:34:27 -07:00
Paul Beusterien fb9e788086 Auth: Repo-relative headers and SPM (#5856) 2020-06-19 10:38:31 -07:00