...
Assuming the username and password required is "user1" and "password1" respectively, we can post the username and password to the JSON API using following sample commandscript.
Thai |
---|
สมมติว่าชื่อผู้ใช้และรหัสผ่านที่ต้องการคือ "user1" และ "password1" ตามลำดับเราสามารถโพสต์ชื่อผู้ใช้และรหัสผ่านไปยัง JSON API โดยใช้สคริปต์ jQuery ต่อไปนี้ |
Code Block | ||||
---|---|---|---|---|
| ||||
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=user1&j_password=password1' |
...
If you prefer to use hashed password, you can use the following sample commandscript.
Thai |
---|
หากคุณต้องการใช้ hashed password คุณสามารถใช้สคริปต์ต่อไปนี้ |
...
Assuming the username and password required is "user1" and "password1" respectively, we can set the Basic Auth header to the JSON API using following jQuery script.
Thai |
---|
สมมติว่าชื่อผู้ใช้และรหัสผ่านที่ต้องการคือ "user1" และ "password1" ตามลำดับเราสามารถตั้งค่าหัวข้อ Auth พื้นฐานเป็น JSON API โดยใช้สคริปต์ jQuery ต่อไปนี้ |
Code Block | ||||
---|---|---|---|---|
| ||||
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending' --header 'Authorization: Basic YWRtaW46YW1hem9uaWEqOCo4' |
...