From 6fb2da409ca5ba5af0b5179ed396789ce468cd88 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 11 Jun 2025 12:17:48 -0700 Subject: [PATCH 1/4] update simple sso disable login flow --- pages/configuration.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/configuration.mdx b/pages/configuration.mdx index e4d91bd..96ab3f4 100644 --- a/pages/configuration.mdx +++ b/pages/configuration.mdx @@ -67,6 +67,7 @@ This feature is most useful for when you have AnythingLLM as a simple sub-servic - **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 your in addition to using this feature. See [Disable Login Page](#disable-login-page-recommended). ### Enable @@ -110,6 +111,15 @@ 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. + ### Disable Fully remove or comment out the `SIMPLE_SSO_ENABLED` environment variable to return to the default behavior. From 3bd1cd1799856e997fa6c87f70cbcf1182fbbfbd Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 11 Jun 2025 12:36:07 -0700 Subject: [PATCH 2/4] setup warning --- pages/configuration.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pages/configuration.mdx b/pages/configuration.mdx index 96ab3f4..9a52e8a 100644 --- a/pages/configuration.mdx +++ b/pages/configuration.mdx @@ -64,6 +64,13 @@ This feature is most useful for when you have AnythingLLM as a simple sub-servic ### Prerequisites + + **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. +
+ 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. +
+ - **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. @@ -120,6 +127,12 @@ Setting `SIMPLE_SSO_NO_LOGIN` to **_any value_** in addition to `SIMPLE_SSO_ENAB - 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. From adea8e28480ed7f44fc9e5abce9b4a0486a30210 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 11 Jun 2025 12:40:57 -0700 Subject: [PATCH 3/4] typo --- pages/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/configuration.mdx b/pages/configuration.mdx index 9a52e8a..7fab2f3 100644 --- a/pages/configuration.mdx +++ b/pages/configuration.mdx @@ -74,7 +74,7 @@ This feature is most useful for when you have AnythingLLM as a simple sub-servic - **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 your in addition to using this feature. See [Disable Login Page](#disable-login-page-recommended). +- You may want to disable the login page for all users in addition to using this feature. See [Disable Login Page](#disable-login-page-recommended). ### Enable From f2ce3aa203c8c37de0792d53d81cd2d744946180 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 11 Jun 2025 12:42:04 -0700 Subject: [PATCH 4/4] fix anchor --- pages/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/configuration.mdx b/pages/configuration.mdx index 7fab2f3..4c80bf3 100644 --- a/pages/configuration.mdx +++ b/pages/configuration.mdx @@ -74,7 +74,7 @@ This feature is most useful for when you have AnythingLLM as a simple sub-servic - **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-recommended). +- 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