

Refresh_token=refresh_token, token_expires_ts=expires_at, Add functions to save token in save access token in database:ĭef get_user(self, user_id: int) -> Optional:ĭef add_new_user(self, user_id: int, token: dict) -> bool:Įxternal_service_oauth.save_token(user_id=user_id, service=rvice, access_token=access_token,.Generate developer application ID (required by Deezer API OAUTH_TOKEN_URL).Setup Deezer API configuration and process for user authorization: The first two steps redirect the user to a login window on domain.ġ.1. There are three different steps in the flow:

Since the Deezer API will be called by the web-server, server-side flow will be used for oAuth 2.0 authentication. The project will have following major components: Part 1 - Allow user to link to Deezer for recording history (Weeks 1-6): Phase 1 - Adding OAuth support so that the user can connect to the service (Weeks 1-3): This project involves integrating these services into LB. We have looked into some other services and found that Deezer provides the music playback and recording listening history capability. LB also supports linking a Spotify account to record listening history. As of now, it supports Spotify, YouTube and Soundcloud as a music service. BrainzPlayer (BP) is a custom React component in LB that uses multiple data sources to search and play a track.

LB has a number of music discovery features that use BrainzPlayer to facilitate track playback.
