suport login via oauth token to avoid having to login twice

Bug #1020567 reported by Michael Vogt
6
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://software-center.ubuntu.com/login_by_token/ and sign that request with a oauth signature
2. wait until that view returns "login succeeded" (views.py:335: return http.HttpResponse('login succeeded'))
3. then go and load the usual "purchase url" as usual

Alternatively (not there yet) once the server is ready:
1. hit ttps://software-center.ubuntu.com/login_by_token/?next=/subscription/+new" ..

Tags: ca-escalated

Related branches

Michael Vogt (mvo)
Changed in software-center (Ubuntu):
milestone: none → ubuntu-12.10
status: New → In Progress
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

To test the oauth code from the branch lp:~mvo/software-center/oauth-from-webkit:

$ PYTHONPATH=. python softwarecenter/ui/gtk3/views/purchaseview.py https://software-center.ubuntu.com/api/2.0/subscriptions

Revision history for this message
Michael Vogt (mvo) wrote :

<achuni> there is one problem, of course
 this will log you into sca.
 but, unless we log you into sso, when you try to log into Pay you'll be prompted to log in again

So from the comment from achuni this needs a bit more server side work.

Michael Vogt (mvo)
tags: added: ca-escalated
Michael Vogt (mvo)
Changed in software-center (Ubuntu):
status: In Progress → Invalid
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.