Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Token/Code UI incorrectly tries to load localhost #684

Open
3 tasks done
tmack8001 opened this issue Mar 24, 2022 · 10 comments
Open
3 tasks done

Get Token/Code UI incorrectly tries to load localhost #684

tmack8001 opened this issue Mar 24, 2022 · 10 comments
Assignees
Labels
🐛 bug Something isn't working duplicate This issue or pull request already exists

Comments

@tmack8001
Copy link

tmack8001 commented Mar 24, 2022

What 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).

  1. 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

image

What did you expect to happen?

  1. 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 -> #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.

#671 (comment)
#342 (comment)

Pre-submission Checklist

@tmack8001 tmack8001 added the 🐛 bug Something isn't working label Mar 24, 2022
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Mar 24, 2022
@im-coder-lg
Copy link
Contributor

This is most likely the answer: #683 (comment)

@tmack8001
Copy link
Author

Definitely can be a duplicate of #682

My searching didn't find that one guess I forgot to try "local host" vs "localhost" 🤦‍♂️

@tmack8001 tmack8001 changed the title Get Token/Code UI incorrectly tries to load localhost/ Get Token/Code UI incorrectly tries to load localhost Mar 25, 2022
@im-coder-lg
Copy link
Contributor

Is it fixed?

@Ronith-91608
Copy link

fixed?

@Ronith-91608
Copy link

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

@shiftyfox380
Copy link

Copying the code from the URL worked for me as well. I was stuck for a minute there. Thanks.

@jxzzi
Copy link

jxzzi commented Oct 8, 2022

Me too, I was stuck on it for a while and I made a GitHub account just to give you my thanks.

@jitendrarao21
Copy link

hey guys plz help out which code to be copied from url

@Killaker
Copy link

Killaker commented Dec 2, 2022

I have fixed this error on my installation simply changing the protocol from https to http at this point of the installation guide:

  1. Update the redirct URI under the Authorized redirect URIs section to:

https://localhost:5754/auth/handler

To: http://localhost:5754/auth/handler

Hope it will help somebody!

@Subodhsalve5
Copy link

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

Worked For me was stuck on this on local host thing
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

9 participants