Allow easy generation of Launchpad cookie file

Bug #210406 reported by Daniel Hahler
4
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://wiki.ubuntu.com/SponsorshipProcess/ppaput:
 curl -b ~/.lpcookie -c ~/.lpcookie -d loginpage_email=LAUNCHPAD_EMAIL -d loginpage_password=LAUNCHPAD_PASSWORD -d loginpage_submit_login=1 https://edge.launchpad.net/+login
(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.

Revision history for this message
Markus Korn (thekorn) wrote :

hi,
as python-launchpad-bugs allows authentication via password/login it is only 3.5 line fix to implement this for bugnumbers/bughelper.
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

Changed in bughelper:
importance: Undecided → Wishlist
Revision history for this message
Markus Korn (thekorn) wrote :

This patch against bughelper.main rev209 adds the in comment #1 proposed options to bughelper/ bugnumbers/ buginfo.

needs some review.

Markus

Daniel Hahler (blueyed)
description: updated
Revision history for this message
Markus Korn (thekorn) wrote :

I deleted my last patch, because this solution (having '--password' and '--login' as cmd-line options) is not related to the primary bugreport

Markus

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.