File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
extension/java-client-operate/src/main/java/io/camunda/operate/auth Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ private HttpPost buildRequest() throws URISyntaxException {
7878 formParams .add (new BasicNameValuePair ("client_id" , jwtCredential .clientId ()));
7979 formParams .add (new BasicNameValuePair ("client_secret" , jwtCredential .clientSecret ()));
8080 formParams .add (new BasicNameValuePair ("audience" , jwtCredential .audience ()));
81- formParams .add (new BasicNameValuePair ("scope" , jwtCredential .scope ()));
81+ if (jwtCredential .scope () != null && !jwtCredential .scope ().isEmpty ()) {
82+ formParams .add (new BasicNameValuePair ("scope" , jwtCredential .scope ()));
83+ }
8284 httpPost .setEntity (new UrlEncodedFormEntity (formParams ));
8385 return httpPost ;
8486 }
You can’t perform that action at this time.
0 commit comments