Cserna Zsolt f1bd67523d util.py: add local http server to serve redirects
When spotify redirects the browser to localhost, serve the page with a
simple http server implemented by HTTPServer. By this way, we can obtain
the tokens the oauth service want so provide us, and no need to input the
user the redirect URL.

This method only works when the application in spotify developer dashboard
is configured to redirect the requests to localhost.

(Added before being supported upstream: https://github.com/plamere/spotipy/pull/243)
2018-04-24 01:49:19 -05:00
..
2015-06-05 12:07:28 +03:00