Commit Graph
37 Commits
Author SHA1 Message Date
Zsika Phillip c18af34fca Amends phone auth unit tests (#632) 2018-01-09 09:43:13 -08:00
Zsika Phillip 9172e6eb7a Adds AdditionalUserInfo to Phone Auth (#623) 2018-01-08 15:40:31 -08:00
Paul Beusterien ed3e4982f9 Standardize cross module imports with angle bracket syntax (#526)
Qualify all cross-pod imports of FirebaseCore headers
2017-12-04 08:52:11 -08:00
rsgowman a251259f3c Include UID when sending (internal) auth state change notifications (#507)
This is to allow firestore to not require an explicit dependency on auth.
2017-11-30 13:26:25 -05:00
Paul Beusterien 343421d93e FIRAppInternal.h is a published private header (#501) 2017-11-28 13:52:51 -08:00
Zsika Phillip 771b0f7a65 Adds Auth Result to Sign In with Custom token (#489)
* Adds Auth Result to Sign In with Custom token

* Addresses comomments
2017-11-27 14:17:05 -08:00
Zsika Phillip bc2d78439a Adds AuthDataResult to signInWithEmailPassword Method (#484)
* Adds AuthDataResult to signInWithEmail:Password

* Addresses comments

* Addresses comments

* addresses more comments

* Fixes broken tests
2017-11-22 08:57:07 -08:00
Zsika Phillip 54aef651d8 Add Auth Result to createUserWithEmail (#477) 2017-11-20 15:56:03 -08:00
Zsika Phillip 5fbe71052d Adds AuthDataResult to anonymous sign in (#470)
* Adds AuthDataResult to anonymous sign in

* Fixes typo

* Addresses comments

* addresses comment on PR
2017-11-17 15:55:56 -08:00
Paul Beusterien 8156da3f32 Fix warnings exposed by Xcode 9.1 in Auth (#350) 2017-10-09 12:22:11 -07:00
Xiangtian Dai 4b1b3d62d8 Simplifies logic to post auth state change notifications, which is also applied more consistently now. (#325) 2017-10-03 09:58:47 -07:00
Xiangtian Dai bf550507ff Automatically signs user out if the token is no longer valid. (#323) 2017-10-02 14:15:05 -07:00
Zsika Phillip aebb293f3d Add operation phone auth (#309)
* Adds operation to verify PhoneNumber requests

* Improvements and unit tests

* Fixes typo

* Addresses comments

- Removes the FIRAuthOperation class.
- Defines the FIRAuthOperationType as an enum in a class of the same name.
- Passes the FIRAuthOperationType value down to the verifyPhoneNumber RPC where it is translated to a string.

* Fixes unit tests

* Actually fixes the unit tests.
2017-09-27 00:16:33 -07:00
Zsika Phillip 660f62778a Adds ability to track Firebase Auth UI per request (#251)
* Adds ability to track Firebase Auth UI per request

Adds internal method to FIRAuth which will be accessed in Auth UI via an extension.

Example request header header with Firebase Auth Core Marker:
X-Client-Version: iOS/FirebaseSDK/0.1.1/FirebaseCore-iOS
2017-09-12 18:29:44 -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
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
Ryan Wilson 6e00706604 Move Auth notification constant into Core. (#155)
* Move Auth notification constant into Core.

SDKs that want to listen for the internal Auth notifications needed
to copy the notification strings to their own SDK instead of relying
on Auth's definition in order to avoid a dependency on Auth. By moving
them to Core, SDKs can use the constants without taking on another
dependency.

* Remove Auth stub, add app instance to notification.
2017-08-04 15:42:14 -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 dc30b673ef Simplifies the logic to get the app locale. (#166) 2017-08-02 09:14:32 -07:00
Xiangtian Dai 1334246052 Request configuration and API key fixes (#164)
- Fixes non-default auth operations by not referring to the default auth.
- Fixes non-current user operations by always associating the auth instance with the user instance.
- Defends against changing of API key by not persisting the API key.
2017-08-01 15:50:53 -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 3f53f1bb27 Fix GoogleService-Info.plist casing in comments (#135)
* Fix GoogleService-Info.plist casing in comments
* fix macOS travis failure
2017-07-14 07:13:19 -07:00
Xiangtian Dai df0b615584 Initializes the shared FIRAuthAppDelegateProxy instance in the main ... (#123)
Initializes the shared FIRAuthAppDelegateProxy instance in the main thread because it needs access to UIApplication.
2017-07-07 11:15:35 -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
Paul Beusterien 6761901507 Remove Auth/Source/Private - restoring headers to original location (#113) 2017-06-29 15:12:13 -07:00
Xiangtian Dai acb7a32afa Changes client-side logging level for some messages generated by Auth to be in line with product-wise standard. (#109) 2017-06-29 11:57:52 -07:00
Zsika Phillip 07ccbd7b59 Add UIKit import to FIRAuth implementation (#105)
* Add UIKit import to FIRAuth implementation

* Moves UIKit import behind the iOS flag to avoid breaking OSX build.
2017-06-25 19:30:26 -07:00
Paul Beusterien 81653a2c1e Delete trailing whitespace (#73) 2017-06-06 18:35:01 -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
Zsika Phillip 3b7681a2a5 documents phone auth with reference docs (#66)
Adds error documentation pertaining to phone auth to signInAndRetrieveDataWithCredential:completion: method
2017-06-03 14:13:38 -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 a3b14cdf07 Schedules automatic auth token refresh as soon as the triggering method is called. (#43) 2017-05-31 11:46:24 -07:00
Ryan Wilson 0d2a421716 Update error messages to be Swift friendly. (#40)
* Update error messages to be Swift friendly.

Error messages should include Swift references on top of the
Objective-C references.

* Add semicolon to [FIRApp configure] for consistency.

* Add Swift reference for application(_:didFinishLaunchingWithOptions:)
2017-05-30 12:15:59 -04:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00