mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-28 06:57:56 +02:00
Autenticate OAuth backends
This commit is contained in:
parent
94704f9cd0
commit
fa7732c538
15 changed files with 61 additions and 20 deletions
|
@ -40,6 +40,8 @@ type SpotifyApiBackend struct {
|
|||
clientSecret string
|
||||
}
|
||||
|
||||
func (b *SpotifyApiBackend) Name() string { return "spotify" }
|
||||
|
||||
func (b *SpotifyApiBackend) FromConfig(config *viper.Viper) models.Backend {
|
||||
b.clientId = config.GetString("client-id")
|
||||
b.clientSecret = config.GetString("client-secret")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue