Invalid Retrun URL

I keep getting invalid return url when using the non-oauth authorization process.

Here is the return_url: https://monello-staging.herokuapp.com/dashboards and here is the full url for the authorization request: https://trello.com/1/authorize?callback_method=fragment&expiration=1hour&name=Monello&scope=read&response_type=token&return_url=https://monello-staging.herokupapp.com/dashboards&key={myKey}

I’ve added the following to urls to origin under trello/app-key:

  • http://localhost:3000
  • https://monello-staging.herokuapp.com
  • https://monello-staging.herokuapp.com:443

I was able to get the authorization process to work locally.

Any help is greatly appreciated.

I haven’t really solved my problem earlier. Instead, I just used client.js. It’s redirecting back accordingly if I used it. While the app is now properly authenticating while deployed to heroku, I’d still be interested in knowing what my original problem was.

:thinking: I am able to reproduce this problem…

Can you share the full URL of the authorization prompt that client.js is opening?

Yes, I’d be glad to. However, I’m not sure how to get it. I was looking for that also. I initially check the network tab from Chrome but it didn’t seem to show up. If you can point where or how to check, I’ll go ahead and get it.

On the page that you have loaded client.js, you can make a call to Trello.deauthorize() to remove the stored token.

It looks like you have a type in your return_url – herokupapp should be herokuapp

1 Like

:sweat_smile: :sweat_smile: :sweat_smile: oh my… it’s always the little things. I missed that! I’ll try it out again. Thanks!

I got it to work. It’s confirmed that it was the typo causing the problem. Thanks again @bentley and sorry the trouble with that kind of a bug :sweat_smile: