jodadday Posted April 21, 2009 Report Share Posted April 21, 2009 Hello,I'm in the planning stages of a native iPhone app based on the webUI, and the main thing that I see being a problem right now is this token feature.How do I go about making my app generate these things so it can remain secure? Link to comment Share on other sites More sharing options...
Lord Alderaan Posted April 21, 2009 Report Share Posted April 21, 2009 Trac is down or you would have found the info here:http://trac.utorrent.com/trac/wiki/TokenSystemI myself pick the token from index.html. There is a div with the id "token" there that contains the token you should use. Link to comment Share on other sites More sharing options...
Ultima Posted April 22, 2009 Report Share Posted April 22, 2009 Indeed (only in /gui/index.html), the WebUI backend replaces the first instance of the string ###TOKEN### with a valid token./gui/token.html also contains the token inside a hidden div (so it'll require a tiny bit of parsing to extract the actual token from the HTML).- Tokens expire if unused for 30 minutes.- Tokens are URL-safe, and do not need to be escaped (and shouldn't be escaped).- Tokens should be included as early in the request URL as possible, in the token GET variable (so /gui/?token=[TOKEN]&list=1 or /gui/?token=[TOKEN]&action=... would be best) Link to comment Share on other sites More sharing options...
Lord Alderaan Posted April 22, 2009 Report Share Posted April 22, 2009 So if I write my own index.html I can simply insert ###TOKEN### where I want µtorrent to paste in the token?Good to know. And fairly handy. Link to comment Share on other sites More sharing options...
Ultima Posted April 22, 2009 Report Share Posted April 22, 2009 Yep. Link to comment Share on other sites More sharing options...
LastSonOfKrypton Posted April 23, 2009 Report Share Posted April 23, 2009 Oh dear lord. Exactly what I want. I can download torrents to my iPhone but need to be able to add them through WebUI and nothing I try allows for browsing of my files on my iPhone.Word of advice, don't bother submitting it to Apple. Talk to Saurik and get it on Cydia. Cydia has some paid apps and I'm sure lots of people would pay a $1 to be able to control uTorrent from our iPhones Link to comment Share on other sites More sharing options...
jodadday Posted April 23, 2009 Author Report Share Posted April 23, 2009 Why wouldn't it be allowed on the appstore?It's not using up a ton of bandwidth, and torrents aren't illegal, are they? Link to comment Share on other sites More sharing options...
LastSonOfKrypton Posted April 24, 2009 Report Share Posted April 24, 2009 With the recent Baby Shaking app somehow getting cleared, Apple is going to be even more super strict on apps. Torrents aren't illegal but Apple knows 99% of them aren't used for legal means so they're just going to reject it.Obviously you have an iPhone, is it jailbroken? If not, look into it. MMi is a good place to start. Link to comment Share on other sites More sharing options...
jodadday Posted April 25, 2009 Author Report Share Posted April 25, 2009 Yep I'm quite familiar with jailbreaking iPhones.I'm just kinda bummed that my only non-taken idea for an app is invalid. And I don't want to do all that work and not get paid for it Link to comment Share on other sites More sharing options...
Lord Alderaan Posted April 27, 2009 Report Share Posted April 27, 2009 Eh... all community efforts here are for free. And µTorrent itself is free. tbh I'd be appalled if people would start making money of µtorrent dependent apps. Link to comment Share on other sites More sharing options...
Ultima Posted May 11, 2009 Report Share Posted May 11, 2009 So I was in cautious agreement with LastSonOfKrypton's assessment about whether Apple would reject such an app, but this report about the DriveTrain app for controlling Transmission seems to confirm that, setting a precedence.Unless, of course, the decision gets overturned -- in which case it's green lights for you. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted May 12, 2009 Report Share Posted May 12, 2009 Hmmz what a bad precedent.BitTorrent is a innovative and cost-effective technology and it's usage (for legal purposes) is growing on a daily basis. These kind of decisions will only add to the BitTorrent FUD and as a result delay but not avert the growth of BitTorrent (or it's successors) into the widely applied digital distribution protocol that it will inevitably become.But by then Apple will probably turn around. They have a lot of corporate users after all. But the result for them will be the loss of a few customers and increased popularity for jailbreaking their appliances. With no actual gains. So it's their loss. Link to comment Share on other sites More sharing options...
jewelisheaven Posted May 12, 2009 Report Share Posted May 12, 2009 I wouldn't call it a precedent. The article even linked to an app which does RC and is already in the app store. I think what offended apple was the bundling of browsing functionality? Link to comment Share on other sites More sharing options...
Lord Alderaan Posted May 12, 2009 Report Share Posted May 12, 2009 But the report clearly states the reason for the denial: "this category of applications is often used for the purpose of infringing third party rights. We have chosen to not publish this type of application to the App Store."The other app probably got through because either they didn't realize it had a similar potential or they felt the potential wasn't significant enough to warrant a denial of the whole app. Link to comment Share on other sites More sharing options...
jewelisheaven Posted May 12, 2009 Report Share Posted May 12, 2009 It just seemed like a pre-formatted response to me :/ If that's really how Apple is going to push the party line... after they basically begged consumers to ripoff music by creating such large storage devices... I'd just hate to be the guy who approved shake-a-baby ><Under: Related but not relevantFound this http://www.youtube.com/watch?v=N_ExogURaeI via http://www.engadget.com/2009/05/11/microsofts-latest-ad-itunes-is-crazy-expensive/ Link to comment Share on other sites More sharing options...
Ultima Posted May 15, 2009 Report Share Posted May 15, 2009 Whether it's a canned response or otherwise, that's what they chose as their official stance, so that is the official precedent they basically set. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.