mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
📚 docs: Facebook update (#1312)
* Update user_auth_system.md * Update user_auth_system.md * Update user_auth_system.md
This commit is contained in:
parent
427b05b891
commit
34d2da1ffc
1 changed files with 14 additions and 9 deletions
|
@ -54,8 +54,8 @@ To enable Google login, you must create an application in the [Google Cloud Cons
|
|||
4. Click on "Save and continue" and then "Back to dashboard".
|
||||
5. Click on "Create Credentials" and then "OAuth client ID".
|
||||
6. Select "Web application" as the application type and give it a name.
|
||||
7. Add `http://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
|
||||
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`)
|
||||
7. Add `https://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
|
||||
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`)
|
||||
9. Click on "Create" and copy your client ID and client secret.
|
||||
10. Paste them into your `/.env` file.
|
||||
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
|
|||
## Facebook Authentication
|
||||
### (It only works with a domain, not with localhost)
|
||||
|
||||
1. Go to [Facebook Developer Portal](https://developers.facebook.com/)
|
||||
2. Create a new Application and give it a name
|
||||
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**
|
||||
5. In the Valid OAuth Redirect URIs add "your-domain/oauth/facebook/callback" (example: http://example.com/oauth/facebook/callback)
|
||||
6. Save changes and in the "settings" tab, reset the Client Secret
|
||||
7. Put the Client ID and Client Secret in the .env file:
|
||||
1. Go to the [Facebook Developer Portal](https://developers.facebook.com/).
|
||||
2. Create a new application and select "Authenticate and request data from users with Facebook Login."
|
||||
3. Choose "No, I'm not creating a game" and provide a name for your application.
|
||||
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.
|
||||
5. In the settings section, click "go to settings." Ensure that "Client OAuth login," "Web OAuth login," and "Enforce HTTPS" are **enabled**.
|
||||
6. Add `your-domain/oauth/facebook/callback` to the Valid OAuth Redirect URIs (e.g., https://example.com/oauth/facebook/callback).
|
||||
7. Save changes. In the "App settings" tab, click "show" next to the App secret.
|
||||
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`)
|
||||
|
||||
```bash
|
||||
FACEBOOK_CLIENT_ID=your_client_id
|
||||
FACEBOOK_CLIENT_SECRET=your_client_secret
|
||||
FACEBOOK_CALLBACK_URL=/oauth/facebook/callback # this should be the same for everyone
|
||||
```
|
||||
8. Save the .env file
|
||||
9. Save the .env file.
|
||||
|
||||
Make sure to replace "your_client_id" and "your_client_secret" with the actual values from your Facebook Developer Portal
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue