Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
titleSample 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
languagebash
titleSample Result
{"total" : 12 }

...

Code Block
languagebash
titleSample 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
languagebash
titleSample Result
{"total" : 12 }

...

Master Login Username and Password

Warning

Do NOT expose clear text password in the URL or DOM.

Thai

Master ชื่อผู้ใช้และรหัสผ่าน

...

Code Block
languagebash
titleSample 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
languagebash
titleSample Result
{"total" : 12 }

...

Code Block
languagebash
titleSample 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
languagebash
titleSample 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
languagebash
titleSample Result
{"total" : 12 }