Create an endpoint auth (like join) that accepts a node ID and password in the body as JSON. Authenticate the node ID and check the password against the entry in Consul.
If authentication is successful, generate a session token (don't need to store it anywhere for now). If not, return a proper error message
Create an endpoint
auth
(likejoin
) that accepts a node ID and password in the body as JSON. Authenticate the node ID and check the password against the entry in Consul.If authentication is successful, generate a session token (don't need to store it anywhere for now). If not, return a proper error message