Commit Graph
39 Commits
Author SHA1 Message Date
Xiangtian Dai 969d3e79fe Adds Swift stub calls for Auth 4.1.0 new features to verify the API. (#181)
Also fixes colon alignment in a header.
2017-08-07 21:23:10 -07:00
Zsika Phillip ef16282b4e update APNs Token error (#180)
* update APNs Token error

* update message

* updates error message to be more readable

* fixes mis-spelt word

* fixes missspelled word
2017-08-05 08:54:51 -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
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 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
Ryan Wilson f2e9c2533c Add FIR_SWIFT_NAME for ActionCodeSettings. (#173) 2017-08-02 21:19:26 -07:00
Xiangtian Dai 2c4ac3773b Removes trailing whitespace characters from source files. (#169) 2017-08-02 13:56:10 -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 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
Zsika Phillip a759dd8859 Fixes small reference documentation mistakes (#141)
* Fixes small reference documentation mistakes
2017-07-17 14:25:49 -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 ddbfd4cc66 Add travis trailing whitespace check (#116)
* Add travis trailing whitespace check

* Remove trailing white space
2017-06-30 13:47:37 -04:00
Paul Beusterien 6761901507 Remove Auth/Source/Private - restoring headers to original location (#113) 2017-06-29 15:12:13 -07:00
Paul Beusterien c33bdff405 Group public headers into Public directories (#112) 2017-06-29 12:03:45 -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
Zsika Phillip 1d61e328e1 Removes unused class (#94) 2017-06-20 15:38:18 -07:00
Xiangtian Dai cf5604218c Removes old FIREmailPasswordAuthProvider files. (#90)
* Removes old files that has been removed.
The class has been renamed to `FIREmailAuthProvider`.

* Removes remaining references to 'bears' from repository.
2017-06-20 10:59:58 -07:00
Xiangtian Dai c61996b22a Adds client version header to Firebase Auth server requests. (#79)
Sends the SDK version with the "X-Client-Version" HTTP header to be consistent with other platforms for easier backend processing.
2017-06-08 14:48:51 -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 08d62f8957 Add phone number property to NSSecureCoding (#68)
Ecodes and decodes the phone number property of FIRUser.
2017-06-04 19:50:15 -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
Xiangtian Dai 0de31ac64b Auth source file cleanup (#65)
* Cleans up Firebase Auth sources:
- Updates umbrella header files to import all public header files.
- Moves remaining private header files under root of source directory to the private subdirectory.
- Makes the version header file non-executable.

* Excludes phone number auth headers from the umbrella header for mac OS.
2017-06-02 21:44:58 -07:00
Paul Beusterien 9ff0a47d90 Fix a typo (#62) 2017-06-02 14:50:03 -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
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 db7f85b9d4 Update FIRPhoneAuthProvider reference docs (#27)
Adds reference docs error documentation to FIRPhoneAuthProvider.
Also fixes small typo in FIRAuthErrorUtils.
2017-05-24 13:28:48 -07:00
Paul Beusterien f2765ff914 Auth jazzy fixes and Swift sample updates (#19)
* Removes the '@c' that would cause Jazzy issue down the road.
2017-05-19 11:31:48 -07:00
Ryan Wilson 6a850b8cb1 Remove double commented lines. (#11) 2017-05-17 15:13:12 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00