Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken login #8

Closed
112RG opened this issue May 14, 2020 · 8 comments
Closed

Broken login #8

112RG opened this issue May 14, 2020 · 8 comments

Comments

@112RG
Copy link

112RG commented May 14, 2020

It seems tidal has changed there token. But from testing the mobile app 1.9.1 Mobile login isn't working on that version either.

Replacing the API_TOKEN with updated one allows the first login but it fails on the second login using MASTER_API_TOKEN. I have no clue where this MASTER_API_TOKEN comes from digging around in mitmproxy I can't seem to dig any value up that works

Also whats weird is tidal doesn't return a

<Response [401]>
Authentication failed: Invalid token

With the old token which I would expect it would. Instead it returns

<Response [401]>
Authentication failed: None
@evan-goode
Copy link
Owner

Thanks, that's unfortunate. I took MASTER_API_TOKEN from this project: https://github.com/yaronzz/Tidal-Media-Downloader/blob/cc35e94fa21f567a54675d2fad62a4e77cd20ee2/TIDALDL-PY/tidal_dl/tidal.py#L448. I assume the developer got it from one of the desktop clients?

It might be time to get to work reversing the new OAUTH login flow. I've noticed some captchas in the app, I hope we won't have to deal with those.

@112RG
Copy link
Author

112RG commented May 15, 2020

After debugging the desktop app the TOKEN in the POST to https://et.tidal.com/api/public/events
Can be used to login and get flacs. Your version seems to be the only able to get FLACS others still get mp4 with the same token

@evan-goode
Copy link
Owner

Swapped out the API token and changed the API endpoint used for getting media URLs. Everything should be working now, MQA included.

@112RG
Copy link
Author

112RG commented May 16, 2020

Nice I fixed redsea just with the API token. Is the new endpoint worth using? Seems it only allows no encrypted MQA files

@evan-goode
Copy link
Owner

Do you mean that some tracks aren't available using this new API path (playbackinfopostpaywall)? Could you share an example?

@112RG
Copy link
Author

112RG commented May 21, 2020

Oh no I mean that the only difference with this endpoint and the other is unencrypted MQA files.

@evan-goode
Copy link
Owner

evan-goode commented May 21, 2020

Oh good, yeah I thought that was weird. Seems to work fine though ¯\(ツ)

@yaronzz
Copy link

yaronzz commented Jun 8, 2020

Thanks, that's unfortunate. I took MASTER_API_TOKEN from this project: https://github.com/yaronzz/Tidal-Media-Downloader/blob/cc35e94fa21f567a54675d2fad62a4e77cd20ee2/TIDALDL-PY/tidal_dl/tidal.py#L448. I assume the developer got it from one of the desktop clients?

It might be time to get to work reversing the new OAUTH login flow. I've noticed some captchas in the app, I hope we won't have to deal with those.

The MASTER_API_TOKEN comes from Redsea: https://github.com/redsudo/RedSea/blob/master/redsea/decryption.py.
How did you get the API_TOKEN "MbjR4DLXz1ghC4rV"?
I tested many tokens, but none of them work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants