turing-machines / tpi

CLI tool to control your Turing Pi 2 board
https://docs.turingpi.com/docs/turing-pi2-tpi-cli
Apache License 2.0
33 stars 4 forks source link

Implement Authentication #2

Closed svenrademakers closed 1 year ago

svenrademakers commented 1 year ago

This task can be picked up after authentication is implemented in the bmcd.

Acceptance Criteria

svenrademakers commented 1 year ago

useful commands curl commands:

curl -X POST -d '{"username": "xx", "password": "xx"}' https://192.168.123.2/api/bmc/authenticate -k

curl "https://192.168.123.2/api/bmc?opt=get&type=usb" --header "Authorization: Bearer pcNMg8so7V3MmIWwmZWN4lLUS1erLDBX0oQsDfkj0Vhq85VJ8LLb7cWCwgxbZkFV" -k