> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Okta SSO 指南

> 使用 SAML 2.0 应用程序配置将 Dashboard 连接到 Okta 以实现 SSO

本指南介绍如何使用 SAML 2.0 将 Yuno 连接到 Okta。

## 前提条件

* 一个 Okta 账户
* 在 Okta 中拥有管理 SSO 设置和创建应用程序的管理员权限（您将在下面的第 1 步中为 Yuno 创建 SAML 应用程序；无需事先存在任何应用程序）
* 可以访问 [Yuno Dashboard](https://dashboard.y.uno/)

**1. 在 Okta 中创建 SAML 应用程序**

在 Okta 中，前往：

**Applications → Create App Integration → SAML 2.0 → Next**

为您的应用程序选择一个名称，并可选择上传徽标。随后您将看到 SAML 配置表单。

![Okta 的 SAML Settings 表单，显示需要填入 Yuno 值的 Single sign-on URL 和 Audience URI (SP Entity ID) 字段](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/okta-sso-guide/image1.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=5ac88793b28d72116794f9b8f33954be)

**2. 使用 Yuno 的值配置 SAML 设置**

打开 Yuno Dashboard，点击您的头像，然后打开 **Security**。导航到 **Single Sign-On (SSO)** 选项卡，点击 **Set up**，并收集以下信息：

* Identifier (Entity ID)
* Assertion Consumer Service URL

将这些值复制到 Okta SAML 表单中：

* **Audience URI (SP Entity ID)** → Identifier (Entity ID)
* **Single sign-on URL** → Assertion Consumer Service URL

点击 **Next**，然后勾选 **This is an internal app…** 选项，并完成设置。

![Okta 应用创建向导第 3 步，在点击 Finish 之前已勾选“This is an internal app that we have created”复选框](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/okta-sso-guide/image2.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=f3240b8b8b103e9ad58fba3d8aa433db)

**3. 导出并上传元数据 XML**

在 Okta 中，找到应用程序设置下的 **Metadata URL** 并打开它。将文件保存为 `metadata.xml`。

然后，在 Yuno Dashboard 中：

1. 在 **Yuno configuration → Option A: Upload metadata XML** 下上传 `metadata.xml` 文件
2. 等待 **Upload completed** 确认
3. 点击 **Save**

![Yuno Dashboard 的 SSO 配置界面，显示 Option A 中已成功上传元数据 XML 文件](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/okta-sso-guide/image3.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=6091f686fdeb0a772bc4fa16ae11003c)

或者，您也可以获取 **Option B** 中列出的信息并手动输入。

**4. 在 Okta 中分配用户（可选）**

配置完成后，您可以将 Okta 用户或群组分配给该应用程序，使他们能够使用 SSO 登录。

## 故障排除

如果您无法设置 SSO 连接，或在初始配置后遇到问题：

* Yuno 要求使用**已签名的 SAML 响应**，请检查：
  * SAML 响应和断言都已签名
  * 在 Okta 中配置的签名算法为 **SHA-256**
  * 用于签名的证书与元数据中包含的证书一致
* 在 Yuno Dashboard 的 **Security → Single sign-on (SSO)** 下查看 SSO 日志


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.