doc: update Google SignIn integration documentation

This commit is contained in:
Saúl Ibarra Corretgé 2018-10-16 13:45:43 +02:00 committed by Saúl Ibarra Corretgé
parent 58d220d645
commit 6f8743af3a
1 changed files with 12 additions and 12 deletions

View File

@ -1,22 +1,22 @@
# Setting up Google Authentication # Setting up Google Authentication
- Create a Firebase project here: https://firebase.google.com/. You'll need a - Create a Firebase project here: https://firebase.google.com/. You'll need a
signed Android build for that, that can be a debug auto-signed build too, just signed Android build for that, that can be a debug self-signed build too, just
retrieve the signing hash. retrieve the signing hash. The key hash of an already signed ap can be obtained
as follows (on macOS): ```keytool -list -printcert -jarfile the-app.apk```
- Place the generated ```google-services.json``` file in ```android/app``` - Place the generated ```google-services.json``` file in ```android/app```
for Android and the ```GoogleService-Info.plist``` into ```ios/app/src``` for for Android and the ```GoogleService-Info.plist``` into ```ios/app/src``` for
iOS (you can stop at that step, no need for the driver and the code changes they iOS (you can stop at that step, no need for the driver and the code changes they
suggest in the wizard). suggest in the wizard).
- You may want to exclude these files in YOUR GIT config (do not exclude them in - You may want to exclude these files in YOUR GIT config (do not exclude them in
the ```.gitignore``` of the application itself!). the ```.gitignore``` of the application itself!).
- Your WEB and iOS client IDs are auto generated during the Firebase project - Your web client ID is auto generated during the Firebase project
creation. Find them in the Google Developer console: creation. Find them in the Google Developer console
https://console.developers.google.com/ (https://console.developers.google.com/)
- Make sure your config reflects these IDs so then the Redux state of the - Make sure your config reflects this ID by setting
feature ```features/base/config``` contains variables ```googleApiApplicationClientID``` in config.js.
```googleApiApplicationClientID``` and ```googleApiIOSClientID``` with the - Add your iOS client ID (the REVERSED_CLIENT_ID in the plist file) as an
respective values. application URL schema into ```ios/app/src/Info.plist```
- Add your iOS client ID as an application URL schema into (replacing placeholder).
```ios/app/src/Info.plist``` (replacing placeholder). - Enable YouTube API access on the developer console (see above) to enable live
- Enable YouTube API access on the developer console (see above) for live
streaming. streaming.