Commit Graph

1 Commits

  • feat(oauth): add remote OAuth callback support with session management
    Introduce a centralized OAuth session store with TTL-based expiration
      to replace the previous simple map-based status tracking. Add a new
      /api/oauth/callback endpoint that allows remote clients to relay OAuth
      callback data back to the CLI proxy, enabling OAuth flows when the
      callback cannot reach the local machine directly.
    
      - Add oauth_sessions.go with thread-safe session store and validation
      - Add oauth_callback.go with POST handler for remote callback relay
      - Refactor auth_files.go to use new session management APIs
      - Register new callback route in server.go