lp:~ricardokirkner/rnr-server/submit-review-with-macaroons
Created by
Ricardo Kirkner
and last modified
- Get this branch:
- bzr branch lp:~ricardokirkner/rnr-server/submit-review-with-macaroons
Only
Ricardo Kirkner
can upload to this branch. If you are
Ricardo Kirkner
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Fabián Ezequiel Gallina (community): Approve
-
Diff: 982 lines (+577/-37)13 files modifiedrequirements-devel.txt (+1/-0)
requirements.txt (+1/-0)
src/clickreviews/forms.py (+2/-2)
src/core/api/auth/__init__.py (+2/-0)
src/core/api/auth/macaroon.py (+82/-0)
src/core/api/auth/sso.py (+2/-2)
src/core/tests/doubles.py (+119/-0)
src/core/tests/helpers.py (+42/-0)
src/core/tests/test_api_auth.py (+121/-2)
src/core/tests/test_utilities.py (+123/-15)
src/core/utilities.py (+40/-6)
src/reviewsapp/api/urls.py (+4/-3)
src/reviewsapp/tests/test_handlers.py (+38/-7)
Branch information
Recent revisions
- 320. By Ricardo Kirkner
-
improve authentication based on macaroons
- updated verify_acl call to reflect changes in api
- get or create user from retrieved account data
- inject user into request for consistency with other auth handlers - 318. By Ricardo Kirkner
-
verify request is properly authenticated by asking SCA about it
ensure request has a valid set of macaroons in the authorization header and that
the root macaroon contains permission for 'package_access'
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:rnr-server