Security changes to the default CLI Connected App (`PlatformCLI`)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 1/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- cli
Hướng nghiên cứu
This issue describes upcoming OAuth policy changes for the default PlatformCLI Connected App and gives no files, tests, or code entry points to change. Start by reading the linked PKCE and jsforce references; done means users understand which login flows are affected, when each change takes effect, and what action to take.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We're enabling two OAuth security controls on PlatformCLI, the Connected App the CLI uses by default when you run sf org login web without your own --client-id. They roll out on two dates:
- PKCE required for web login — enabled October 21, 2026.
- 30-day refresh-token idle timeout — enabled November 9, 2026.
Most people on a current CLI will notice nothing. Here's what's changing and who might be affected.
1. PKCE is now required for web login (October 21, 2026)
PKCE is a standard that binds an authorization request to the client that started it, so an intercepted auth code can't be redeemed by anyone else. The Salesforce CLI has sent a PKCE challenge on sf org login web for years. This change makes the server reject any web-login request that arrives without one.
Who might be affected:
- Very old CLI versions. Releases from roughly late 2021 through March 2024 shipped a version of our auth library that did not send a PKCE challenge. Running
sf org login web(orsfdx force:auth:web:login) on one of those builds against the default Connected App will now fail at the login step withinvalid_request / missing code challenge error.- Fix: Update to a current CLI.
- Custom integrations that authenticate against this Connected App without going through the Salesforce CLI or
@salesforce/core. If you built your own web/authorization-code flow (for example, a tool that drives OAuth directly) against the default Connected App, it must now send acode_challenge.- Fix: If you use jsforce directly, construct
OAuth2withuseVerifier: true. jsforce then generates a PKCE verifier and adds thecode_challengeto the authorization request (andcode_verifierto the token exchange) for you.
- Fix: If you use jsforce directly, construct
- Note: This only affects the interactive web login flow. JWT, access-token, and sfdx-url logins do not use PKCE and are unaffected.
- Note: If you use your own Connected App via
--client-id, this setting does not apply to you. Your Connected App's own configuration governs.
2. Refresh tokens will expire after 30 days of inactivity (starting November 9, 2026)
Starting November 9, 2026, the default Connected App has an idle timeout of 30 days on refresh tokens. If a refresh token is not used to get a new access token for 30 consecutive days, it is invalidated server-side and you'll be asked to log in again. Because the change applies going forward, the earliest an idle token can expire is early December 2026.
Who might be affected:
- This affects login flows that hold a refresh token, namely
webandsfdx-url. JWT logins (common in CI) re-sign on every call and are not affected. - In practice, any CLI used at least once a month keeps its refresh token alive, so active users should rarely see this. You'd notice it only on an org you haven't touched in over a month, where the fix is simply to run
sf org login webagain. - Note: The 30-day idle clock resets only when the access token expires and your refresh token is used to acquire a new access token from the server.
Questions or concerns?
Please comment on this Issue. We're happy to help you find the right path forward.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 571
- Fork
- 80
- Merge trung bình
- 14 giờ 43 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của forcedotcom/cli
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapeCó thể đã có người làm @konkonrong-lgtm đã nhận 72 ngày trước. Đang mởarea:afdx bug investigating owned by another team validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3625 · 4 bình luận ·
-
area:afdx bug owned by another team
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3608 · 2 bình luận ·
-
bug investigating validated
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
forcedotcom/cli#3667 · 5 bình luận ·
-
[BUG]: sf package version create always warns about org-capitalize-record-types, even when it's setĐang mởarea:packaging more information required owned by another team regression stale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
forcedotcom/cli#3663 · 5 bình luận ·
-
[BUG]: NavigationMenu SourceMember name mismatch prevents source-tracked retrieve from completingĐang mởbug investigating validated
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
forcedotcom/cli#3660 · 3 bình luận ·
Tất cả issue của forcedotcom/cli
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openclaw/openclaw#181212 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: tools documentation good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
leduardo99/diorama#6 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
cf deploy: Python Workers fail with 'No module named workers' because vendored modules are uploaded as ./python_modules/...Có thể đã có người làm @MattieTK đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cloudflare/cf#392 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
code-yeongyu/oh-my-openagent#10974 ·
Maintainer thường phản hồi trong vòng 1 ngày