diff --git a/docker/.env.example b/docker/.env.example index 7bb07ebef7..2f6f896b0f 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -291,4 +291,8 @@ GID='1000' # Disable viewing chat history from the UI and frontend APIs. # See https://docs.anythingllm.com/configuration#disable-view-chat-history for more information. -# DISABLE_VIEW_CHAT_HISTORY=1 \ No newline at end of file +# DISABLE_VIEW_CHAT_HISTORY=1 + +# Enable simple SSO passthrough to pre-authenticate users from a third party service. +# See https://docs.anythingllm.com/configuration#simple-sso-passthrough for more information. +# SIMPLE_SSO_ENABLED=1 \ No newline at end of file diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 94b6d444df..c5ddf965cb 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -9,6 +9,7 @@ import PrivateRoute, { import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import Login from "@/pages/Login"; +import SimpleSSOPassthrough from "@/pages/Login/SSO/simple"; import OnboardingFlow from "@/pages/OnboardingFlow"; import i18n from "./i18n"; @@ -80,6 +81,8 @@ export default function App() { } /> } /> + } /> + } diff --git a/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx b/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx index 00f44a35ff..569ec4395b 100644 --- a/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx @@ -1,7 +1,12 @@ import { ArrowSquareOut, Info } from "@phosphor-icons/react"; import { AWS_REGIONS } from "./regions"; +import { useState } from "react"; export default function AwsBedrockLLMOptions({ settings }) { + const [useSessionToken, setUseSessionToken] = useState( + settings?.AwsBedrockLLMConnectionMethod === "sessionToken" + ); + return (
{!settings?.credentialsOnly && ( @@ -24,6 +29,43 @@ export default function AwsBedrockLLMOptions({ settings }) {
)} +
+ +
+ +

+ Select the method to authenticate with AWS Bedrock. +

+
+
+ + IAM + + + + Session Token + +
+
+
+ {useSessionToken && ( +
+ + +
+ )}