...
Authenticate by Passing Parameters
Warning |
---|
Do NOT expose clear text password in the URL or DOM. |
Thai |
---|
รับรองความถูกต้องโดยผ่านพารามิเตอร์ |
English |
---|
For JSON API authentication purposes, the following parameters can be posted |
...
to each of the JSON API URLs: |
Thai |
---|
สำหรับวัตถุประสงค์ในการรับรองความถูกต้องของ JSON API พารามิเตอร์ต่อไปนี้สามารถโพสต์ / ผนวกเข้ากับแต่ละ URL ของ JSON API: |
...
Code Block |
---|
language | bash |
---|
title | Sample Call |
---|
|
curl --location --request POST --data 'j_username=user1&j_password=password1' 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=user1&j_password=password1' |
Code Block |
---|
language | bash |
---|
title | Sample Result |
---|
|
{"total" : 12 } |
...
Code Block |
---|
language | bash |
---|
title | Sample Call |
---|
|
curl --location --request POST --data 'j_username=user1&hash=D012B772672A55A0B561EAA53CA7734E' 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=user1&hash=D012B772672A55A0B561EAA53CA7734E' |
Code Block |
---|
language | bash |
---|
title | Sample Result |
---|
|
{"total" : 12 } |
...
Master Login Username and Password
Warning |
---|
Do NOT expose clear text password in the URL or DOM. |
Thai |
---|
Master ชื่อผู้ใช้และรหัสผ่าน |
...
Code Block |
---|
language | bash |
---|
title | Sample Call |
---|
|
curl --location --request POST --data 'j_username=master&j_password=master&loginAs=user1' 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=master&j_password=master&loginAs=user1' |
Code Block |
---|
language | bash |
---|
title | Sample Result |
---|
|
{"total" : 12 } |
...
Code Block |
---|
language | bash |
---|
title | Sample Call |
---|
|
curl --location --request POST --data 'j_username=master&j_password=master&loginAs=user1' 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=master&hash=E505CF727D214A68CB03DA25DA978500&loginAs=user1' |
Code Block |
---|
language | bash |
---|
title | Sample Result |
---|
|
{"total" : 12 } |
...
Since V4, Joget supports Basic HTTP Authentication in JSON API authentication , so you can passing pass the credentials in the header.
...
Code Block |
---|
language | bash |
---|
title | Sample Call |
---|
|
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending' --header 'Authorization: Basic YWRtaW46YW1hem9uaWEqOCo4dXNlcjE6cGFzc3dvcmQx' |
Code Block |
---|
language | bash |
---|
title | Sample Result |
---|
|
{"total" : 12 } |