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
Copy file name to clipboardExpand all lines: docs/install/user_auth_system.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,8 @@ To enable Google login, you must create an application in the [Google Cloud Cons
54
54
4. Click on "Save and continue" and then "Back to dashboard".
55
55
5. Click on "Create Credentials" and then "OAuth client ID".
56
56
6. Select "Web application" as the application type and give it a name.
57
-
7. Add `http://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
58
-
8. Add `http://your-domain/oauth/google/callback` to the authorized redirect URIs. (if you use localhost then use this `http://localhost:3080/oauth/google/callback`)
57
+
7. Add `https://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
58
+
8. Add `https://your-domain/oauth/google/callback` to the authorized redirect URIs. (if you use localhost then use this `http://localhost:3080/oauth/google/callback`)
59
59
9. Click on "Create" and copy your client ID and client secret.
60
60
10. Paste them into your `/.env` file.
61
61
11. Enable the feature in the `/.env` file
@@ -65,18 +65,23 @@ To enable Google login, you must create an application in the [Google Cloud Cons
65
65
## Facebook Authentication
66
66
### (It only works with a domain, not with localhost)
67
67
68
-
1. Go to [Facebook Developer Portal](https://developers.facebook.com/)
69
-
2. Create a new Application and give it a name
70
-
4. In the Dashboard tab select product and select "Facebook login", then tap on "Configure" and "Settings". Male sure "OAuth client access", "Web OAuth access", "Apply HTTPS" and "Use limited mode for redirect URIs" are **enabled**
71
-
5. In the Valid OAuth Redirect URIs add "your-domain/oauth/facebook/callback" (example: http://example.com/oauth/facebook/callback)
72
-
6. Save changes and in the "settings" tab, reset the Client Secret
73
-
7. Put the Client ID and Client Secret in the .env file:
68
+
1. Go to the [Facebook Developer Portal](https://developers.facebook.com/).
69
+
2. Create a new application and select "Authenticate and request data from users with Facebook Login."
70
+
3. Choose "No, I'm not creating a game" and provide a name for your application.
71
+
4. In the Dashboard tab, go to "Use cases" and click "Customize" under "Authentication and account creation." Add the email permission by clicking "add" under email's permission.
72
+
5. In the settings section, click "go to settings." Ensure that "Client OAuth login," "Web OAuth login," and "Enforce HTTPS" are **enabled**.
73
+
6. Add `your-domain/oauth/facebook/callback` to the Valid OAuth Redirect URIs (e.g., https://example.com/oauth/facebook/callback).
74
+
7. Save changes. In the "App settings" tab, click "show" next to the App secret.
75
+
8. Copy the Client ID and Client Secret and paste them into the .env file as follows: (`App ID=Client ID` & `App secret=Client Secret`)
76
+
74
77
```bash
75
78
FACEBOOK_CLIENT_ID=your_client_id
76
79
FACEBOOK_CLIENT_SECRET=your_client_secret
77
80
FACEBOOK_CALLBACK_URL=/oauth/facebook/callback # this should be the same for everyone
78
81
```
79
-
8. Save the .env file
82
+
9. Save the .env file.
83
+
84
+
Make sure to replace "your_client_id" and "your_client_secret" with the actual values from your Facebook Developer Portal
0 commit comments