From 72280c850b2e9215ace89ab87f412111da7be988 Mon Sep 17 00:00:00 2001 From: Michael Stewart Date: Sat, 26 Jun 2021 15:19:44 -0400 Subject: [PATCH] Update index.rst (#696) Not sure how to edit RSt properly, but wanted to point out for others the superhelpful feature that spotipy already includes code to launch an http server to listen for the http callback --- docs/index.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index a6a45cb..4406824 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -159,6 +159,11 @@ must match the redirect URI added to your application in your Dashboard. The redirect URI can be any valid URI (it does not need to be accessible) such as ``http://example.com``, ``http://localhost`` or ``http://127.0.0.1:9090``. + .. note:: If you choose an `http`-scheme URL, and it's for `localhost` or + `127.0.0.1`, **AND** it specifies a port, then spotispy will instantiate + a server on the indicated response to receive the access token from the + response at the end of the oauth flow [see the code](https://github.com/plamere/spotipy/blob/master/spotipy/oauth2.py#L483-L490). + Client Credentials Flow =======================