[GH-ISSUE #43] Create login routes and auth functionality for backend #34

Closed
opened 2026-02-27 19:16:36 +03:00 by kerem · 0 comments
Owner

Originally created by @EddieTheCubeHead on GitHub (Jan 28, 2024).
Original GitHub issue: https://github.com/EddieTheCubeHead/Stagnum/issues/43

Fill in the "/login" and "/login/callback" routes with actual functionality. After the auth token is received from Spotify, save the user in the database (user Spotify API "/me" -route and user email as primary key, cache user name and icon), and add the auth token into session_users dict with the value being the user email.

Create FastAPI dependency for authenticating token from request headers.

Acceptance criteria: described functionality is tested, including edge cases. Test set passes.

Originally created by @EddieTheCubeHead on GitHub (Jan 28, 2024). Original GitHub issue: https://github.com/EddieTheCubeHead/Stagnum/issues/43 Fill in the "/login" and "/login/callback" routes with actual functionality. After the auth token is received from Spotify, save the user in the database (user Spotify API "/me" -route and user email as primary key, cache user name and icon), and add the auth token into session_users dict with the value being the user email. Create FastAPI dependency for authenticating token from request headers. Acceptance criteria: described functionality is tested, including edge cases. Test set passes.
kerem closed this issue 2026-02-27 19:16:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Stagnum#34
No description provided.