Skip to content

Add OAuth 2.0 as recommended authentication method#351

Merged
huacnlee merged 3 commits intomainfrom
update-oauth-sdk
Mar 2, 2026
Merged

Add OAuth 2.0 as recommended authentication method#351
huacnlee merged 3 commits intomainfrom
update-oauth-sdk

Conversation

@huacnlee
Copy link
Member

@huacnlee huacnlee commented Mar 2, 2026

Updated getting-started documentation for both zh-CN and en:

Changes:

  • Added OAuth 2.0 as the recommended authentication method (marked with ⭐)
  • Moved traditional API Key method to secondary position for compatibility
  • Added OAuth registration and authorization flow examples for all SDKs
  • Included OAuth benefits and security best practices
  • Provided code examples for Python, JavaScript, Rust, and Java

OAuth 2.0 Benefits:
✅ More secure (no shared secret)
✅ Simpler integration (no signature calculation)
✅ Token-based modern authentication
✅ Better suited for modern applications

huacnlee and others added 3 commits March 2, 2026 10:02
Updated getting-started documentation for both zh-CN and en:

**Changes:**
- Added OAuth 2.0 as the recommended authentication method (marked with ⭐)
- Moved traditional API Key method to secondary position for compatibility
- Added OAuth registration and authorization flow examples for all SDKs
- Included OAuth benefits and security best practices
- Provided code examples for Python, JavaScript, Rust, and Java

**OAuth 2.0 Benefits:**
✅ More secure (no shared secret)
✅ Simpler integration (no signature calculation)
✅ Token-based modern authentication
✅ Better suited for modern applications

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Added OAuth 2.0 documentation for Traditional Chinese (zh-HK):

**Changes:**
- Added OAuth 2.0 as the recommended authentication method (marked with ⭐)
- Moved traditional API Key method to secondary position for compatibility
- Added OAuth registration and authorization flow examples for all SDKs
- Included OAuth benefits and security best practices
- Provided code examples for Python, JavaScript, Rust, and Java

**OAuth 2.0 優勢:**
✅ 更安全(無需共享金鑰)
✅ 更簡單(無需計算簽名)
✅ 基於 Token 的現代認證方式
✅ 更適合現代應用程式

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Changed OAuth 2.0 authentication documentation to recommend using
each language's standard OAuth libraries instead of SDK-provided
OAuth classes.

**Changes:**
- Python: Use requests-oauthlib for OAuth flow
- Node.js: Use simple-oauth2 for OAuth flow
- Java: Use Spring Security OAuth2 or similar
- Rust: Keep using SDK's built-in OAuth implementation

This approach:
- Reduces SDK maintenance burden
- Gives users more flexibility and control
- Leverages well-tested standard libraries
- SDK only provides Config.from_oauth() method

All language versions updated (zh-CN, en, zh-HK).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@huacnlee huacnlee merged commit 0aba464 into main Mar 2, 2026
1 of 2 checks passed
@huacnlee huacnlee deleted the update-oauth-sdk branch March 2, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant