get_request_token should accept arguments for access level and callback

Bug #683827 reported by Leonard Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Triaged
Low
Unassigned

Bug Description

Let's say I'm integrating my website into Launchpad. I want to call Credentials.get_request_token, get a URL back, and send my website's users to that URL.

I can get a URL from Credentials.get_request_token, but it's missing two very important features: the callback URL (the URL on *my* site that Launchpad should redirect my users to once they authorize my request token) and the access level(s) I'm asking for. Right now I have to figure out the URL format for this stuff and tack it on manually.

It wouldn't be hard to add two arguments to get_request_token and return the exact URL that the website integrator can redirect their users to.

Revision history for this message
Leonard Richardson (leonardr) wrote :

Also, maybe exchange_request_token_for_access_token shouldn't raise an exception if the token simply hasn't been authorized yet. Or at least not an HTTPError.

Revision history for this message
Gary Poster (gary) wrote :

As Leonard has noted elsewhere, we haven't seen anyone do this kind of integration yet.

Changed in launchpadlib:
status: New → Triaged
importance: Undecided → Low
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.