认证
自托管文档访问
本部分需要密码才能访问。 有兴趣自行托管?联系销售了解更多信息。
Self-Hosting Documentation Access Granted
对于自托管部署,LlamaCloud支持通过OIDC和基础认证(邮箱/密码)对用户进行身份验证。
基础认证(邮箱/密码)
Section titled “Basic Auth (Email/Password)”基础认证是一种简单的身份验证模式,允许您通过邮箱和密码验证用户身份。这对于自托管部署非常有用,因为您可能没有现有的身份提供程序,并且非常适合预发布环境部署。对于生产环境部署,我们建议配置OIDC。
在你的 values.yaml 文件中,你可以配置以下内容:
config: authentication: basicAuth: enabled: true validEmailDomain: "runllama.ai" # this is optional, but a way to restrict access to only users with a specific email domain jwtSecret: <YOUR-JWT-SECRET> # default is a random string # secret: <BASIC-AUTH-SECRET> # if you want to use an existing secret for the JWT secret完成上述配置后,您应在用户界面中看到以下内容:

要开始使用,管理员可以点击Create Account进行设置,然后继续邀请其他用户加入您创建的组织。
- 在基础认证模式下,用户可以在
Settings > Personal下更新其设置。
OIDC (OpenID Connect)
Section titled “OIDC (OpenID Connect)”- 您的身份提供商支持使用发现URL或颁发者URL。
- 所需的权限范围是
openid、profile和email。 - 请确保重定向URL设置为
<your-host>/api/v1/auth/callback。
在你的 values.yaml 文件中,你可以配置以下内容:
config: authentication: oidc: enabled: true # Example with Microsoft Entra ID discoveryUrl: "https://login.microsoftonline.com/<TENANT-ID>/v2.0/.well-known/openid-configuration" clientId: <CLIENT-ID> clientSecret: <CLIENT-SECRET>完成上述配置后,您应在用户界面中看到以下内容:

- 有效的 OIDC 发现 URL 必须以
.well-known/openid-configuration结尾。 - In test environments, you may need to disable SSL verification if your OIDC provider does not have a valid SSL certificate. This is not recommended for production environments. To bypass SSL verification, you can add the following to your
values.yamlfile:-
backend:extraEnvVariables:- name: OIDC_VERIFY_SSLvalue: false
-