Skip to content

Commit aa5271b

Browse files
committed
document zeroconf based authentication properly
1 parent d6b1ea5 commit aa5271b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/src/config/File.md

+9
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ device_type = "speaker"
101101

102102
## Alternatives to storing your password in the config file <!-- omit in toc -->
103103

104+
- use zeroconf authentication from Spotify Connect
105+
106+
Spotifyd is able to advertise itself on the network without credentials. To enable this, you must omit / comment any `username` / `username_cmd` or `password` / `password_cmd` in the configuration. Spotifyd will receive an authentication blob from Spotify when you choose it from the devices list.
107+
108+
This way, a Spotifyd instance can also be made available to multiple users.
109+
110+
For more information, have a look at the [librespot documentation][librespot-docs].
111+
104112
- **`password_cmd`** config entry
105113

106114
This feature allows you to provide a command that prints your password to `stdout`, which saves you from having to store your password in the config file directly. To use it, set the `password_cmd` config entry to the command you would like to use and remove the `password` config entry.
@@ -144,3 +152,4 @@ If either of these options is given, the shell `spotifyd` will use to run its co
144152
[playerctl-homepage]: https://github.com/altdesktop/playerctl
145153
[secret-storage-specification]: https://www.freedesktop.org/wiki/Specifications/secret-storage-spec/
146154
[sp-homepage]: https://gist.github.com/wandernauta/6800547
155+
[librespot-docs]: https://github.com/librespot-org/librespot/blob/master/docs/authentication.md#zeroconf-based-authentication

0 commit comments

Comments
 (0)