You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Thanks for contributing!
Provide a description of your changes below and a general summary in the
title
Please look at the following checklist to ensure that your PR can be
accepted quickly:
-->
## Description
Add paragraphs on `social_authentication.md` to specify all the
environment variables and user defined settings (Xcode) that the users
have to fill once finished the configuration of a specific social
authentication method. Updated Email sign in, Facebook and Twitter
methods.
Fixesflutter/flutter#140463
<!--- Describe your changes in detail -->
## Type of Change
<!--- Put an `x` in all the boxes that apply: -->
- [ ] ✨ New feature (non-breaking change which adds functionality)
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🧹 Code refactor
- [ ] ✅ Build configuration change
- [x] 📝 Documentation
- [ ] 🗑️ Chore
Copy file name to clipboardexpand all lines: docs/docs/project_configuration/social_authentication.md
+17-3
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The Flutter News Toolkit comes pre-configured to support authentication using pa
9
9
10
10
## Email
11
11
12
-
The news toolkit supports passwordless login.
12
+
The news toolkit supports passwordless login. This means a deep link is sent to the user's email address, that when clicked will open your app and log the user in.
13
13
14
14
### Firebase configuration
15
15
@@ -21,6 +21,12 @@ Passwordless authentication with an email link requires additional configuration
21
21
22
22
:::
23
23
24
+
Once the email authentication method is set up, go to **Firebase -> Engage -> Dynamic links**. Set up a new dynamic link URL prefix (for example, yourApplicationName.page.link) with a dynamic link URL of "/email_login".
25
+
26
+
Once the dynamic link is set up, replace the placeholder value for **FLAVOR_DEEP_LINK_DOMAIN** inside the `launch.json` file with the **dynamic link URL prefix** you just created. This enviroment variable will be used inside `firebase_authentication_client.dart` to generate the dynamic link URL that will be sent to the user.
27
+
28
+
In addition, replace the placeholder value for every **FLAVOR_DEEP_LINK_DOMAIN** key within your `project.pbxproj` file with the dynamic link URL prefix you just created.
29
+
24
30
## Google
25
31
26
32
### Firebase configuration
@@ -49,7 +55,11 @@ After setting up your [Firebase project](https://flutter.github.io/news_toolkit/
49
55
50
56
### Complete the setup
51
57
52
-
To complete your setup, add the OAuth redirect URI listed in your **Firebase Authentication Sign-in Method** to your Facebook app configuration. For additional details, check out the [Firebase authentication](https://firebase.google.com/docs/auth/?authuser=0) page.
58
+
To complete your setup, add the OAuth redirect URI listed in your **Firebase Authentication Sign-in Method** to your Facebook app configuration.
59
+
60
+
In addition, replace the placeholder value for every **FACEBOOK_APP_ID** , **FACEBOOK_CLIENT_TOKEN** and **FACEBOOK_DISPLAY_NAME** keys within your `project.pbxproj` file with their corresponding values.
61
+
62
+
For additional details, check out the [Firebase authentication](https://firebase.google.com/docs/auth/?authuser=0) page.
53
63
54
64
## Twitter
55
65
@@ -73,4 +83,8 @@ After setting up your [Firebase project](https://flutter.github.io/news_toolkit/
73
83
74
84
### Complete the setup
75
85
76
-
To complete your setup, add the OAuth redirect URI listed in your **Firebase Authentication Sign-in Method** to your Twitter app configuration. For more information, check out the [Firebase authentication](https://firebase.google.com/docs/auth/?authuser=0) page.
86
+
To complete your setup, add the OAuth redirect URI listed in your **Firebase Authentication Sign-in Method** to your Twitter app configuration.
87
+
88
+
In addition, replace the placeholder values for **TWITTER_API_KEY** and **TWITTER_API_SECRET** inside the `launch.json` file. You must also replace the placeholder value for every **TWITTER_REDIRECT_URI_SCHEME** key within your `project.pbxproj` file with their corresponding values.
89
+
90
+
For more information, check out the [Firebase authentication](https://firebase.google.com/docs/auth/?authuser=0) page.
0 commit comments