1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 18:29:45 +02:00
librespot/core/src
Nick Steel 4f9151c642
Credentials with access token (oauth) (#1309)
* core: Create credentials from access token via OAuth2

* core: Credentials.username is optional: not required for token auth.

* core: store auth data within session. We might need this later if need to re-auth and original creds are no longer valid/available.

* bin: New --token arg for using Spotify access token. Specify 0 to manually enter the auth code (headless).

* bin: Added --enable-oauth / -j option. Using --password / -p option will error and exit.

* core: reconnect session if using token authentication

Token authenticated sessions cannot use keymaster. So reconnect using the reusable credentials we just obtained. Can perhaps remove this
workaround once keymaster is replaced with login5.

* examples: replace password login with token login
2024-09-13 07:35:55 +02:00
..
connection Credentials with access token (oauth) (#1309) 2024-09-13 07:35:55 +02:00
dealer Update mod.rs fix tokio-tungstenite with ver 0.23 2024-06-09 14:20:37 +07:00
mercury Apply reviewer's suggestion 2024-05-27 20:11:14 +00:00
apresolve.rs Update core to hyper 1.x 2024-06-06 03:06:44 -06:00
audio_key.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
authentication.rs Credentials with access token (oauth) (#1309) 2024-09-13 07:35:55 +02:00
cache.rs Fix newly reported clippy errors 2023-01-27 23:15:51 +01:00
cdn_url.rs Fix redundant import checking on beta toolchain 2024-03-31 17:37:07 +00:00
channel.rs Various loading improvements 2022-09-28 21:25:56 +02:00
component.rs Change to parking_lot and remove remaining panics 2021-12-26 23:02:02 +01:00
config.rs Fix derivable_impls 2024-05-11 19:13:08 +00:00
date.rs Fix redundant import checking on beta toolchain 2024-03-31 17:37:07 +00:00
diffie_hellman.rs Almost eliminate util module 2021-04-10 12:50:30 +02:00
error.rs Credentials with access token (oauth) (#1309) 2024-09-13 07:35:55 +02:00
file_id.rs Update protobuf and related crates to 3.x (#1092) 2023-01-17 21:46:14 +01:00
http_client.rs cargo fmt 2024-06-06 21:37:26 -06:00
lib.rs Rate limit audio file streaming too 2022-09-01 22:35:03 +02:00
packet.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
proxytunnel.rs Fix newly reported clippy errors 2023-01-27 23:15:51 +01:00
session.rs Credentials with access token (oauth) (#1309) 2024-09-13 07:35:55 +02:00
socket.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
spclient.rs Fix spotify version in client token request 2024-07-01 15:38:50 +02:00
spotify_id.rs Fix SpotifyId base 62 and 16 str decoding 2024-05-23 16:21:51 +02:00
token.rs Fix clippy lint 2022-09-22 16:41:03 -05:00
util.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
version.rs Fix spotify version in client token request 2024-07-01 15:38:50 +02:00