Get Token/Code UI incorrectly tries to load localhost
See original GitHub issueWhat went wrong?
After following the Setup Authentication Guide there was an error loading the Get Token experience which went to load localhost (of which there is no local web server running).
- Now grant permission to the project by clicking on “Continue”
url: http://localhost/?code=<valid-code-to-copy>&scope=https://www.googleapis.com/auth/assistant-sdk-prototype

What did you expect to happen?
- You will now be presented with the authorization code screen. Click on the copy button
The above was the expectation from the setup guide, but there was no UI for selecting/copying the token. Though I’ve done one of these consent apps before and knew that the URI parameter was correct and valid to copy into the Google Assistant Desktop client successfully.
Steps to reproduce the bug
Follow the instructions in https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/wiki/Setup-Authentication-for-Google-Assistant-Unofficial-Desktop-Client (making sure to download the .json
credentials file a second time (as per the other issue reported -> https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/671
App Version
v1.0.0
OS Version
MacOS 12.3
Relevant Assets
Based on the conversation in a few other issues I’ve decided to open a new one tracking this specific aspect to the authentication process / token generation.
https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/671#issuecomment-1073370268 https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/342#issuecomment-1072985533
Pre-submission Checklist
- I have checked the issue tracker and didn’t find any duplicate issue
- I have checked the Frequently Asked Questions (FAQs) and can confirm that there’s no fixes or workarounds for this issue
- This issue only covers one particular bug or issue
Issue Analytics
- State:
- Created a year ago
- Comments:9 (2 by maintainers)
I found the fix 😄 Just copy the code in the url of the local host site and paste it in the token area and you are done
I have fixed this error on my installation simply changing the protocol from https to http at this point of the installation guide:
To: http://localhost:5754/auth/handler
Hope it will help somebody!