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 Builder?ビルダーでaddUserNameとaddPasswordを使用する代わりに、JBPMと外部アプリが認証サービスを共有する方法はありますか?
私は、username/passwordの代わりにトークンを渡すことでoauthがサポートされると予想しました。基本的な認証データの代わりにヘッダーを渡すことは、私が期待していたもの(ビルダーの.addAuthentication(someAuthenticationObject)でしょうか?)です。私は6.5でこれを探します、ありがとう! –