Allow easy generation of Launchpad cookie file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bug Helper |
New
|
Wishlist
|
Unassigned |
Bug Description
There should be an easy way to setup the cookie file, especially since Firefox 3 now stores them in a SQLite database.
I've found an easy way on https:/
curl -b ~/.lpcookie -c ~/.lpcookie -d loginpage_
(NOTE: this makes the password visible in the process list and shell history! You can remove it from the latter though, e.g. ~/.bash_history)
bughelper could add an option (--gen-cookie), which would emulate the above command, asking the user for his launchpad email and password, then posting those to the LP +login page and creating a cookie file based on the Cookie header received from LP.
description: | updated |
hi, launchpad- bugs allows authentication via password/login it is only 3.5 line fix to implement this for bugnumbers/ bughelper.
as python-
I propose this two ways of authentification:
$bughelper --cookie=COOKIE
or
$bughelper --password=PASSWORD --login=LP-EMAIL
some for bugnumbers.
This way we won't generate an extra cookiefile and, of cource, would avoid depending on curl.
Daniel, does this make sense for you?
If so, I can fix it tomorrow
Markus