Commit Graph
95 Commits
Author SHA1 Message Date
Paul Beusterien 53e5bd6cae [auth-swift] ActionCode classes to Swift (#11181) 2023-07-11 16:22:00 -07:00
Nick Cooke c8381f2f9f [auth-swift] Port 'FIRAuthStoredUserManager' (#11109)
* [auth-swift] Port 'FIRAuthStoredUserManager'

* Migrate usage to temporary ported type

* Delete 'FIRAuthStoredUserManager.[hm]'

* Rename temporary type to have original type name

* Remove TODOs and fix docs
2023-07-11 16:21:59 -07:00
Paul Beusterien ac777fd575 [auth-swift] AuthURLPresenter implementation and PhoneAuth request (#11092) 2023-07-11 16:21:45 -07:00
Paul Beusterien 4065bac235 [auth-swift] AuthNotificationManager (#11088) 2023-07-11 16:21:18 -07:00
Paul Beusterien 3a3d0460ec [auth-swift] RevokeToken.swift (#11083) 2023-07-11 16:21:10 -07:00
Paul Beusterien 0d83c60414 [auth-swift] AuthAppCredentialManager.swift (#11069) 2023-07-11 16:21:02 -07:00
Paul Beusterien 09c787de3e [auth-swift] Merge AppCheck integration (#11061) 2023-07-11 16:21:02 -07:00
Paul Beusterien b16ef067f8 [auth-swift] Progress on PhoneAuthProvider.swift (#11055) 2023-07-11 16:21:02 -07:00
Nick Cooke afac1288c4 [auth-swift] Finish Auth refactoring to allow for injecting fake keychain instance for macOS tests (#11025)
* [auth-swift] User dummy keychain storage container for unit tests

* [auth-swift] Finish refactor to inject a fake keychain instance for macOS tests

* Fix CI

* Review
2023-07-11 16:20:59 -07:00
Paul Beusterien 7a98fb8601 [auth-swift] UserTests.swift Part 1 (#11013) 2023-07-11 16:19:51 -07:00
Nick Cooke a0a83dc91d [auth-swift] Use stored keychain service at app cleanup (#11009) 2023-07-11 16:19:51 -07:00
Paul Beusterien ca84c9e7f5 AuthUser -> Swift (#10993) 2023-07-11 16:19:48 -07:00
Nick Cooke 1d0eb4b4a5 [auth-swift] Update initializer to accept keychain storage types (#11000) 2023-07-11 16:19:39 -07:00
Nick Cooke a66687ffcd [auth-swift] Move keychain intitialization code into intializer (#10998)
* [auth-swift] Move keychain intitialization code into intializer

* Style
2023-07-11 16:19:39 -07:00
Nick Cooke 25f7f9bf4d [auth-swift] Migrate usage of FIRAuthKeychainServices to id<FIRAuthStorage> (#10997) 2023-07-11 16:19:39 -07:00
Nick Cooke f45aabc550 [auth-swift] Prep for keychain dependency injection (pt. 1) (#10976)
* [auth-swift] Prep for keychain dependency injection (pt. 1)

* Remove deleted symbol from tests

* Fix broken test
2023-07-11 16:19:39 -07:00
Paul Beusterien e95e0438a1 [auth-swift] Restore integration tests (#10941) 2023-07-11 16:19:35 -07:00
Paul Beusterien 364a150bcc [auth-swift] AuthDataResult.swift (#10928) 2023-07-11 16:18:19 -07:00
Paul Beusterien 3ca31633f4 [auth-swift] AuthAppCredentialManager.swift (#10927) 2023-07-11 16:18:03 -07:00
Paul Beusterien 237df96c2e [auth-swift] APNSToken.swift (#10918) 2023-07-11 16:17:48 -07:00
Paul Beusterien 4c29370c7b [auth-swift] Swift AuthDispatcher, two fakes, one test (#10903) 2023-07-11 16:17:48 -07:00
Paul Beusterien 36686f20bf [auth-swift] Backend now completely in Swift (#10899) 2023-07-11 16:17:43 -07:00
Paul Beusterien 1b420d3680 [auth-swift] VerifyPhoneNumber RPC (#10897) 2023-07-11 16:17:31 -07:00
Paul Beusterien 7b877f8112 [auth-swift] MultiFactor and SendVerification RPC calls and unit tests (#10893) 2023-07-11 16:17:27 -07:00
Paul Beusterien f010b0eaf7 [auth-swift] SignUpNewUser and SignInWithGameCenter RPC calls and unit tests (#10892) 2023-07-11 16:17:09 -07:00
Paul Beusterien f168e21544 [auth-swift] CustomToken RPC to Swift (#10890) 2023-07-11 16:17:09 -07:00
Paul Beusterien 3147392d85 [auth-swift] VerifyAssertion and SecureToken RPCs to Swift (#10888) 2023-07-11 16:16:58 -07:00
Paul Beusterien 69d48c21fc Two Password RPCs to Swift (#10866) 2023-07-11 16:16:32 -07:00
Paul Beusterien 87f547ffa8 [auth-swift] OAuthProvider and OAuthCredential (#10861) 2023-07-11 16:12:43 -07:00
Paul Beusterien 23e2bdfdb3 [auth-swift] GetOOBConfirmationCode to Swift (#10837) 2023-07-11 16:12:08 -07:00
Nick Cooke 226287237f [auth-swift] Depend on FirebaseCoreExtension rather than making it a part of Auth's source (#10824) 2023-07-11 16:10:21 -07:00
Paul Beusterien 36c108193a [auth-swift] Styling #10819 2023-07-11 16:10:21 -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
Paul Beusterien e6da13da10 Migrate Auth RPC calls to Swift (#10806) 2023-07-11 16:09:30 -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
Morten Bek Ditlevsen e784a7f17b Converted FIRAuthUserDefaults and FIRAuthKeychainServices (#10731) 2023-07-11 16:08:06 -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
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 ec23558c43 Port FIRAuthProvider strings to class property 2023-07-11 16:06:00 -07:00
Paul Beusterien ce40f1514f port credential 2023-07-11 16:05:59 -07:00
Paul Beusterien 5466453c69 GameCenter Provider minus some error codes 2023-07-11 16:05:59 -07:00
Paul Beusterien 4a433e5a15 Clean unit tests, stub OauthProvider implementation 2023-07-11 16:05:39 -07:00
Paul Beusterien da3832786b checkpoint 2023-07-11 16:05:27 -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