Skip to content

Authentication

The workflow engine uses JWT Token for authentication. accessToken expires after 5 days.

Using Token

Most workflow pages support passwordless browser access by appending hzToken to the URL:

/workflow/module/workflow/index.html?flowId=NewFlowId1&isembedded=false&hzToken=xxxx

Process approval page

Normal URL:

/workflow/module/workflow/index.html?flowId=NewFlowId1&isembedded=false

Passwordless URL:

/workflow/module/workflow/index.html?flowId=NewFlowId1&isembedded=false&hzToken=xxx

Note: For menu pages, place the hash fragment (#...) after the query string.

Format:

/horizon/manager/index.html?hzToken=xxxxx#page/HZ2886895e7dfbbb015e7e09de7f0001

Example — process modeling menu:

  • Normal: http://219.141.180.186:9003/workflow82/workflow/manager/index.html#page/createFlow
  • Passwordless: http://219.141.180.186:9003/workflow82/workflow/manager/index.html?hzToken=xxx#page/createFlow

Login flow

Permission management

Default roles

RoleDescriptionPermissions
adminAdministratorFull access
userRegular userTask processing

Custom permissions

To customize permission logic, extend and implement:

com/horizon/third/adapter/FlowManageAdapter.java

Note: JARs starting with horizon-workflow-extend include Java source code.

Process administrators

Process admin permissions

Process design permissions

Process design permissions

Best practices

  1. Token security: Do not store tokens in browser local storage
  2. Refresh: Refresh tokens before expiry
  3. Least privilege: Grant only necessary permissions
  4. HTTPS: Use HTTPS in production