eduardolima93 / angular2-spotify

Angular2 Service to connect to Spotify Web API
MIT License
20 stars 14 forks source link

Web API Authorization #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi there,

Are there any plans to include the "Client credentials flow" https://developer.spotify.com/web-api/authorization-guide/#client-credentials-flow Auth headers?

I'm unable to figure out how to provide an access token, and would like o make it possible to make simple calls without logging a user in.

Thanks for any advise on this.

Cheers!

cnd5041 commented 7 years ago

@mmmmyers, is that possible? The Spotify docs say that the Client Credential flow must include a server side exchange.

ghost commented 7 years ago

Hi. Yep you're right. I ended up using https://github.com/thelinmichael/spotify-web-api-node to get a token using the client credentials method and then subscribed to this from the client to create auth headers and pass the token to any Spotify calls.

cnd5041 commented 7 years ago

@mmmmyers, Thanks, that could be really helpful. Really annoying to set up a backend just for that though 0_o