Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Example:
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=user1&j_password=password1'
{"total" : 12 }
If you prefer to use hashed password, you can use the following script.
Please note that the support on Hashed Password is based on the Directory Manager you are using. Some Directory Manager Plugin may not supporting this type of authentication method.
The format and hashing method may vary for each Directory Manager as well.
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=user1&hash=D012B772672A55A0B561EAA53CA7734E'
{"total" : 12 }
To use it, set a Master Login Username and Master Login Password under System Settings > General Setting. By setting these values, a different user can be specified by passing in the "loginAs" parameter.
Please note that only enable this when it is necessary. Leaking of your Master Credential will allows others to performs all the unwanted JSON API calls.
Assuming the master login username and master login password is "master" and "master" respectively, the master login hash will be "E505CF727D214A68CB03DA25DA978500".
The following example showcases how to use a Master Credential to login as "user1".
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=master&j_password=master&loginAs=user1'
{"total" : 12 }
Using master login hash:
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending?j_username=master&hash=E505CF727D214A68CB03DA25DA978500&loginAs=user1'
{"total" : 12 }
Example:
curl --location --request POST 'http://localhost:8080/jw/web/json/workflow/assignment/list/pending' --header 'Authorization: Basic YWRtaW46YW1hem9uaWEqOCo4'
{"total" : 12 }