You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
320 B
9 lines
320 B
TOKEN=$(go run cmd/signjwt/*.go)
|
|
echo "TOKEN: $TOKEN"
|
|
|
|
my_shared="k7nsLSwNKbOeBhDFpbhwGHv"
|
|
my_client="rooted"
|
|
curl -X POST http://roottest.duckdns.org:3010/api/devices \
|
|
-H "Authorization: Bearer ${TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{ "slug": "'$my_client'", "shared_key": "'$my_shared'" }'
|