status-im / nim-json-rpc

Nim library for implementing JSON-RPC clients and servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jwt authentication for rpc interface

jangko opened this issue · comments

The upcoming engine JSON-RPC interface, exposed by eth-EL and consumed by eth-CL, needs to be authenticated.

Read the rest of this information in:

For HTTP dialogue, each jsonrpc request is individually authenticated by supplying JWT token in the HTTP header.

we can implement this as HTTP header validation plugin, thus we don't need to deal with the jwt itself but only care about the plugin result.

maybe we can fork https://github.com/yglukhov/nim-jwt or take some idea from there