• Aryan Noshirvnai's avatar
    Fix channels.py accepting user_id/owner_id from the request body · f25ef119
    Aryan Noshirvnai authored
    Every route in this router trusted a client-supplied user_id/owner_id
    instead of deriving it from the JWT like every other router in the app
    (soundmarks, social, discovery, library all use get_current_user) - any
    caller could create a channel as any user, follow/unfollow as any user,
    or post vibe-sets/stories/showcases as any user by just changing a
    number in the request body. Also none of the routes required auth at
    all, including plain reads.
    
    Adds get_current_user to every route and derives the caller's identity
    from current_user.id instead, removing the now-redundant id fields from
    every request schema.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    f25ef119
Name
Last commit
Last update
..
__init__.py Loading commit data...
auth.py Loading commit data...
channels.py Loading commit data...
discovery.py Loading commit data...
library.py Loading commit data...
music.py Loading commit data...
remix.py Loading commit data...
social.py Loading commit data...
soundmarks.py Loading commit data...