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

Authentication Broke #24

Closed
nlowe opened this issue Apr 3, 2021 · 1 comment
Closed

Authentication Broke #24

nlowe opened this issue Apr 3, 2021 · 1 comment
Labels
area/api bug Something isn't working help wanted Extra attention is needed

Comments

@nlowe
Copy link
Owner

nlowe commented Apr 3, 2021

As of 2021-04-02 authentication appears broken:

panic: login: unexpected result 400 Bad Request:
{"message":"Invalid username and/or password","errorCode":0,"errorString":"AUTH_INVALID_USERNAME_PASSWORD"}

Looking at the browser, three extra fields are set that appear to be SSO related:

  • OZ_DT
  • OZ_SG
  • OZ_TC

It seems resilient to replays, just ripping the values from the login request from the web client doesn't work. Curiously, pianobar still works. Perhaps we can implement the partner login flow to obtain a token instead?

@nlowe nlowe added bug Something isn't working help wanted Extra attention is needed area/api labels Apr 3, 2021
@nlowe
Copy link
Owner Author

nlowe commented Apr 3, 2021

So the bad news is I seem to have fubar'd my gstreamer install because I can't get mousiki to compile on windows anymore. But, logging in via the legacy route appears to give an auth token that's valid for the REST API. I'm going to merge this with a half-fix for #9 that shells out to FFmpeg to convert tracks to PCM that we can play with https://github.com/faiface/beep. It's not perfect though, details in #9.

@nlowe nlowe closed this as completed in 01ba342 Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant