AngellusMortis / sxm-player

A pluggable SXM music player written in Python
MIT License
30 stars 12 forks source link

Login now broken and I know why, but I have no idea how to fix it. #15

Open jmperagine opened 10 months ago

jmperagine commented 10 months ago

Description

sxm-player -U username -P password login fails.

At the Website, using a browser, Sirius is asking if you want to login by 3 different choices.

1) Text me a verification code 2) Email me a verification code 3) Sign in with my password

There doesn't seem to be a way to choose a default. You get a pop up asking which method every time.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
lancerguy commented 10 months ago

When I modify the code to print the response message, I get this: {'messages': [{'message': 'Successful', 'code': 100}, {'message': 'GUP Id Unavailable - New User', 'code': 704}], 'status': 1, 'moduleList': {'modules': [{'moduleArea': 'UserFlow', 'moduleType': 'StandardAuth', 'updateFrequency': 0, 'wallClockRenderTime': '2024-01-19T14:08:47.232+0000', 'clientConfiguration': {'clientDeviceId': 'null'}, 'moduleResponse': {'authenticationData': {'sessionID': '', 'remainingLockoutMinutes': 0, 'remainingLockoutSeconds': 0, 'username': 'REDACTED'}}}]}}

Unfortunately I don't know what was being returned before, but I think the message "GUP ID Unavailable - New User code 704" is not right.

As a beginner, I'm not quite sure how they got the URL for the siriusxm player API but when investigating the siriusXM player's page, it doesn't appear to be the same anymore.

lancerguy commented 10 months ago

The cookies being returned are also not the same, I cannot see the expected cookies after login either, which are SXMAUTHNEW, AWSALB, and JSESSIONID. I see an SXMDATA cookie and an SXM-DATA cookie.

I see this news article also that they were rolling out a new Web player: https://investor.siriusxm.com/news-events/press-releases/detail/2023/the-next-generation-of-siriusxm-begins-new-app-starts

jmperagine commented 10 months ago

I might add, I have a Grace Digital radio that is several years old, has not updated lately, still works using username and password. Perhaps, modify the code to "identify" as a Grace Digital product? IDK, this is way over my head.

jmperagine commented 10 months ago

As of Feb. 3, 2024, it is now working.

lancerguy commented 10 months ago

Hey I was going to post the same thing! This can be closed now.

jocoman74 commented 4 days ago

Can you please tell me what the login cookies are looking for. Not working for me. Thanks