๐ Authentication
Linking user accounts across streaming platforms.
Last updated
Linking user accounts across streaming platforms.
Last updated
Orchdio supports some features that allow you manage a user's library for them depending on the platform you are targeting. In order to do this, Orchdio requires user authentication and authorization on the said platform.
To authenticate a user, you need to make a request to the endpoint stated below. Depending on the platform you are trying to authenticate the user on, you must pass the scopes you want the user to authenticate your application on.
Scopes are values that specify the type of access your app has on the user's target platform. Each platform has different scopes you need to pass. At the moment, Orchdio requires you pass scopes when trying to integrate with Spotify and supports all available Deezer Scopes due to architectural constraints. Apple Music is also supported but do not require you pass scopes.
The user would first be presented with a screen that explains your app and what it needs to do. The user would then be redirected to the main authentication flow of the streaming platform and finally, to the redirect url
specified in your app.
In the redirect_url
, a token
query string is added which contains a JWT
that can be decoded in order to extract the user's information including the Orchdio ID (uuid)
. The ID would be needed in future user related requests. It also contains a field that specifies the platform the user just authenticated.
The decoded JWT
looks like:
Returns the redirect URL for the platform in order to authenticate the user on the target platform
The platform to connect to
The public key of the Orchdio server
a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11