-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow direct OAuth2 Authentication #445
Comments
I think that tokens from the official API are not compatible with the internal APIs used here. Also have you looked at librespot-android? |
In your pull request (2757273) you seem to be implementing the exact same auth flow i did implement successfully to get my token. However instead of starting the flow with 'facebook connection' window, i started it with the official api window ; this is the only difference (i think). I did look at librespot-android, yes ; in fact it is what inspired me to build a new version of my music player (Blade Player), because of how great librespot-java seems to be compared to the old spotify sdk i was using before. However, in librespot-android, you authenticate directly using user/pass, and some users could legitimately think that i'm trying to steal their credentials (i could send them to a server of mine + the spotify one), which is precisely why stuff like OAuth2 exists. |
Exactly, but #356 is broken all will not allow you to authenticate. |
Oh ; but you say in the last commit :
I'm successfully obtaining a token, i believe ; so the endpoint is not an issue for me. EDIT : My bad, this was the first commit, not the last one... EDIT2 : Actually, where does the |
It is currently not possible to retrieve |
Alright ; then i guess i have no choice but use user+password authentication. Anyway, thank you for your answers and your great work on librespot :)) By the way, are you talking about those scopes : https://developer.spotify.com/documentation/general/guides/authorization/scopes ? Because there does not seem to be a 'playlist-read' scope documented... Is spotify trying to hide that ? Or is it a completely different kind of token/scope ? |
Part of the internal API, not necessary to document it publicly. |
Is your feature request related to a problem? Please describe.
I have previously obtained an OAuth2 Spotify access token, and would like to use that to authenticate librespot 'Session'.
I'm building an android app and using the official Spotify Auth library, so that the user does not give me his credentials directly.
Describe the solution you'd like
Either make
private Authentication.LoginCredentials loginCredentials
public, or make a setter, so that i can directly set the LoginCredentials object ; or make anoauthToken()
method in builder that constructs the loginCredentials object (i.e. what the FacebookAuthenticator does) from an access token.Describe alternatives you've considered
Additional context
I think this would also allow users of the library to go arround the maybe broken Facebook login implementation (i saw an issue on that and a PR that was not yet merged) ; they could, if they really need to, implement OAuth2 directly to connect with Facebook (what i did in my app, using okhttpclient, using authorization code flow, requesting access and refresh token.
The text was updated successfully, but these errors were encountered: