Reading the documentation I want to confirm my understanding:
- The claims (
public
,admin
,canReadAs
,canActAs
) are generic concepts that are defined in the interface between an AuthService and the Ledger API Server. All ledger implementations have to support these, but the format / encoding can vary. - The Ledger API Server does not contain logic to interpret a token, but will pass it through to the AuthService to confirm the claims required for the action to be taken. So the format / encoding required for a particular ledger is defined by the AuthService implementation.
- The way a token is passed to the API is defined by the Ledger API Server (via gRPC), respectively the HTTP JSON API (via
Authorization
header). So this is again common to all ledger implementations.
My questions:
- Is the above understanding correct?
- The DAML-on-SQL implementation uses JWT token encoding. What other token encodings are common?
- Where can I find information about the token format / encoding for other ledger implementations, like DAML-on-Sawtooth or DAML-on-Fabric?