Commit Graph
41 Commits
Author SHA1 Message Date
Paul Beusterien ca84c9e7f5 AuthUser -> Swift (#10993) 2023-07-11 16:19:48 -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 5918a70e77 [auth-swift] Move AuthStorage protocol to own file; split up AuthKeychainServices impl. (#10996)
* [auth-swift] AuthStorage protocol in own file; split AuthKeychainServices into two types

* Review feedback
2023-07-11 16:19:39 -07:00
Paul Beusterien 8f5666f19c SecureTokenService.swift (#10938) 2023-07-11 16:18:21 -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 36686f20bf [auth-swift] Backend now completely in Swift (#10899) 2023-07-11 16:17:43 -07:00
Paul Beusterien 3147392d85 [auth-swift] VerifyAssertion and SecureToken RPCs to Swift (#10888) 2023-07-11 16:16:58 -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 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 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
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
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 2e2da71142 Partial fix for expired ID token issue (#9253)
* Brainstorm fix for expired ID token issue.

* Only retry once, in case of clock skew, and fix unit tests.

* Fix FIRAuthTests.

* Modify check to be for if the token will expire within 5 minutes.

* Update changelog.
2022-01-28 10:39:52 -08:00
Kamil Powałowski 480178b087 [Auth] Fixed macOS extension keychain access by adding recommended kS… (#9102)
* [Auth] Fixed macOS extension keychain access by adding recommended kSecUseDataProtectionKeychain key

* Refactored FIRAuthStoredUserManager to extract keychain query building to separated function.
2021-12-20 18:11:33 -05: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
Paul Beusterien c7c0149351 Update to clang-format@13 (#8739) 2021-10-04 07:52:21 -07:00
Paul Beusterien 0d90f2f12d Update to clang-format 12.0.1 (#8397) 2021-07-16 11:40:42 -07:00
Chen Liang 429bac463c Remove InstanceID from Github repo (#7970) 2021-04-27 11:54:03 -07: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
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
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
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
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
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
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