The provided text is a **release note** for **Logto**, an open-source identity platform. It details the new features, improvements, bug fixes, and contributions in version **1.44.0** of the Logto platform.

Here's a breakdown of the key information:

---

### 🚀 **New Features & Enhancements**

#### 1. **User Migration & ID Management**
- **Custom User IDs**: You can now pass a custom `id` when creating users via `POST /api/users`. This helps preserve existing IDs (e.g., `auth0|abc123`) during migration from other identity providers.
  - ✅ **Only available in self-hosted Logto** (not in Logto Cloud).
  - ⚠️ If the ID is already taken, the request fails with `user.id_already_in_use`.

#### 2. **User Lookup by External Identity**
- You can now **search for users** by their external identity (e.g., social login or SSO) using:
  - `GET /api/users` with parameters:
    - `identityType=social` (e.g., `dingtalk`)
    - `identityType=sso` (e.g., enterprise SSO)
    - `identityProvider` and `identityId`
- Filters combine with other search criteria using **AND logic**.

#### 3. **Bot Protection**
- **Cap as a Self-Hosted CAPTCHA Provider**:
  - Cap is an open-source, self-hosted CAPTCHA (proof-of-work).
  - No third-party dependencies → works in regions where reCAPTCHA/Cloudflare are blocked.
  - **Setup**:
    1. Deploy a public Cap Standalone instance.
    2. Add it in **Console > Security > CAPTCHA** with endpoint, site key, and secret key.
    3. Can also be configured via `PUT /api/captcha-provider` with `type: "Cap"`.

- **reCAPTCHA Enterprise Score Threshold**:
  - Now configurable (0.0 to 1.0) in **Console > Security > CAPTCHA**.
  - Controls how strict verification is (applies only to **invisible mode**).
  - Previously fixed at 0.5.

#### 4. **SAML Authentication Policies**
- **Session Reuse**: SAML apps can now reuse existing Logto sessions by turning off **"Always force authentication"** or setting `authnRequestConfig.forceAuthn = false`.
- **Actual Authentication Time**: SAML assertions now include the **real authentication time**.
- **Signed Authentication Requests**:
  - Enable via `authnRequestConfig.requireSignedAuthnRequests = true`.
  - Provide the SP’s PEM-encoded RSA X.509 certificate in `signingCertificate`.
  - Both HTTP-POST and HTTP-Redirect signatures are verified.
  - IdP metadata advertises the requirement (unsigned requests still accepted by default).

#### 5. **Theme Override via `theme` Parameter**
- Add `theme=light` or `theme=dark` to the authentication URL to override the user’s OS theme.
- Applies to the **entire sign-in flow** (including social/SAML callbacks and consent page).
- Ignored if dark mode is disabled in settings or if the value is invalid.

#### 6. **Refresh Tokens for Dynamic App Clients**
- **Dynamic apps** (using CIMD URLs as `client_id`) now support refresh tokens.
- **Problem**: Apps like ChatGPT/Codex request `offline_access` but don’t send `prompt=consent`, so Logto drops the scope.
- **Fix**: Enable **"Add consent prompt for offline access"** in dynamic app settings.
  - Logto adds `consent` to `prompt` for `offline_access` requests (unless `prompt=none`).
  - **Experimental**, off by default.
  - Audit logs show the added `consent`.

#### 7. **Management API SDK (`@logto/api`)**
- **Pagination Iterator**: `paginate()` returns a typed async iterator for paginated endpoints.
  ```ts
  for await (const user of apiClient.paginate('/api/users')) {
    console.log(user);
  }
  ```
- **Reliability**:
  - Token requests reject redirects.
  - Support custom abort signals and 10s timeout.
  - Concurrent requests share one token fetch.
  - Invalidated cached tokens only once (no infinite retries on 401).
  - API requests have configurable 10s timeout with per-request cancellation.
  - Scope mismatch warnings emitted once per distinct scope.
- **Ergonomics**:
  - Object-style config (tenant ID or base URL + API indicator).
  - Lowercase methods (`get()`, `post()`), uppercase still available.
  - Trailing slashes in custom URLs are normalized.

---

### 🐛 **Bug Fixes & Stability**

#### **Sign-in Experience**
- **Browser Auto-Translation**: Now prevents blank pages during sign-in by adding:
  ```html
  translate="no"
  <meta name="google" content="notranslate">
  ```
- **Social Account Linking**: When a required secondary identifier (e.g., phone) is taken, the "link and continue" option only appears if that identifier supports verification code sign-in.

#### **Enterprise SSO & OIDC**
- **Trailing Slash in OIDC Issuers**: `https://idp.example.com/` and `https://idp.example.com` now resolve to the same discovery URL.
- **`none` Prompt Validation**: Prevents combining `none` with other prompts.
- **API Error Messages**: Fall back to base language if regional language is unavailable.

#### **Console**
- **Webhook Test Results**: Now stored per webhook (no more cross-webhook confusion).

---

### 🔌 **Connectors**
- **Apple**:
  - Identifier field now labeled **"Services ID"**.
  - Explains that App ID (bundle ID) is rejected with `invalid_client`.
  - Setup instructions now cover Apple Developer portal (no Xcode needed).
  - Troubleshooting covers `invalid_client` and `invalid_request`, including Apple’s 24-hour cache.
- **DingTalk (web)**:
  - `corpId` from the token response is now preserved in `rawData`.
- **Twilio SMS**:
  - New optional **API host** config (e.g., to use a different Twilio region).

---

### 🛠️ **Self-Hosting & OSS Notes**
- **Database Migration Required**:
  - Two schema changes:
    1. Adds `authnRequestConfig` column to SAML app configs.
    2. Widens `users.id` and all referencing columns to `varchar(128)`.
  - Run `npm run alteration deploy` (or `logto db alteration deploy`) **before** starting the new version.
- **Rolling Back User ID Alteration**:
  - Fails if any user ID exceeds the old 12/21 char limit.
- **Custom User IDs**:
  - Only available in **self-hosted** Logto.
- **Cap Requires Own Instance**:
  - You must run your own Cap Standalone instance.
  - CSP is relaxed only when Cap is active.
- **Database Seeding**:
  - `logto db seed` now checks for leftover PostgreSQL roles before creating tables.
  - If roles from a previous DB remain, it reports the conflict and explains why dropping the DB didn’t remove them.

---

### 👏 **Contributors**
Huge thanks to the community for their contributions:
- **@JunWang666** – User lookup by external identity
- **@Igor-Techsee** – SAML authentication policies
- **@konlanx** – `theme` parameter
- **@Kathircpe** – reCAPTCHA score threshold
- **@nicolaj0** – Browser auto-translation opt-out
- **@Tyagiquamar** – OIDC `none` prompt validation & DingTalk `corpId`
- **@ryanchou1994** – PostgreSQL role check
- **@toyeshhm** – Kakao/Naver connector docs
- **@darcyYe** – Per-webhook test results

---

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

---

### 📌 Summary
This release focuses on:
- **Enhanced user management** (custom IDs, external identity lookup).
- **Improved bot protection** (Cap support, reCAPTCHA threshold).
- **Better SAML/SSO integration** (session reuse, signed requests).
- **Developer experience** (API SDK improvements, theme override).
- **Stability & UX** (bug fixes, localization, error handling).

It’s a **major update** for self-hosted Logto users, with significant improvements in **security**, **flexibility**, and **developer ergonomics**.

Let me know if you'd like a **summary for developers**, **product managers**, or **ops teams**!