/api/login/public-key/signed/:token

Sign the data and send to the server during authentication

Method

POST

Parameters

  • signature — base64 encoded signed data

Result

Stage: public-key

User is in the middle of authentication.
Send the public key to the server

  • stage — ‘public-key’
  • token — connection token which is required during authentication

Stage: keyboard-interactive

User is in the middle of authentication.
The prompts parameter contains an array of prompts that the user should make responses to.  Send the array of responses to /api/login/keyboard-interactive/:token

  • stage — ‘keyboard-interactive’
  • token — connection token which is required during authentication
  • prompt — text description of the prompt

Stage: password

Password based authentication

JSON object with the following members

  • stage — ‘password’
  • token — connection token which is required during authentication

Stage: success

User has successfully logged in and can now issue api commands

JSON object with the following members

  • stage — ‘success’
  • token — connection token which is required in api calls
  • host —  hostname where the user is connected