• 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
..
fixtures Loading commit data...
conftest.py Loading commit data...
test_audio_processing.py Loading commit data...
test_auth.py Loading commit data...
test_channels.py Loading commit data...
test_database.py Loading commit data...
test_discovery.py Loading commit data...
test_docs_auth.py Loading commit data...
test_library.py Loading commit data...
test_music.py Loading commit data...
test_remix.py Loading commit data...
test_remix_engine.py Loading commit data...
test_rooms_websocket.py Loading commit data...
test_social.py Loading commit data...
test_soundmarks.py Loading commit data...