Commit Graph
62 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 7dc124882a Add missing comments (#273)
* Small code clean-up changes

* Fixes typos

* Addresses comment
2017-09-15 14:54:11 -07:00
Zsika Phillip b8f70da4ee Adds event ID validation to verify phone number (#263)
* Adds event ID validation to verify phone number
2017-09-13 23:45:07 -07:00
Xiangtian Dai 56ea45f052 Fixes nullability and removed redundant property for FIROAuthCredential. (#262)
* Fixes nullability and removed redundant property for FIROAuthCredential.
* Fixes a typo in FIROAuthCredential initializer.
2017-09-13 19:08:12 -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
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
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 b5ed1c60f6 Switchs Auth Swift sample to use the new phone number auth API. (#237)
Also fixes macOS tests.
2017-09-06 09:25:19 -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
Xiangtian Dai f1d5445042 Fixes Auth build when module is disabled (#231)
* Changes "@import" to "@import" to make the code buildable when module is disabled.
Also rearranges code to merge two #if blocks.

* Makes comments more accurate.

* Fixes comments.
2017-09-04 22:37:18 -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
Zsika Phillip 2a22a88141 fixes request URL (#218) 2017-08-25 14:37:36 -07:00
Xiangtian Dai 9108a337d6 Updates Auth ChangeLog for the next release. (#216)
Also moves an unused public method into private header.
2017-08-25 12:01:27 -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
Zsika Phillip 3151a61ac3 Small improvements to reference docs (#193) 2017-08-15 12:54:05 -07:00
Xiangtian Dai 8c3ef6b780 Handles MISSING_EMAIL error from server. (#187) 2017-08-11 17:12:11 -07:00
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