mirror of
https://github.com/EddieTheCubeHead/Stagnum.git
synced 2026-04-26 14:15:50 +03:00
[GH-ISSUE #43] Create login routes and auth functionality for backend #34
Labels
No labels
bug
bug
client
design
documentation
feature
feature
infrastructure
pull-request
ready for development
server
server
spike
technical work
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Stagnum#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.