mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
aebde84842
* Upgrade scopt to 4.0.0 Scopt 3.x has some issues with Scala 2.13 because it expects an immutable Seq on 2.13 meaning you cannot just pass in an Array. Rather than fixing our callsites to convert to an immutable Seq everywhere, this PR bumps to Scopt 4.0 which goes back to collection.Seq. and leaving that aside, I’m a fan of upgrading dependencies anyway :) changelog_begin changelog_end * Use val instead of def changelog_begin changelog_end |
||
---|---|---|
.. | ||
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.