natterstefan / react-trello-multiboard

React-Trello-Multiboard is a single-page application built with React displaying multiple cards of several Trello® boards and lists. The cards can be filtered by preferred team members.
https://multiboardfortrello.com/
Apache License 2.0
54 stars 10 forks source link

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

Closed goljavi closed 4 years ago

goljavi commented 4 years ago

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:

Your Environment

natterstefan commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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?

goljavi commented 4 years ago

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!

natterstefan commented 4 years ago

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

JoseChavez98 commented 4 years ago

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?