diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-02-09 13:23:53 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2018-02-09 13:23:53 -0800 |
commit | db3d1cb6a5dc1aa0fdee3fda79b4dc204cc4af48 (patch) | |
tree | 3aae1aa05eebd2a2197dc4f0f11b7c7c7bd6ff07 /src/main/scala/xyz/driver/core/rest/HttpRestServiceTransport.scala | |
parent | 3765c504d8bdfcc7ca3a5bdafa44351c1908596e (diff) | |
download | driver-core-db3d1cb6a5dc1aa0fdee3fda79b4dc204cc4af48.tar.gz driver-core-db3d1cb6a5dc1aa0fdee3fda79b4dc204cc4af48.tar.bz2 driver-core-db3d1cb6a5dc1aa0fdee3fda79b4dc204cc4af48.zip |
Overload authorize directive to check against service context
This enables checking permissions when a service request is
constructed synthetically.
An example where this may be useful is in the case where an
authorization token is not available as a header but can be obtained
elsewhere, such as a session cookie. The service context may then be
explicitly constructed with said token and reuse the existing
permissions checking functionality.
Diffstat (limited to 'src/main/scala/xyz/driver/core/rest/HttpRestServiceTransport.scala')
0 files changed, 0 insertions, 0 deletions