Skip to content

Commit

Permalink
Fix crash due to not using jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed May 17, 2024
1 parent 6b0461c commit 0bed649
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ class HelperService {
def deleteUrl = grailsApplication.config.collectory.baseURL +"/ws/dataResource/" + drId
def http = new HTTPBuilder(deleteUrl)
http.getClient().getParams().setParameter("http.socket.timeout", new Integer(5000))
http.setHeaders([Authorization: "Bearer ${webService.getTokenService().getAuthToken(false)}"])
// SBDI: this crashes since jwt is not enabled
//http.setHeaders([Authorization: "Bearer ${webService.getTokenService().getAuthToken(false)}"])

try {
http.request(Method.DELETE) {
Expand Down

0 comments on commit 0bed649

Please sign in to comment.