stellar / stellar-protocol

Developer discussion about possible changes to the protocol.
509 stars 301 forks source link

[PARTNER-275] Add Authorization header for SEP-10 GET /Auth #1470

Closed Ifropc closed 3 months ago

Ifropc commented 3 months ago

In the protocol change, an optional Authorization header was added for GET <WEB_AUTH_ENDPOINT> endpoint. The header should contain a signed JWT token (using ed25519) with an appropriate key from the request. For custodial applications, this is a primary Application key, provided in account field. For non-custodial, this will be the SIGNING_KEY from toml file hosted in the client_domain

The server will validate that the signature is correct, and that URL in the JWT corresponds to the request. It can optionally filter out requests from all clients that are not allowed by the server.