Skip to content

Commit

Permalink
#1612 Updated DAO for spark-jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Olosutean committed Dec 17, 2020
1 parent dbd368f commit 3f7e513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ sealed abstract class AuthClient(username: String, restTemplate: RestTemplate, a

private def getAuthHeaders(response: ResponseEntity[String]): HttpHeaders = {
val headers = response.getHeaders
val sessionCookie = headers.get("set-cookie").asScala.head
val jwt = headers.get("JWT").asScala.head
val csrfToken = headers.get("X-CSRF-TOKEN").asScala.head

log.info(s"Session Cookie: $sessionCookie")
log.info(s"JWT: $jwt")
log.info(s"CSRF Token: $csrfToken")

val resultHeaders = new HttpHeaders()
resultHeaders.add("cookie", sessionCookie)
resultHeaders.add("JWT", jwt)
resultHeaders.add("X-CSRF-TOKEN", csrfToken)
resultHeaders
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spring.mvc.async.request-timeout=60000

menas.ui.version=@project.version@
menas.api.url=http://localhost:8081
menas.lineage.readApiUrl=//localhost:8082/consumer

# Set the total request size for a multipart/form-data (default 10Mb)
spring.servlet.multipart.max-request-size=16MB
Expand Down

0 comments on commit 3f7e513

Please sign in to comment.