Commit Graph
30 Commits
Author SHA1 Message Date
Zsika Phillip a34d091971 Removes unused Fir_authPhoneNumber (#277)
Removes references of unused Fir_authPhoneNumber and accompanying class.
2017-09-17 22:12:53 -07:00
Zsika Phillip f1c81936dd Modifies unit tests to accommodate event ID check (#270)
* Modifies unit tests to accommodate event ID check

* Extracts event ID from outgoing URL

* Addresses comments

Checks that the URL is rejected by the callback matcher without the event ID.
2017-09-14 13:30:58 -07:00
Xiangtian Dai 58ad5d177c Adds a check for custom scheme in plist for phone number auth reCAPTCHA. (#256)
Also rewrites phone number auth reCAPTCHA tests.
2017-09-13 15:09:00 -07:00
Xiangtian Dai c8ea66eecf Implements web view for presenting Auth web content on iOS 7 and 8. (#253)
Also (hopefully) fixes thread safety issues in presenting Auth web content.
2017-09-12 13:49:05 -07:00
Zsika Phillip af23702b56 ReCAPTCHA verification error handling (#241)
* reCAPTCHA error handling

* Improvements

* Addresses comments
2017-09-10 10:05:08 -07:00
Xiangtian Dai 96685dfbb9 Deprecates the old phone number auth method. (#236) 2017-09-06 11:36:26 -07:00
Xiangtian Dai 55d2d2d8be Fixes Auth URL presenter: (#239)
- kinda works on iOS 8-;
- calls back with cancellation error correctly on 'Done' button;
- cleans up upon completion.
2017-09-06 09:24:28 -07:00
Zsika Phillip 954484c4c4 Removes canHandleURL from FIRAuthInternal (#235)
* Removes canHandleURL from FIRAuthInternal

Removes canHandleURL from FIRAuth_Internal and makes small modification to FIRPhoneAuthProvider unit test.

* Addresses comment
2017-09-05 23:16:28 -07:00
Zsika Phillip 85e8137180 Adds app verification alternative (#228)
* Adds app verification alternative
2017-09-04 17:37:46 -07:00
Xiangtian Dai 1e9d652610 Swizzles APNs token error app delegate method for faster turnaround. (#226)
Also removes the server request in case the token is missing.
2017-09-01 14:38:45 -07:00
Zsika Phillip 36c20d92b7 Add FirAuthUrlPresenter (#222)
* Adds FIRAuthURLPResenter and FIRAuthUIDelegate
2017-09-01 13:38:12 -07:00
Xiangtian Dai 0ce42970fc Adds missing unit tests to the Example project and fixes one test case. (#224) 2017-08-30 19:19:39 -07:00
Xiangtian Dai 5d984b0611 Silences compiler warnings in the Auth test file from #207 . (#219) 2017-08-28 14:38:58 -07:00
Zsika Phillip 2a22a88141 fixes request URL (#218) 2017-08-25 14:37:36 -07:00
Zsika Phillip fb1b4ba587 Add get Auth domain RPC (#214)
* Add get Auth domain RPC

* Fixes indentation

* Addresses comments

* ran tests on Example/Firebase.xcodeproj
2017-08-24 13:58:50 -07:00
Zsika Phillip 768c4058f3 Adds reCAPTCHA Token (#211)
* Adds reCAPTCHA Token to the "send verification code" request.
2017-08-23 09:02:50 -07:00
Xiangtian Dai 6e12c501f8 Forwards app delegate's openURL invocations to FIRAuth. (#207) 2017-08-21 21:14:20 -07:00
Xiangtian Dai 8c3ef6b780 Handles MISSING_EMAIL error from server. (#187) 2017-08-11 17:12:11 -07:00
Xiangtian Dai 4ec1d8a30b Fixes an incorrect assumption of Auth server error message. (#179)
Also allows the Auth sample app to test all combination of `handleCodeInApp` and continue URL.
2017-08-04 18:15:47 -07:00
Xiangtian Dai e5524db414 APNs token handling improvements. (#157)
* APNs token handling improvements.

- Calls VerifyClient without token anyway if the APNs token cannot be retrieved.
  This allows server to use discretion if needed in future. The developer will
  receive the same error as before.
- Moves token formatting code to the token class itself to make the main logic
  in the provider class more clear. This also eliminates duplicated code in the
  sample app.

* Adds a comment about a string constant used in test.
2017-07-28 17:44:46 -07:00
Xiangtian Dai 925a1cc0a2 Merge from private/auth-master (#159)
* Adds passing state and continue URL in OOBCodes actions. (#82)

* Adds actionCodeSettings class (#83)

* Adds FIRActionCodeSettings class

* Removes iOSAppStoreId to reflect update spec.

* Adds “reset password in app” to sample app (#84)

* Adds “reset password in app” to sample app

* Addresses comments

* Addresses comments

* Adds @param documentation for actionCodeSettings (#85)

Adds @param documentation for actionCodeSettings in FIRGetOOBConfirmationCodeRequest.

* Adds request configuration class

Adds a class that will comprise of all configurations needed to make a request to the Firebase Auth backend; including APIKey and Language code in the future.

* Addresses comments.

* Adds Setting Language

Add Setting Language Feature to Firebase Auth.

- Only adds support for two languages (English and Spanish) in this change. (Also supports two languages in test), more to come after this change is accepted.

- For now sample app tests language setting only when using “reset password in app” option, the email sent will be in the current app language.  Additional tests to come after change is accepted.

* Amends code for unit tests

Will add more comprehensive testing when code accepted.

* Ecodes strings files in UTF-8

* Addresses comments

* Addresses comments

* Remove comments in .strings

* Adds remaining TC languages to Firebase Auth.

* Add line break to .strings files

* remove language code english fallback

Remove the fallback that sends “en” as the language code to the backend if no language code is specified.

* addresses comment

* Fixes FIRSecureToken Crash

Integrates FIRSecureTokenService and FIRSecureTokenRequest with FIRAuthRequestConfiguration.

* Addresses comment

* Add auth language input

Adds Auth language input to the Sample App in preparation for manual testing.

* removes unnecessary comment

* address comments

* Add app language option

Allow user to set the current app language code as the auth language code.  This is in preparation for manual testing before release.

* Addresses Comment

* Adds missing continue URI

Adds missing continue URL to Firebear error handling.

* Remove unused line

Removes unused line from FIRPhoneAuthProvider.m

* Moves the new public header to the right place.

* Fixes broken macOS build.

* Removes trailing spaces.

* Addresses review comments.
2017-07-28 17:43:33 -07:00
Paul Beusterien 053b2f11ea Use modulemap to fix exposure of FirebaseCore's internal headers (#121) 2017-07-10 14:57:03 -07:00
Paul Beusterien c33bdff405 Group public headers into Public directories (#112) 2017-06-29 12:03:45 -07:00
Zsika Phillip 58959a676a Adds NSSecureCoding unit tests for FIRUser (#74)
* Adds unit tests for NSSecureCoding for FIRUser
2017-06-07 14:32:02 -07:00
Paul Beusterien aac64a63ae Add Foundation import so TARGET_OS_IOS or other TARGET_OS_* gets defined (#71) 2017-06-06 17:00:20 -07:00
Paul Beusterien e2159ea882 Fix build break from macOS - Auth merge (#59) 2017-06-02 11:08:36 -07:00
Mathew Huusko V 5c59342e6e macOS (#38)
* Example/Core: create macOS app/tests target

* Example/Core: Core_Example/Tests -> Core_Example/Tests_iOS

* Example/Core: macOS building/tests passing

* Example/Database: separate iOS/macOS targets

* BuildFrameworks: macOS

* .travis.yml, test.sh: AllUnitTests -> AllUnitTests_iOS

* test.sh: add AllUnitTests_macOS

* Example/Storage: Example/Tests->_iOS

* Example/Storage: macOS

* test.sh: try to prevent double error 65

* test.sh: build before test

* Example/Auth|Messaging: -> _iOS

* Example/Auth: macOS build

* Example/Auth: macOS passing

* Example/Firebase: pod de/re-integrate; fix static DerivedData references; copy phase for OCMock

* Example/Firebase: manually copied OCMock, Products Dir vs. Frameworks

* Example/Firebase: copied OCMock, prevent header removal

* Example/Storage: integration tests sdk fix

* Example/Auth: macOS exclude FIRAuthAppCredentialManager; cleanup

* Firebase/Core: remove nullability annotation

* Firebase/Core|Database: correct TARGET_X usage for correctness and anticipation of OS_WATCH|TV branches

* build.swift: style fix

* Firebase/Core: FIRLogger: fix macOS intermittent va_list error
2017-06-02 10:42:17 -07:00
Zsika Phillip 439c29108e Handle missing email error (#54)
Adds appropriate error handling for missing email in the createUserWithEmail:password:completion: flow.

Also fixes a few typos.
2017-06-01 18:12:09 -07:00
Xiangtian Dai af8b54f03c Adds GoogleService-Info_multi.plist to the Auth Sample (#33)
* Adds GoogleService-Info_multi.plist to the Auth Sample so it no longer crashes on the settings view.
* Also relaxes requirement of time differences in unit tests because Travis is slower.

* Relaxes requirement of time difference because unit tests executes slower on Travis.

* Applies the same relaxation on all time comparisons.
2017-05-25 18:20:22 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00