daml/ledger/ledger-api-auth
Robert Autenrieth 3e55fda66b
Privatize ledger-api-auth classes (#6599)
CHANGELOG_BEGIN
CHANGELOG_END
2020-07-03 15:06:18 +02:00
..
src Privatize ledger-api-auth classes (#6599) 2020-07-03 15:06:18 +02:00
BUILD.bazel Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
README.md Move AuthService (#3272) 2019-10-29 15:46:43 +00:00

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.