Cryptosign-based Authentication
Wampy.js supports cryptosign-based authentication. To use it you need to provide authid
, onChallenge
callback and authextra
as wampy instance options. Also, Wampy.js supports cryptosign
authentication method with a little helper plugin "wampy-cryptosign". Just add "wampy-cryptosign" package and use provided methods as shown below.
The authextra
option may contain the following properties for WAMP-Cryptosign:
pubkey
string
yes
The client public key (32 bytes) as a Hex encoded string, e.g. 545efb0a2192db8d43f118e9bf9aee081466e1ef36c708b96ee6f62dddad9122
channel_binding*
string
no
If TLS channel binding is in use, the TLS channel binding type, e.g. "tls-unique"
.
challenge
string
no
A client chosen, random challenge (32 bytes) as a Hex encoded string, to be signed by the router.
trustroot
string
no
When the client includes a client certificate, the Ethereum address of the trustroot of the certificate chain to be used, e.g. 0x72b3486d38E9f49215b487CeAaDF27D6acf22115
, which can be a Standalone Trustroot or an On-chain Trustroot
*: channel_binding
is not supported yet. And may be supported only in node.js environment.
Last updated