Merge lp:~xnox/launchpad/devel into lp:launchpad
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~xnox/launchpad/devel |
| Merge into: | lp:launchpad |
| Diff against target: |
96 lines (+68/-2) 3 files modified
lib/lp/services/oauth/browser/__init__.py (+1/-1) lib/lp/services/oauth/doc/oauth.txt (+1/-1) lib/lp/services/oauth/stories/access-token-header.txt (+66/-0) |
| To merge this branch: | bzr merge lp:~xnox/launchpad/devel |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2014-04-24 | Needs Fixing on 2014-04-24 |
| Barry Warsaw | 2014-04-25 | Pending | |
|
Review via email:
|
|||
| Dimitri John Ledkov (xnox) wrote : | # |
> This seems to remove the test that verifies the behaviour that every existing
> Launchpad API client relies on. Why do you want to change the behaviour in the
> first place?
Right, i'll readd it back again. At the moment it exposes a bug though, since header-signature type doesn't appear to invalidate request token, thus one can exchange for access token unlimited amount of times. Only body-signature type seems to correctly raise 401 upon subsequent requests.
So at the moment the test change exposes buggy behaviour with header-signature. I'll make sure to re-introduce body-signature tests and test header-signatures separately.
-------
File "lib/lp/
Failed example:
auth_
'http://
Differences (ndiff with -expected +actual):
- Traceback (most recent call last):
- ...
- HTTPError: HTTP Error 401: Unauthorized
| Dimitri John Ledkov (xnox) wrote : | # |
Settings status to "work in progress" appropriately.
- 16989. By Dimitri John Ledkov on 2014-04-24
-
Support oauth_callback from header authentication
- 16990. By Dimitri John Ledkov on 2014-04-25
-
OAuth Revert access-token.txt to current, add header-signature story.
- 16991. By Dimitri John Ledkov on 2014-04-25
-
Revert callback change for now
| Dimitri John Ledkov (xnox) wrote : | # |
Barry, help! =) what's going on wrong here? See the added story, run with:
./bin/test -vvct access-token-header
It should fail at second token exchange, but it doesn't fail and instead allows exchanging request token over and over again.
Unmerged revisions
- 16991. By Dimitri John Ledkov on 2014-04-25
-
Revert callback change for now
- 16990. By Dimitri John Ledkov on 2014-04-25
-
OAuth Revert access-token.txt to current, add header-signature story.
- 16989. By Dimitri John Ledkov on 2014-04-24
-
Support oauth_callback from header authentication
- 16988. By Dimitri John Ledkov on 2014-04-24
-
Change access-token story to use header authentication.
- 16987. By Dimitri John Ledkov on 2014-04-24
-
Fix tests file references in the doctests comment.
- 16986. By Dimitri John Ledkov on 2014-04-22
-
Accept oauth signature from either headers or body in +access-token requests.

This seems to remove the test that verifies the behaviour that every existing Launchpad API client relies on. Why do you want to change the behaviour in the first place?