sudo dpkg -i oauthd_1.0.0.deb
curl -X POST \
--user <client_id>:<client_secret> \
--data "grant_type=password" \
--data "username=<login>" \
--data "password=<password>" \
http://localhost:8081/oauth/token
curl "http://localhost:8081/user/check-login-free?login=<login>"
curl -X POST \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "login" : "<login>", "password" : "<password>" }' \
http://localhost:8081/user
curl --header "Authorization: Bearer <your token here>" http://localhost:8081/user
curl -X PATCH \
--header "Authorization: Bearer <your token here>" \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "password" : "<new_password>" }' \
http://localhost:8081/user
curl -X DELETE \
--header "Authorization: Bearer <your token here>" \
http://localhost:8081/user
Available for root
user only
curl http://localhost:8081/client
curl -X POST \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "client_id" : "<client_id>", "client_secret" : "<client_secret>" }' \
http://localhost:8081/client
curl -X PATCH \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "client_secret" : "<client_secret>" }' \
http://localhost:8081/client/<client_id>
curl -X DELETE \
--user <client_id>:<client_secret> \
http://localhost:8081/client