I don't remember off the top of my head but i want to say: Encode the callback url: "http%3A%2F%2Frr.mydomain.com%3A7070%2Ftcallback.jsp"
Include the name=value *befor* signing: "oauth_callback%3Dhttp%3A%2F%2Frr.mydomain.com%3A7070%2Ftcallback.jsp" If that does not work I'll dig through my code and confirm. Abraham On Fri, Jun 26, 2009 at 18:44, goodtest<[email protected]> wrote: > > Oh you meant, we should add oauth_callback to request_token call > itself. I had actually tried that earlier, but i get "Failed to > validate oauth signature and token" :( > I also tried to use it as a part of generating signature, even that > didnt work. One other thing I tried is to change the version from 1.0 > to 1.0a - still no luck :( > > > http%3A%2F%2Ftwitter.com%2Foauth%2Frequest_token%3Foauth_callback > %3Dhttp%253A%252F%252Frr.domain.com%253A7070%252Fdomain%252F > %26oauth_consumer_key%3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce > %3D6JM6MkAWdGg%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp > %3D1246059588%26oauth_version%3D1.0a%26oauth_signature%3Duq8mWb > %2BO1mcFR308RlpqNebinQE%3D > > On Jun 26, 4:28 pm, Abraham Williams <[email protected]> wrote: >> Look at the request_token request: >> >> http://twitter.com/oauth/request_token? >> oauth_consumer_key=Xz2BKOKObTzpLrMXxJo2ww& >> oauth_nonce=nbmDOERzh6O& >> oauth_signature_method=HMAC-SHA1& >> oauth_timestamp=1246057852& >> oauth_version=1.0& >> oauth_signature=<signature> >> >> There is no oauth_callback present. >> >> Abraham >> >> On Jun 26, 6:15 pm, goodtest <[email protected]> wrote: >> >> > Thats exactly what I think I am doing, am I not? >> >> > request_token(before >> > encoding)...http://twitter.com/oauth/request_token?oauth_consumer_key=Xz2BKOKObTz...<signature> >> >> > for authorize(before >> > encoding):http://twitter.com/oauth/authorize?oauth_token=<token>&oauth_callback=<callback >> > url> >> >> > Its even odd, >> > I thought until I could resolve it, let me use the PIN and then >> > revisit, but now, no matter what I do, it keeps redirecting :(( >> > request_token url is same >> > and authorize url ishttp://twitter.com/oauth/authorize?oauth_token=<token> >> > ORhttp://twitter.com/oauth/authorize?oauth_token=<token>&oauth_callback=oob >> >> > Thanks, >> > goodTest >> >> > On Jun 26, 3:22 pm, Abraham Williams <[email protected]> wrote: >> >> > > When you get the request token add >> > > "oauth_callback%3Dhttp%3A%2F%2Frr.mydomain.com%3A7070%2Ftcallback.jsp" >> > > and when you send the user for authorization only include oauth_token. >> >> > > Abraham >> >> > > On Fri, Jun 26, 2009 at 16:55, goodtest<[email protected]> wrote: >> >> > > > I am using javascript and proxy to basically make request_token call >> > > > and once i get an unAuthorized token, I am then doing: >> > > >http://twitter.com/oauth/authorize?oauth_token=KpQu4RvuEutVKvb9UUwHQp... >> >> > > > - i think encode the above url and do a HTTP GET. >> >> > > > but twitter after authorization, redirects to: >> > > >http://rr.mydomain.com:7070/mydomain/http%3A%2F%2Ftwitter.com%2Foauth... >> >> > > > <mydomain>/<the url i send to twitter to authorize>, its not looking >> > > > into aouth_callback section. >> >> > > > What Am I missing? >> >> > > -- >> > > Abraham Williams | Community Evangelist |http://web608.org >> > > Hacker |http://abrah.am|http://twitter.com/abraham >> > > Project |http://fireeagle.labs.poseurtech.com >> > > This email is: [ ] blogable [x] ask first [ ] private. -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
