Closed forslund closed 3 years ago
Test Results:
(.venv) pi@picroft:/opt/mycroft/skills/mycroft-spotify.forslund $ git status
On branch 20.08
(.venv) pi@picroft:/opt/mycroft/skills/mycroft-spotify.forslund $ git checkout origin/feature/local-api-key2
Note: checking out 'origin/feature/local-api-key2'.
INVALID_CLIENT: Invalid redirect URI
localhost:8888
URL,
Enter the URL you were redirected to: https://localhost:8888/?code=(SNIP)
Traceback (most recent call last):
File "skills/mycroft-spotify.forslund/auth.py", line 46, in
UPDATE NEXT ROUND: per discussion with @forslund
9. The above stack trace is because `requirements.txt` on the feature branch won't get auto-updated necessarily by `msm`; so to test we had to manually do: `mycroft-pip install -r skills/mycroft-spotify.forslund/requirements.txt`
10. Re-ran the script, but this time I didn't get prompted for the redirect URL hmmm (since the spotipy version upgrade?...)
11. Had to manually do it (luckily i had the ABOVE link ... @forslund msg'd about this)
12. FINAL TESTS = WORKING!
Gonna merge this in the current state since A it seems to work (for me atleast) and B we need something to base future work on and receive more bugreports :)
I'm going to merge this branch in the state it is now. and we can open new issues and PR's for specific fixes as they are needed.
Add support for using personal developer keys.
This adds a simple auth script to help create local credentials and store them in a specific path for usage by the skill. It also offers to save the client_id and client_secret for convenience (but will work with passing those as environment variables as well)