mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
c3bc26fd1c
* daml-lf/data: Move ID aliases to `Ref` from _ledger-api-common_. This allows us to remove a lot of dependencies on _ledger-api-common_, and use these aliases in other places where that module is not used. CHANGELOG_BEGIN CHANGELOG_END * participant-integration-api: Remove an unused import. * http-json-oracle: Remove `ledger-api-common` as a dependency. * bindings-rxjava: Remove a now-unused dependency. |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
README.md |
Ledger API authorization
General authorization in gRPC
An Interceptor
reads HTTP headers, and stores relevant information (e.g., claims) in a Context
.
GRPC services read the stored data from the Context
in order to validate the requests.
Authorization in the ledger API
The AuthService
defines an interface for decoding HTTP headers into Claims
.
The ledger API server takes an AuthService
implementation as an argument.
The ledger API server uses a call interceptor and the given AuthService
implementation to to store decoded Claims
in the gRPC Context
.
All ledger API services use the Claims
to validate their requests.