Use token for transmission authentication

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
killemov
Posts: 573
Joined: Sat Jul 31, 2010 5:04 pm

Use token for transmission authentication

Post by killemov »

I would like to use token authentication from within the torrent-done-script. A token would only be associated with a specific torrent. It could be generated from the torrenthash + timestamp. The lifespan of a token is limited by the instantiation of the daemon, the lifetime of the torrent in transmission and by the generation of a new token.

Example: When the torrent-done-script is run a TR_TORRENT environment variable is available.

transmission-remote --token $TR_TORRENT --remove-and-delete
This would remove the specific torrent without any further authentication.

transmission-remote --token --auth username:password --torrent $TR_TORRENT_ID
This would generate a new token and output it to stdout.

Cheers,

K.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Use token for transmission authentication

Post by Jordan »

This sounds like RPC's "torrent id" field.
killemov
Posts: 573
Joined: Sat Jul 31, 2010 5:04 pm

Re: Use token for transmission authentication

Post by killemov »

Jordan wrote:This sounds like RPC's "torrent id" field.
It is most definitely NOT. As far as I know, $TR_TORRENT_ID or the parameter for rpc just hold a simple integer index. That in itself may be error prone.

The ultimate goal is that you do not have to use a username/password to manipulate a single(!) torrent if you have a token for that torrent.
Post Reply