The provided content is a **release notes document** for **Logto**, a developer-focused identity platform, detailing changes in version **v1.46.0**. It includes updates across multiple areas such as **security**, **connectors**, **APIs**, **bug fixes**, and **OSS (Open Source Software) improvements**.

Below is a **structured summary** of the key points, organized by category, to help you quickly understand what's new or changed:

---

### 🔐 **Security Hardening**
1. **SAML Assertion Audience**  
   - SAML assertions now require the `Audience` value to **exactly match** the connector’s **Audience URI (SP Entity ID)**.
   - If sign-in fails with `"SAML assertion audience does not match the SP entity ID"`, update your identity provider's audience to match the connector's SP Entity ID.

2. **Account API & Third-Party Apps**  
   - All Account API operations now require a **first-party application** (e.g., Account Center, Console).
   - Third-party apps receive `403 auth.third_party_application_forbidden` when attempting these operations.
   - **Affected endpoints**:
     - `GET /api/my-account/identities/:target/access-token`
     - `GET /api/my-account/sso-identities/:connectorId/access-token`
     - `PUT /api/my-account/identities/:target/access-token`
     - Reading backup codes, sessions, grants, and trusted devices.

3. **Connector Request Errors**  
   - Sensitive data (request bodies, headers, query strings) is **no longer logged or exposed** in error responses.
   - Only error name, code, message, and URL method/path are retained.

4. **Single-Use Codes & Tokens**  
   - Authorization codes, device codes, pushed auth requests, and one-time tokens are now **single-use only**.
   - Reuse results in:
     - `invalid_grant` (authorization code)
     - `invalid_request_uri` (pushed auth request)
     - `one_time_token.token_consumed` (one-time token)
   - **Refresh tokens** still support reuse windows.

5. **SAML Applications**  
   - Malformed SAML XML (e.g., unescaped `&`, mismatched tags) now returns `400 application.saml.invalid_saml_request`.
   - Non-decodable SAML requests now return `400` instead of `500` if signed auth is not required.

---

### 🛠️ **Connectors & Integrations**
1. **Standard OAuth 2.0 & OIDC**  
   - Supports `expires_in` as a **string** (e.g., from Criipto).
   - Accepts `scope` as a **JSON array** (e.g., from Twitch), normalized to space-delimited string.

2. **Patreon Connector**  
   - V1 API deprecated → now uses **Patreon API v2** identity endpoint.
   - Fixes sign-in failure due to `410 Gone`.

3. **Connector Kit**  
   - `jsonGuard` and `jsonObjectGuard` now build schema **once**, improving performance for large JSON payloads.

---

### 🖥️ **Console & Account Center**
1. **Sign-in Experience**  
   - Fixed blank sign-in page on **older Safari/iOS (pre-16.4)**.
   - Now compiled for **iOS 15+ and Safari 15+**.

2. **Social Sign-In**  
   - **Unreachable provider**: Returns `502 connector.social_provider_unreachable` with network error and connector ID.
   - **Declined authorization**: Returns `401 connector.authorization_failed` with provider-specific error codes.
   - **Provider error messages**: Now show actual error messages instead of `{}`.

3. **OAuth & OIDC**  
   - **Space-padded scopes** (e.g., `" offline_access"`) are now ignored.
   - Empty scopes due to spaces are treated as **omitted**, preserving original scope.

4. **Management API**  
   - **`customClientMetadata`**: Rejects unknown keys with `400 guard.invalid_input`.
   - **Pagination links**: Preserve repeated query parameters (e.g., `?types=SPA&types=Traditional`).
   - **One-time token count**: `Total-Number` header now reflects filtered results.
   - **Manual unlock**: Clears security verification lockouts >60 minutes.

5. **SAML Applications**  
   - Fixed attribute placeholders (e.g., `{attr.o365role}`) now return actual user values.

6. **Console & Account Center UI**  
   - **Application access control**: Organization selector now filters during search.
   - **Role permissions**: Full API resource names shown; truncated names have tooltips.
   - **Account Center branding**: Removes "Powered by Logto" during load when branding is hidden.

---

### 📚 **Documentation**
- **Swift integration guide**: Fixed inconsistent client name in code examples (prevents `Cannot find 'client' in scope` in Xcode).

---

### 🧩 **Self-Hosting & OSS Notes**
1. **Review Before Upgrading**  
   - Check **OAuth 2.0**, **Azure AD email sync**, **SAML audience**, and **third-party API changes**.

2. **Node.js 26 Support**  
   - Official Docker image now runs on **Node.js 26**.
   - Minimum versions:  
     - Node.js 22.23.4  
     - Node.js 24.22.1  
     - Node.js 26.12.1  
   - Includes **October 2026 security fixes**.

3. **Database Migration Required**  
   - Schema changes include:
     - New columns for SAML static attributes.
     - New sign-in experience and Account Center settings.
   - Run:  
     ```bash
     npm run alteration deploy
     # or
     logto db alteration deploy
     ```

4. **Database Connection Retries**  
   - Retries on DNS failures (`ENOTFOUND`, `EAI_AGAIN`) at startup and CLI commands (`db seed`, `db alteration deploy`).

5. **Admin Endpoint Warning**  
   - Logs warning when `/console` request reaches default tenant with mismatched origin.
   - Check **Console URL** and `ADMIN_ENDPOINT`.

---

### 🙌 **Contributors**
Special thanks to:
- **@nicolaj0** – Multiple contributions (webhooks, user metadata, error handling, DNS retries).
- **@RaphaelFakhri** – First contribution: pagination links.
- **@mvanhorn** – Admin endpoint warning.
- **@timokoethe** – Swift integration guide consistency.

---

### 🔗 **Full Changelog**
- [Compare v1.45.0 → v1.46.0](https://github.com/logto-io/logto/compare/v1.45.0...v1.46.0)

---

### ✅ **Action Items for Users**
1. **Upgrade Checklist**:
   - Update **Node.js** to v22, v24, or v26.
   - Run **database migration** (`npm run alteration deploy`).
   - Update **SAML identity provider** audience to match SP Entity ID.
   - Ensure **third-party apps** use **first-party apps** for Account API access.
   - Test **SAML**, **OAuth**, and **social sign-in** flows.

2. **Security & Logging**:
   - Review error logs for `403`, `400`, `401`, `502` codes.
   - Monitor for `ENOTFOUND` or `EAI_AGAIN` during startup.

3. **Documentation**:
   - Update Swift code examples if using them.

---

This release focuses on **security**, **stability**, **performance**, and **developer experience**. It’s a significant update for both **self-hosted** and **cloud users**.

Let me know if you'd like a **cheat sheet**, **upgrade checklist**, or **migration guide**!