Increase the security of JWT token generation by using DJANGO_SECRET_KEY as well as user-specific salt for the signature

This commit is contained in:
Eliot Berriot 2019-07-13 15:51:34 +02:00
parent 426f6f0d45
commit d39cfab283
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 29 additions and 2 deletions

View file

@ -1012,7 +1012,7 @@ class TrackSerializer(MusicEntitySerializer):
metadata = music_tasks.federation_audio_track_to_metadata(
validated_data, references
)
metadata['tags'] = tags
metadata["tags"] = tags
from_activity = self.context.get("activity")
if from_activity: