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

Trello responds with "Invalid return_url" when trying to authorize token #23

Closed
goljavi opened this issue Nov 21, 2019 · 6 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@goljavi
Copy link

goljavi commented Nov 21, 2019

Question

Hi, i wanted to know if i'm doing something wrong. When i execute the app, trello responds with "Invalid return_url"

Relevant information

These are the steps i've taken:

  • Cloned the repo
  • Executed yarn command
  • Went to https://trello.com/app-key and copied the key
  • Pasted it into the config.js file along with the rest of the information.
  • Went to allowed origins and put localhost:2222
  • Went to localhost:2222, this redirects me to https://trello.com/1/authorize?...
  • Received a message from trello telling me "Invalid return_url"

Your Environment

  • Browser: Chrome
  • Browser version: 78
  • OS: Windows 10 x64
  • App Version: 0.2.1
@natterstefan
Copy link
Owner

Hi @goljavi,

first of all: I am sorry, must have missed the notification.

Now back to your problem: does it still exist? Have you tried it with localhost instead of localhost:2222 as "allowed origin" on trello?

@goljavi
Copy link
Author

goljavi commented Dec 5, 2019

Thank you for your answer!
Yes, the problem still exists. I have tried with localhost and localhost:2222
image

Also, this is the url it redirects me to: https://trello.com/1/authorize?response_type=token&key=xxxx&redirect_uri=http%3A%2F%2Flocalhost%3A2222%2F%23%2F&callback_method=fragment&scope=read&expiration=never&name=EGLC+Multiboard


Edit: I removed the images, as they included your key.

@natterstefan
Copy link
Owner

natterstefan commented Jan 10, 2020

Hi @goljavi,

finally I had time to test it by myself. It still works for me. Not sure if the port is required, but these are my "Current Origins" settings:

image

I assume the https is the issue, your localhost is not served via https, isn't it?

Can you verify that this works?

@natterstefan natterstefan added the question Further information is requested label Jan 10, 2020
@natterstefan natterstefan self-assigned this Jan 10, 2020
@goljavi
Copy link
Author

goljavi commented Jan 13, 2020

Hey Stefan!
I was setting an https:// origin when it was supposed to be http://
It was a Trello bug, because it automatically appendend https:// even if you wrote an url beggining with http://
Now it is fixed and everything works fine!
Thanks!

@goljavi goljavi closed this as completed Jan 13, 2020
@natterstefan
Copy link
Owner

Perfect! Happy to hear it works for you now @goljavi.

@JoseChavez98
Copy link

Hi! I'm working locally in ubuntu, using firefox. I'm running a simple .html file with client.js. What should I put on the origin field?

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

No branches or pull requests

3 participants