Search code examples
javahttp-redirectoauthtrello

trello oauth failed to redirect me to oauth_callback, and keeping redirect me to oob


I'm aware of this question, but it seems I still have this problem, I used

https://trello.com/1/appKey/generate

to generate my key and secret, and fill them into scribe library, the example seems right, but after I append

&oauth_callback=http%3A%2F%2Fexample.com%2Fapi

to

service.getAuthorizationUrl(requestToken)

trello keeping redirect me to something like

https://trello.com/oob?oauth_token=7ad36dcd7ca713648ed3549c2f1828c5&oauth_verifier=5b0dc2b64d0b7ee08c56a9b1f30f8880.

I'm not sure what I'm missing, does trello requires some application registration?


Solution

  • ok, I finally figured it out, it's scribe library example's fault that didn't make it clear: we should call callback and provide with callback to user's site before build the service