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

Here's a breakdown of the key information:

---

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

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

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

#### 3. **Bot Protection**
- **Cap as a self-hosted CAPTCHA**:
  - Cap is an open-source, self-hosted CAPTCHA (proof-of-work).
  - Can be used as an alternative to Cloudflare Turnstile or Google reCAPTCHA.
  - Requires deploying a **Cap Standalone** instance and configuring it in Logto Console.
  - Allows dynamic JS evaluation (required by Cap's instrumentation).
- **reCAPTCHA Enterprise score threshold**:
  - Now configurable (0.0 to 1.0) in **Console > Security > CAPTCHA**.
  - Previously fixed at 0.5.
  - Applies only to **invisible mode** (checkbox mode unaffected).

#### 4. **SAML Authentication Policies**
- **Session reuse**: Turn off "Always force authentication" or set `authnRequestConfig.forceAuthn = false` to allow session reuse.
- **Actual authentication time**: SAML assertions now include the **real authentication time**.
- **Signed authentication requests**:
  - Enable with `requireSignedAuthnRequests = true`.
  - Provide the SP's PEM-encoded RSA certificate.
  - 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 an invalid theme is passed.

#### 6. **Refresh Tokens for Dynamic App Clients**
- **Dynamic apps** (e.g., ChatGPT, Codex) use **CIMD URLs** as `client_id`.
- These apps often request `offline_access` but **don’t send `prompt=consent`**, so Logto drops `offline_access` (per OpenID Connect).
- **Fix**: Enable **"Add consent prompt for offline access"** in dynamic app settings.
  - Logto adds `prompt=consent` to requests that ask for `offline_access` without it.
  - Requests with `prompt=none` are **not modified**.
  - **Experimental**, off by default, and 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 improvements**:
  - Rejects redirects on token requests.
  - Supports custom abort signals and 10s timeout.
  - Concurrent requests share one token fetch.
  - Invalidates cached tokens only once (no infinite retries on 401).
  - 10s timeout for network requests (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 base 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 already used, "link and continue" only appears if the user can sign in via verification code.

#### **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 includes Apple's identifier cache (up to 24h refresh).
- **DingTalk (web)**:
  - `corpId` from token response is now preserved in `rawData`.
- **Twilio SMS**:
  - New optional **API host** config (e.g., for non-default regions).

---

### 🛠️ **Self-hosting & OSS Notes**
- **Database migration required**:
  - Two schema changes:
    1. Adds `authnRequestConfig` column to SAML apps.
    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 your own instance**: Must run a public Cap Standalone instance.
- **Database seeding**: Now checks for leftover PostgreSQL roles before creating tables. If conflicts exist, it explains why and how to clean up.

---

### 🙏 **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:
- **User identity management** (custom IDs, external identity lookup).
- **Security & bot protection** (Cap, reCAPTCHA threshold).
- **SAML & OIDC improvements** (session reuse, signed requests).
- **Developer experience** (API SDK, theme override).
- **Stability & UX** (bug fixes, better error handling).

It’s a **major update** for self-hosted Logto users, with **significant new features** and **important database migration steps**.

> ✅ **Action Required**: If you're self-hosting, **run the database migration** before upgrading.