memos/proto/gen/api/v1
Johnny 1a9bd32cf1 feat(auth): add PKCE support and enhance OAuth security
Implements critical OAuth 2.0 security improvements to protect against authorization code interception attacks and improve provider compatibility:

- Add PKCE (RFC 7636) support with SHA-256 code challenge/verifier
- Fix access token extraction to use standard field instead of Extra()
- Add OAuth error parameter handling (access_denied, invalid_scope, etc.)
- Maintain backward compatibility for non-PKCE flows

This brings the OAuth implementation up to modern security standards as recommended by Auth0, Okta, and the OAuth 2.0 Security Best Current Practice (RFC 8252).

Backend changes:
- Add code_verifier parameter to ExchangeToken with PKCE support
- Use token.AccessToken for better provider compatibility
- Update proto definition with optional code_verifier field

Frontend changes:
- Generate cryptographically secure PKCE parameters
- Include code_challenge in authorization requests
- Handle and display OAuth provider errors gracefully
- Pass code_verifier during token exchange

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 00:04:26 +08:00
..
activity_service.pb.go refactor(api): migrate inbox functionality to user notifications 2025-10-31 08:33:09 +08:00
activity_service.pb.gw.go refactor: rename session methods in auth service 2025-06-21 00:00:58 +08:00
activity_service_grpc.pb.go refator: activity service 2025-06-17 09:00:03 +08:00
attachment_service.pb.go feat: enhance memo sorting functionality to support multiple fields 2025-10-20 23:41:58 +08:00
attachment_service.pb.gw.go refactor: rename session methods in auth service 2025-06-21 00:00:58 +08:00
attachment_service_grpc.pb.go refactor: attachment service 2025-06-17 22:15:19 +08:00
auth_service.pb.go feat(auth): add PKCE support and enhance OAuth security 2025-12-01 00:04:26 +08:00
auth_service.pb.gw.go chore: update auth service 2025-06-23 20:31:18 +08:00
auth_service_grpc.pb.go chore: tweak auth service 2025-06-24 23:31:37 +08:00
common.pb.go feat: enhance memo sorting functionality to support multiple fields 2025-10-20 23:41:58 +08:00
idp_service.pb.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
idp_service.pb.gw.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
idp_service_grpc.pb.go chore: buf generate 2024-08-01 22:03:07 +08:00
instance_service.pb.go refactor: remove enable link preview setting 2025-11-30 10:34:22 +08:00
instance_service.pb.gw.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
instance_service_grpc.pb.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
memo_service.pb.go refactor(api): remove DeleteMemoTag and RenameMemoTag endpoints 2025-10-29 23:32:47 +08:00
memo_service.pb.gw.go refactor(api): remove DeleteMemoTag and RenameMemoTag endpoints 2025-10-29 23:32:47 +08:00
memo_service_grpc.pb.go refactor(api): remove DeleteMemoTag and RenameMemoTag endpoints 2025-10-29 23:32:47 +08:00
shortcut_service.pb.go feat: enhance memo sorting functionality to support multiple fields 2025-10-20 23:41:58 +08:00
shortcut_service.pb.gw.go refactor: clean unused fields 2025-06-23 22:55:14 +08:00
shortcut_service_grpc.pb.go refactor: shortcut service 2025-06-16 23:10:50 +08:00
user_service.pb.go refactor(api): migrate inbox functionality to user notifications 2025-10-31 08:33:09 +08:00
user_service.pb.gw.go refactor(api): migrate inbox functionality to user notifications 2025-10-31 08:33:09 +08:00
user_service_grpc.pb.go refactor(api): migrate inbox functionality to user notifications 2025-10-31 08:33:09 +08:00