suport login via oauth token to avoid having to login twice
Bug #1020567 reported by
Michael Vogt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
To avoid having to login via the webui for a purchase we should support (re)using the oauth token that we obtained
from ubuntu sso login. The workflow needs to change slightly then.
For a purchase:
1. hit https:/
2. wait until that view returns "login succeeded" (views.py:335: return http.HttpRespon
3. then go and load the usual "purchase url" as usual
Alternatively (not there yet) once the server is ready:
1. hit ttps://
Related branches
lp:~mvo/software-center/oauth-from-webkit
On hold
for merging
into
lp:software-center
- Anthony Lenton: Pending requested
- software-store-developers: Pending requested
-
Diff: 249 lines (+142/-8) (has conflicts)4 files modifiedsoftwarecenter/backend/login_sso.py (+31/-2)
softwarecenter/ui/gtk3/views/purchaseview.py (+11/-2)
softwarecenter/ui/gtk3/views/webkit.py (+46/-4)
tests/gtk3/test_webkit.py (+54/-0)
Changed in software-center (Ubuntu): | |
milestone: | none → ubuntu-12.10 |
status: | New → In Progress |
importance: | Undecided → High |
tags: | added: ca-escalated |
Changed in software-center (Ubuntu): | |
status: | In Progress → Invalid |
To post a comment you must log in.
To test the oauth code from the branch lp:~mvo/software-center/oauth-from-webkit:
$ PYTHONPATH=. python softwarecenter/ ui/gtk3/ views/purchasev iew.py https:/ /software- center. ubuntu. com/api/ 2.0/subscriptio ns