AI로 번역했습니다. 아직 커뮤니티의 검토를 거치지 않았습니다. 영어로 읽기

Salesforce OAuth Refresh Token Flow Explained (in English)

Updated 2026-11-07
Published 2023-10-13 · update checked 2026-11-07 · Watch on YouTube

What's changed since the video

Each change is dated and checked against Salesforce's own documentation.

  • New apps: rotation and a 30-day idle limit. The video says refresh tokens can be set not to expire. From July 2026, new apps get refresh token rotation and a 30-day idle limit; older apps aren't forced, but Salesforce strongly recommends them (OAuth Security Controls Are Enforced for New External Client Apps and Connected Apps, Summer '26 release notes, checked 2026-11-07).
  • PKCE for apps that can't keep a secret. For a mobile app, the web server flow with PKCE; the user-agent flows retire February 20, 2027 (OAuth User-Agent and Hybrid User-Agent Flows Retirement, Winter '27 release notes, checked 2026-11-07).
  • A reused refresh token is caught. With rotation on, "If someone tries to use a refresh token that's been rotated out, Salesforce invalidates the current refresh token and any associated access tokens"; the 30-day idle limit is being enforced in production from November 4, 2026 (Configure the External Client App OAuth Settings, Salesforce Help, checked 2026-11-07).
  • A stolen token can be made useless. DPoP binds tokens to the app's private key, available on a rolling basis from October 5, 2026 (Protect Your Data with the OAuth 2.0 DPoP Extension, Winter '27 release notes, checked 2026-11-07).

Still right

  • With the web server flow, the app can also get a refresh token, store it securely, and swap it later for a new access token, so the person isn't asked to log in every day.
  • A refresh token isn't an access token: it only gets you a new one. It can be revoked.
  • When the refresh fails, send the person back to the login.

All videos in this series: ID와 접근

동영상은 클릭할 때만 YouTube에서 불러옵니다.