这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions pages/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ This feature is most useful for when you have AnythingLLM as a simple sub-servic

### Prerequisites

<Callout type="warning" emoji="️⚠️">
**NOTE:** You should enable these configurations _after_ you have enabled multi-user mode, created at least one `admin` user, and have completed the onboarding flow
in the AnythingLLM instance.
<br/>
Do **not** enabled these configurations before you have done this or else you may find yourself soft-locked out of the instance until you disable these flags.
</Callout>

- **Your instance must be in multi-user mode** to use this feature.
- You should provision an API key for AnythingLLM so you can create new users as well as issue temporary authentication links for users.
- The user must already exist within AnythingLLM before using this feature. You can create a user via the in-app interface or the API.
- You may want to disable the login page for all users in addition to using this feature. See [Disable Login Page](#disable-login-page).

### Enable

Expand Down Expand Up @@ -110,6 +118,21 @@ https://your-anythingllm-instance.com/sso/simple?token=1234567890&redirectTo=/wo

Will redirect the user to the `/workspaces/sample-workspace` chat page after logging in. This can be useful if you want to redirect the user to a specific workspace they have access to after logging in.

### Disable Login Page

If you are using the `SIMPLE_SSO_ENABLED` feature, you can disable the login page by setting the `SIMPLE_SSO_NO_LOGIN` environment variable to **_any value_**.

Setting `SIMPLE_SSO_NO_LOGIN` to **_any value_** in addition to `SIMPLE_SSO_ENABLED` & multi-user mode enabled will:
- Disable the traditional login page for any users
- Prevent creation of new **Invitations** by any user
- Prevent any existing **Invitations** from being used for new users to create an account with.

```bash copy
# This can be any value, number, boolean, or string and it will have the same effect.
SIMPLE_SSO_ENABLED="enable"
SIMPLE_SSO_NO_LOGIN="enable"
```

### Disable

Fully remove or comment out the `SIMPLE_SSO_ENABLED` environment variable to return to the default behavior.
Expand Down