The provided text appears to be a **changelog** for **Logto**, an open-source identity platform, specifically for a release (likely version 1.44.0). It details new features, enhancements, bug fixes, and important notes for self-hosting and open-source (OSS) users.

Here's a breakdown of the key information:

### 📌 Summary of the Release

This release focuses on **improving user experience, security, and developer tooling**. Key highlights include:

1.  **MFA Trusted Devices:** Users can now trust their browser after completing Multi-Factor Authentication (MFA), reducing the need for repeated prompts.
2.  **User ID Migration:** Users can now preserve their existing IDs (up to 128 characters) when migrating from other identity providers, and the API allows looking up users by their external identity.
3.  **Enhanced Bot Protection:** Introduces **Cap**, a self-hosted CAPTCHA solution, for regions where services like Cloudflare Turnstile or Google reCAPTCHA are unreliable. It also adds a configurable score threshold for reCAPTCHA Enterprise.
4.  **SAML Application Policies:** SAML applications can now reuse existing Logto sessions and receive the actual authentication time in assertions.
5.  **Theme Control:** Applications can now control the sign-in page's theme (`light`/`dark`) via an authentication parameter.
6.  **Refresh Tokens for Dynamic Apps:** Dynamic apps (like ChatGPT) can now receive refresh tokens, preventing users from having to sign in again every time their access token expires.

### 🔧 Key Features & Enhancements

*   **MFA Trusted Devices:**
    *   Admins can enable and set a trust duration (1-365 days) in the Console.
    *   Users see a "Trust this device" page after MFA.
    *   Admins and users can manage trusted devices via the Console, Account Center, and APIs.
    *   Webhooks and audit logs are updated.

*   **User ID Management:**
    *   `users.id` and related columns are now `varchar(128)`.
    *   Self-hosted Logto allows creating users with a custom `id` (e.g., `auth0|abc123`).
    *   The Management API can search for users by their external identity (e.g., social or SSO provider ID).

*   **Bot Protection:**
    *   **Cap:** An open-source, self-hosted CAPTCHA. Requires a publicly reachable instance.
    *   **reCAPTCHA Enterprise:** A configurable score threshold (0.0-1.0) is now available.

*   **SAML Application Policies:**
    *   **Session Reuse:** Turn off "Always force authentication" to allow session reuse.
    *   **Signed Requests:** Support for requiring and verifying signed SAML authentication requests.
    *   **Actual Auth Time:** SAML assertions now include the actual authentication time.

*   **`theme` Parameter:** Pass `theme=light` or `theme=dark` to override the user's OS setting for the sign-in experience.

*   **Dynamic App Refresh Tokens:** An experimental setting adds `consent` to the `prompt` for dynamic apps requesting `offline_access`, enabling refresh tokens.

*   **Management API SDK (`@logto/api`):**
    *   `paginate()` returns a typed async iterator for easier pagination.
    *   Improved reliability (redirect rejection, timeout, token caching).
    *   Better ergonomics (lowercase methods, URL normalization).

### 🐞 Bug Fixes & Stability

*   **Sign-in Experience:**
    *   Fixed a bug where browser auto-translation could leave the sign-in page blank.
    *   Improved social account linking flow when a required identifier is already in use.
*   **Enterprise SSO & OIDC:**
    *   Fixed trailing slash handling for OIDC issuers.
    *   Fixed `none` prompt validation.
    *   Improved API error message language fallback.
*   **Console:**
    *   Fixed webhook test results being displayed on the wrong webhook's page.

### ⚠️ Connectors

*   **Apple:** Updated setup instructions to clarify the "Services ID" and troubleshoot `invalid_client` errors.
*   **DingTalk (web):** `corpId` is now preserved in `rawData`.
*   **Twilio SMS:** Added an optional `api host` configuration.

### 🛠️ Self-hosting & OSS Notes

*   **Database Migration Required:** Two schema changes are needed:
    1.  Add a column to SAML app configs.
    2.  Widen `users.id` and related columns to `varchar(128)`.
    *   **Important:** Run `npm run alteration deploy` or `logto db alteration deploy` **before** starting the new version.
*   **Rolling Back:** Reverting the user ID change will fail if any stored ID is longer than the old limit.
*   **Custom User IDs:** Only available in self-hosted Logto.
*   **Cap:** Requires a publicly reachable Cap Standalone instance. The Content Security Policy is relaxed only when Cap is active.
*   **Database Seeding:** `logto db seed` now checks for leftover PostgreSQL roles before creating tables.

### 👏 Contributors

The release thanks the following community members for their contributions:
*   **@JunWang666:** User lookup by external identity
*   **@Igor-Techsee:** Authentication policies for SAML applications
*   **@konlanx:** `theme` authentication parameter
*   **@Kathircpe:** reCAPTCHA Enterprise score threshold
*   **@nicolaj0:** Browser auto-translation opt-out
*   **@Tyagiquamar:** `none` prompt validation and DingTalk `corpId` in `rawData`
*   **@ryanchou1994:** Leftover PostgreSQL role check
*   **@toyeshhm:** Kakao and Naver connector README fixes
*   **@darcyYe:** Per-webhook test results

### 🔗 Full Changelog

The full list of changes can be found at: [https://github.com/logto-io/logto/compare/v1.43.0...v1.44.0](https://github.com/logto-io/logto/compare/v1.43.0...v1.44.0)