Commit Graph
21 Commits
Author SHA1 Message Date
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 84c21ce80d Fixes the mode string for actions in the Auth sample. (#178) 2017-08-04 14:21:02 -07:00
Xiangtian Dai 13627ec716 Adds the missing FIRActionCodeOperationRecoverEmail. (#177)
Also allow in-app action code handling to cancel and leave the code in pasteboard.
2017-08-04 09:56:03 -07:00
Xiangtian Dai 5430b776ca Action code fixes and improvements (#176)
* Makes Auth sample in-app password reset work on iOS 8-.

* Sets default iOS bundle ID for action code settings.

* Adds an entry in the Auth sample app to verify email in app.

* Removes '-' from 'in-app' to be consistent with other messages in the Auth sample app.
2017-08-03 19:05:25 -07:00
Xiangtian Dai 173c21ab6c Adjust header imports to avoid FirebaseCore which isn't accessible in other build environment. (#172) 2017-08-02 14:51:06 -07:00
Xiangtian Dai 4e6930b6b5 Adds Simplified Chinese as one of the languages the sample app "uses". (#165)
* Adds Simplified Chinese as one of the languages the sample app "uses".

* Changes to use 'en' instead of 'en-GB' for the sample app.
2017-08-02 09:14:06 -07:00
Xiangtian Dai 18fef1fea0 Enables auth sample app to use multiple Firebase Apps. (#162) 2017-08-01 11:15:35 -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
Xiangtian Dai fee2e3a374 Hides spinner after signing in or linking with phone number in the Auth sample app. (#124) 2017-07-07 11:16:16 -07:00
Xiangtian Dai fb5aa974ee Moves most of FIRAuth initialization out of the calling thread. (#115)
* Adds an option to time initialization of FIRAuth instance in the sample app.

* Changes deployment target from 10.3 to 8.0 for Auth samples.

* Fixes some Xcode warnings in the Auth sample app.

* Moves most of `FIRAuth` initialization to the work thread.

* Fixes a typo.

* Fixes accessing of public `currentUser` method from internal method.

* Fixes tests for macOS.

* Addresses review comments.
2017-06-30 14:25:02 -07:00
Xiangtian Dai 007e673d23 Removes FIROptions hack from the Auth sample app as it is now unnecessary. (#110) 2017-06-28 16:21:25 -07:00
Xiangtian Dai 45c6e1c523 Uses framework imports for GoogleSignIn, FBSDKCoreKit, and FBSDKLoginKit. (#87)
This is to make the code more flexible in other build environment.
2017-06-18 21:12:50 -07:00
Xiangtian Dai fb0e72be90 Removes trailing whitespaces in AuthSamples. (#85) 2017-06-15 19:53:53 -07:00
Xiangtian Dai 2a02085044 Fixes auth sample project issues: (#47)
- Actually uses the developement entitlement for the sample app.
- Uses the matching bundle ID for the Swift sample app.
- Renames the Swift sample app from SwiftBear to SwiftSample.
- Removes reference to nonexistent Images.xcassets for TestApp.
2017-05-31 18:49:26 -07:00
Xiangtian Dai 556325f37d Fixes Auth Sample app import paths for external dependencies and private headers. (#42) 2017-05-30 17:33:27 -07:00
Zsika Phillip e96b0074b4 Adds friendly error messages to phone auth sample (#37) 2017-05-26 17:38:27 -07:00
Xiangtian Dai 7ac4caa016 Uses official Firebase Auth product names in code and doc. (#32)
Also fixes minor leftovers from previous auth crendetial refactory.
2017-05-26 17:08:45 -07:00
Paul Beusterien faf4455353 Fixes ApiTests and separates its credentials from Sample (#25) 2017-05-23 15:15:31 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00