Skip to content

Commit fc57a7a

Browse files
check if scope is empty (#143) (#145)
(cherry picked from commit 30550bf)
1 parent e601f7a commit fc57a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/client-java/src/main/java/io/camunda/tasklist/auth/JwtAuthentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ 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-
if (jwtCredential.scope() != null) {
76+
if (jwtCredential.scope() != null && !jwtCredential.scope().isEmpty()) {
7777
formParams.add(new BasicNameValuePair("scope", jwtCredential.scope()));
7878
}
7979
httpPost.setEntity(new UrlEncodedFormEntity(formParams));

0 commit comments

Comments
 (0)