Elffuss BraidHub

kikocis/EDC public

Branch: main
cc2a9ff178c4 fix: return StsClient from create() (#4479) Paul Latzelsperger,
..
README.md1.7 KiB

README.md

JSON Web Tokens for Decentralized Identity

Decision

Json Web Tokens (JWT) are used to authenticate between EDC connectors when using the Decentralized Identity module. Tokens contain the following claims:

ClaimValue
IssuerThe request source connector did:web identifier (example: did:web:edc.example.com). This allows the server to verify the JWT signature against the source's public key.
SubjectThe same value as in the Issuer claim.
AudienceThe request destination connector IDS endpoint (example: http://edc.example.com:8181/api/v1/ids/data). This allows the server to verify the intended audience.
JWT IDA random UUID.
Expiration TimeA time set in the near future.

Rationale

Audience claim

A JWT token sent to a participant other than the one it was initially intended for must be rejected. The IDS endpoint URL of the message receiver is used as the JWT audience claim to achieve this.

The JWT spec defines the audience claim to identify the JWT target of a token to protect from a malicious entity impersonating the originator (in particular, the owner of the request destination server).

The IDS endpoint URL is known to both the consumer and the provider (as the ids.webhook.address property).