mcl_core_lan_entry_handler (mcl_core v1.0.0)

View Source

The LAN entry point's POST /lan/v1/challenge, /token and /call (mcl_core_lan_entry, docs/DESIGN.md §4.2, mcl-core#4).

Each refusal answers JSON {"error": Reason}: 400 for a request of the wrong shape, 401 for a missing, forged or expired token, 403 for a node id that is not listed, a key that is not the node id's, a challenge that is not live or a signature that does not verify, and for a capability that refuses the caller.

Summary

Functions

The node id a request's bearer token names, when the token is sealed under this cluster's key, not expired, and its node id is listed NOW.

Functions

init(Req0, Opts)

member(Req, _)

-spec member(cowboy_req:req(), map()) -> {ok, <<_:256>>} | {error, 401 | 403, atom()}.

The node id a request's bearer token names, when the token is sealed under this cluster's key, not expired, and its node id is listed NOW.