lp:~cjwatson/lazr.restful/scopes
Created by
Colin Watson
and last modified
- Get this branch:
- bzr branch lp:~cjwatson/lazr.restful/scopes
Only
Colin Watson
can upload to this branch. If you are
Colin Watson
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- William Grant: Approve (code)
- Ioana Lasc (community): Approve
- Cristian Gonzalez (community): Approve
-
Diff: 619 lines (+377/-9)8 files modifiedNEWS.rst (+9/-0)
src/lazr/restful/declarations.py (+62/-5)
src/lazr/restful/docs/webservice-declarations.rst (+205/-2)
src/lazr/restful/interfaces/_rest.py (+20/-0)
src/lazr/restful/tales.py (+7/-1)
src/lazr/restful/testing/webservice.py (+15/-0)
src/lazr/restful/tests/test_declarations.py (+32/-0)
src/lazr/restful/tests/test_webservice.py (+27/-1)
Branch information
Recent revisions
- 305. By Colin Watson
-
Add a new @scoped decorator.
This allows applications to tag methods with scope names and issue
authentication tokens constrained to only be able to call methods with
particular scopes. Scoped requests cannot currently use attributes,
accessors, or mutators; this may change in future.Launchpad will use this in conjunction with its new `AccessToken` table.
- 303. By Colin Watson
-
[r=cristiangsp] Adjust versioning strategy to avoid importing pkg_resources, which is slow in large environments.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:lazr.restful