You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Authentication

For authentication purposes, the following parameters can be appended to each of the JSON API URL:

  • j_username
  • j_password
  • hash

Example:
Assuming the username and password required is "user1" and "password1" respectively, the following URL can be used:

/web/json/workflow/assignment/list/pending?j_username=user1&j_password=password1

or using hashed password

/web/json/workflow/assignment/list/pending?j_username=user1&hash=D012B772672A55A0B561EAA53CA7734E

Master Login Username and Password

Under the System Settings > General Setting, you are able to set a Master Login Username and Master Login Password. By setting these values, a different user can be specified by passing in the loginAs parameter.

Assuming the master login username and master login password is "master" and "master" respectively, the following URL can be used to represent the user "user1":

/web/json/workflow/assignment/list/pending?j_username=master&j_password=master&loginAs=user1

There's a hash key for the combination of Master Login User and Master Login Password configured. By using this hash (assuming it's "hashKey"), API authentication can be done without exposing the Master Login Password.

/web/json/workflow/assignment/list/pending?j_username=master&hash=hashKey&loginAs=user1
  • No labels