Skip to content

Commit

Permalink
fix: rest connector - delete validation for field audience and update…
Browse files Browse the repository at this point in the history
… element template
  • Loading branch information
mbiciin committed Dec 13, 2022
1 parent 017a320 commit d09047e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"group": "authentication",
"type": "String",
"feel": "optional",
"optional": true,
"binding": {
"type": "zeebe:input",
"name": "authentication.scopes"
Expand All @@ -247,6 +248,7 @@
"group": "authentication",
"type": "String",
"feel": "optional",
"optional": true,
"binding": {
"type": "zeebe:input",
"name": "authentication.audience"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OAuthAuthentication extends Authentication {
@NotEmpty @Secret private String oauthTokenEndpoint;
@NotEmpty @Secret private String clientId;
@NotEmpty @Secret private String clientSecret;
@NotEmpty @Secret private String audience;
@Secret private String audience;
@NotEmpty private String clientAuthentication;

private String scopes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,31 +222,6 @@
}
}
},
{
"descriptionOfTest": "oauth request without audience",
"method": "post",
"url": "https://abc/def",
"connectionTimeoutInSeconds": "30",
"headers": {
"X-Camunda-Cluster-ID": "abcdef",
"User-Agent": "http-connector-demo"
},
"authentication":{
"oauthTokenEndpoint":"https://abc.eu.auth0.com/api/v2/",
"scopes": "read:clients",
"clientId":"secrets.CLIENT_ID",
"clientSecret":"secrets.CLIENT_SECRET",
"type":"oauth-client-credentials-flow",
"clientAuthentication":"basicAuthHeader"
},
"body": {
"customer": {
"id": 1231231,
"name": "Jane Doe",
"email": "[email protected]"
}
}
},
{
"descriptionOfTest": "oauth request without client authentication",
"method": "post",
Expand Down

0 comments on commit d09047e

Please sign in to comment.