issues
search
rawcsav
/
RawcOn
Flask application that interacts with the Spotify Web API to authenticate users, fetch user profile and listening stats, and provide music recommendations.
https://rawcon.rawcsav.com/
Creative Commons Attribution Share Alike 4.0 International
0
stars
0
forks
source link
feat: introduce token management and async task handling
#20
Closed
rawcsav
closed
2 months ago
rawcsav
commented
2 months ago
Add CSRF protection initialization and exemption for specific routes.
Introduce token encryption and decryption functions in
user_models.py
.
Add new fields and hybrid properties for encrypted tokens in
UserData
model.
Implement functions to save tokens to the database.
Remove unused user data refresh and deletion functions.
Add a function to fetch Spotify user ID using access tokens.
Integrate saving tokens to the database in the authentication flow.
Introduce Celery for asynchronous task management and scheduling.
Add tasks to update stale user data and delete inactive users.
Add logging configuration utility.
Update configuration to include Celery and encryption settings.
Add routes to trigger Celery tasks in development mode.
Initialize Celery in both
run.py
and
uwsgi.py
.
user_models.py
.UserData
model.run.py
anduwsgi.py
.