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

Redirect to localhost:8080 after OAuth Consent Screen #14

Open
remklov opened this issue Nov 21, 2022 · 1 comment
Open

Redirect to localhost:8080 after OAuth Consent Screen #14

remklov opened this issue Nov 21, 2022 · 1 comment

Comments

@remklov
Copy link

remklov commented Nov 21, 2022

When i access the URL generated by get_credentials.py and check all permissions and click Continue i get redirected to a URL like http://localhost:8080/?state=rYmM5PTvl7MbN... and the script will not generate a .google_fit.token. When i check the generated URL, there is a "redirect_uri" parameter which specifies the localhost:8080.

Did i miss something in the configuration?

// Edit:
I found, that in the credentials.json the "redirect_url" to localhost is specified. I changed it to my external HA domain, but then Google gives the error "Redirect URI mismatch".

@Mattie432
Copy link

if you're doing this over SSH then you can forward the 8080 port from the remote machine to the local one, this will allow the redirect URL to pass back through to the remote system.

something like this:

ssh -L 8080:localhost:8080 <my remote host>:<my remote port>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants