Commit Graph
43 Commits
Author SHA1 Message Date
Paul Beusterien 5f5d10d543 [auth-swift] AuthDefaultUIDelegate.swift and AuthURLPresenterTests.swift (#11096) 2023-07-11 16:21:57 -07:00
Paul Beusterien ac777fd575 [auth-swift] AuthURLPresenter implementation and PhoneAuth request (#11092) 2023-07-11 16:21:45 -07:00
Paul Beusterien 8a250b0648 style 2023-07-11 16:20:02 -07:00
Paul Beusterien c6c69bca3d build and test 2023-07-11 16:20:02 -07:00
Morten Bek Ditlevsen bdabd13a8d AuthWebView and AuthWebViewController 2023-07-11 16:19:59 -07:00
Paul Beusterien 87f547ffa8 [auth-swift] OAuthProvider and OAuthCredential (#10861) 2023-07-11 16:12:43 -07:00
Morten Bek Ditlevsen 8c29a9eb3e Converted a few more files 2023-07-11 16:10:20 -07:00
Paul Beusterien b4cea1ace0 Three more RPCs to Swift (#10816) 2023-07-11 16:10:17 -07:00
Nick Cooke 025ef90376 [FirebaseAuth] Expose non-public headers to Swift and build on iOS (#10755)
* Private header exposed to internal Swift impl via private module

* Include all non-public headers in private module map

* Add TODO and #if out import

* Prefer <...> imports and fix API visibility. See more...

- The private module map enables us to selectively expose non-public
  headers to Swift. Now, the internal APIs that were made public for the
  sake of exposing to Swift can be made internal again. Swift files that
  need access to non-public API should do the following:

    @_implementationOnly import FirebaseAuth_Private

- Additionally, any public header imported into a non-public header
  needs to use <...> syntax because the header is technically coming
  from a different module (FirebaseAuth rather than FirebaseAuth_Private).

* Fix import typo

* Style

* More progress. Building for CocoaPods. Not for SPM

* Remove 'MyPrivateClass.h'

* Generate private module map

* Generate private module map followup

* Re-enable testing spec

* Style

* Remove unneeded module.modulemap

* Revert "Remove unneeded module.modulemap"

This reverts commit 3ac44c3570.

* Adjust header import since FIRAuthBackend was moved

* Get library building on iOS

* Builds on iOS

* Revert private module map and update gitignore

* Add TODO

* Wrap FirebaseAuth_Private import with #if COCOAPODS

* Modularize script with arg[0] for podspec name

* Generalize script more and remove private module map

* Revert unintentionally checked in changes

* re-style @objc(...) qualifier

* Fix check

* Fix SPM build

* Change API back to what it was originally

* Fix copyright

* Better error handling in script
2023-07-11 16:09:03 -07:00
Paul Beusterien 9ddd8fc117 Style auth-swift (#10723) 2023-07-11 16:08:06 -07:00
Paul Beusterien 855659e59c Checkpoint PhoneProvider progress (#10722) 2023-07-11 16:08:06 -07:00
Paul Beusterien 2a9ff450e4 Changes to build with pod gen on mac (#10721) 2023-07-11 16:08:02 -07:00
Morten Bek Ditlevsen 78b3357fe9 [WIP] Attempt at merging own ported swift code to official repo (#10696)
* Attempt at merging own ported swift code to official repo

* Fix: networkError was accidentally marked as internal.

* Added Copyright notices

* Moved base64 encoding extension. Reformatted a few todos

* Converted a bit of MultiFactor

* Added VerifyPhoneNumberRequest/Response and AuthOperationType
2023-07-11 16:07:41 -07:00
Paul Beusterien dda48e5bc1 checkpoint 2023-07-11 16:06:40 -07:00
Paul Beusterien eb1f4155ce Checkpoint - partway through PhoneAuth implplementations 2023-07-11 16:06:40 -07:00
Paul Beusterien abab427d16 Add Swift API tests to SPM build, port FederatedAuthProvider, and style 2023-07-11 16:06:35 -07:00
Paul Beusterien ce40f1514f port credential 2023-07-11 16:05:59 -07:00
Paul Beusterien 7d938427dd checkpoint 2023-07-11 16:05:03 -07: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
chuanr 0216c1a2bf Multi-app fix (#10805) 2023-02-10 14:01:39 -08:00
Juan Alvarez 0b3bf6124f added handling of error returned from a blocking cloud function (#10628) 2023-01-05 11:30:28 -08:00
Lyle Dean 5b4a1ae260 Add move verbose logging message for custom token error (#9993) 2022-07-18 10:13:46 -07:00
Paul Beusterien a7ab2ca184 the the typos (#9726) 2022-04-28 10:06:21 -07:00
Morgan Chen 7a273e7bae fix returns typo (#9541) 2022-03-31 11:37:45 -07: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
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
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
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
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
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 fb9e788086 Auth: Repo-relative headers and SPM (#5856) 2020-06-19 10:38:31 -07:00
Paul Beusterien 3f556ddb9e Update GoogleUtilities' clients with repo-relative imports (#5824) 2020-06-16 09:05:29 -07:00
Chuan Ren b6344c9cff Update quota exceeded error message (#5725) 2020-06-02 15:03:39 -07:00
Paul Beusterien 02158a204f Suppress deprecation warnings in Auth (#5439) 2020-04-22 13:19:32 -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