Skip to content

Commit

Permalink
Add user and password auth to HTTPRestProcessor class
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Dec 27, 2018
1 parent 08e46b2 commit 2301d54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/camunda/latera/bss/http.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class HTTPRestProcessor {
HTTPRestProcessor(parameters) {
this.httpClient = new RESTClient(parameters.baseUrl)
this.logger = new SimpleLogger(parameters.execution)

if (parameters.user && parameters.password) {
this.processor.httpClient.auth.basic(parameters.user, parameters.password)
}
}

def private responseBlock(Boolean failure=false) {
Expand Down

0 comments on commit 2301d54

Please sign in to comment.