换取令牌示意
换取令牌示意
curl -sS -X POST https://auth.example.com/oauth/token \
-d 'grant_type=authorization_code' \
-d 'code=...&redirect_uri=https://app.example.com/cb' \
-d 'client_id=...&client_secret=...'安全方向:密码模式与隐式模式已不推荐,新系统按 OAuth 2.1 方向评估(参见 RFC 9700 安全实践)。