Skip to content

Need Spotify Authentication Help Please #48

@eldontrakt

Description

@eldontrakt

Hi there.
Came across this project after the announcement of Spotify integration back into DJ Apps, DJAY, Serato and Rekordbox (Sept 2025).

I have followed the steps 20 times on my 2020 M1 Macbook Air, OSX Ventura 13.7.4 with Traktor Pro 4.20 34. I cant get this too work at all. Can anyone please clarify the Spotify authentication in the config.properties file. As far as i understand there is no beatport account necessary and Spotify should work with this setup.

The instructions in Step 2 says: Configure the server by adjusting the config.properties file. Both Spotify and Tidal sources require an account.
I have a Spotify pro account, but nowhere is there any indication of how or where to enter this account details besides there being a TIdal client id section: My setup looks like this:

don't change
beatport.accountId=1337338

comma-separated list of enabled sources
available: spotify,tidal,youtube
sources.enabled=spotify

only enabled sources can be enabled for search
leave empty if you want to use all
search.enabled=

if you enable tidal, you need to fill in your client id
you need your account credentials when asked to visit the authentication web page
tidal.clientId=

So i assume you have to enter a Spotify clientid here, which is only available if you sign up as a developer with Spotify???
I signed up for a developer account, which gave me a Spotify Client and Secret Id which i inserted into my config.properties file.

Then it looks like this:
if you enable tidal, you need to fill in your client id
you need your account credentials when asked to visit the authentication web page
spotify.clientId="my spotify client id number"
spotify.clientsecret="my spotify client secret number"

In my spotify developer account i set up Redirect Urls: https://api.beatport.com/v4/catalog/genres/

Obviously i'm just REACHING here as i can't find any instructions how to set this up in your setup guide?

So:

I have tried with SIP on, and none of the codesigning after creating my own certificate wanted to take, so i just ended up disabling SIP to try this out, not that it's mentioned anywhere that you must deactivate it. Well deactivating it got me further.
I successfully completed the following:

I downloaded latest version V 0.5.1 traktor-streaming-proxy.zip. This did not include a SecTrustEvaluateStub.dylib file. I then downloaded traktor-streaming-proxy-0.5.1 sourcecode.zip and made my own stub as per the instructions and moved that file into the original extracted traktor-streaming-proxy folder.

I then created a code signing certificate in Keychain Acces, with which i successfully signed the Traktor pro 4 app. (failed if SIP is on).
I then Run the server from the directory where the config.properties file is located using cmd bin/traktor-streaming-proxy.
I did not want to mess with the system pf.conf. So i created my own one for this purpose and placed it inside the traktor-streaming-proxy folder. This pf.conf contains:
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass on lo0 inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443

I redirect ports 80 -> 8080 and 443 -> 8443 as per the commands adjusting cmds for the location of my  pf.conf file.
I edit the host file 127.0.0.1   api.beatport.com.

Step 8: This is where i get tripped up now: Verify that the setup is working correctly. I try the cmd curl -k https://api.beatport.com/v4/catalog/genres/. I do not get the JSON response as outlined in the guide:
Instead of getting:
{
    "results": [
        {
            "id": 1,
            "name": "YouTube"
        }
    ]
}

I only get this as a response:
{"detail":"Authentication credentials were not provided."}%  

If i try entering https://api.beatport.com/v4/catalog/genres/ in a web browser i don't get some certificate error I can ignore but the same code: {"detail":"Authentication credentials were not provided."}

i can successfully run DYLD_INSERT_LIBRARIES=./SecTrustEvaluateStub.dylib "/Applications/Native Instruments/Traktor Pro 3/Traktor.app/Contents/MacOS/Traktor" to open Traktor,(obviously my cmd is adjusted to open Traktor Pro 4) but nowhere can i see or find anything regarding Spotify Streaming, and going to streaming settings and clicking on Beatport login does not redirect me to Spotify, so obviously there is something wrong here regarding Spotify integration and authentication.

It would be much appreciated if anyone can help me get this working.
Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions