0
我正在嘗試使用JBPM作爲黑盒來管理我的外部Web應用程序的工作流程。我使用REST建設者,建立運行時:JBPM REST API運行時構建器身份驗證選項?
engine = RemoteRuntimeEngineFactory.newRestBuilder()
.addUrl(new URL(jbpmProperties.getURL()))
.addTimeout(5)
.addDeploymentId(jbpmProperties.getDeploymentId())
.addUserName(username)
.addPassword(password)
.build();
我注意到,爲建設者狀態的文檔:
addPassword(String password) **always**
Set the password of the user connecting to the server
addUserName(String userName) **always**
Set the name of the user connecting to the server
是否有其他的選擇這個除了明確地嵌入用戶名和密碼進入RuntimeEngine構建器?有沒有辦法讓JBPM和外部應用程序共享身份驗證服務,而不是在構建器中使用addUserName和addPassword?
我只是預料到,例如oauth會通過傳遞一個令牌來代替用戶名/密碼來支持。傳遞頭文件而不是基本身份驗證數據更多的是我期望看到的[也許是構建器中的.addAuthentication(someAuthenticationObject)?]。我會在6.5中尋找這個,謝謝! –