mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #436] [CLOSED] Add OAuth token authentication #924
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#924
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/436
Author: @dhenneke
Created: 2/16/2020
Status: ❌ Closed
Base:
dev← Head:oauth-token-authentication📝 Commits (3)
5a5f87aAdd missing AuthenticationType that is returned by spotify during the spotify-token authentication67183d4Add option to use token-based authentication (returned form the Spotify OAuth flow)9883b0dRegenerate protobuf file📊 Changes
4 files changed (+50 additions, -27 deletions)
View changed files
📝
core/src/authentication.rs(+21 -6)📝
protocol/proto/authentication.proto(+2 -0)📝
protocol/src/authentication.rs(+25 -21)📝
src/main.rs(+2 -0)📄 Description
This PR adds an option to login with an Spotify OAuth token. Get a token and request the streaming scope.
Start with:
librespot --username user --token YOUR_OAUTH_TOKENWhen I use
AuthenticationType::AUTHENTICATION_SPOTIFY_TOKENas authType, the API for some reason replies with an Authentication Type of0x7. Since I don't know what this value means originally, I just added a placeholder type to the proto file.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.