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 @@ -73,7 +73,9 @@ private HttpPost buildRequest() throws URISyntaxException {
7373 formParams .add (new BasicNameValuePair ("client_id" , jwtCredential .clientId ()));
7474 formParams .add (new BasicNameValuePair ("client_secret" , jwtCredential .clientSecret ()));
7575 formParams .add (new BasicNameValuePair ("audience" , jwtCredential .audience ()));
76- formParams .add (new BasicNameValuePair ("scope" , jwtCredential .scope ()));
76+ if (jwtCredential .scope () != null && !jwtCredential .scope ().isEmpty ()) {
77+ formParams .add (new BasicNameValuePair ("scope" , jwtCredential .scope ()));
78+ }
7779 httpPost .setEntity (new UrlEncodedFormEntity (formParams ));
7880 return httpPost ;
7981 }
You can’t perform that action at this time.
0 commit comments