Skip to content

Commit

Permalink
fixed auth for DES
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal22p committed Sep 30, 2024
1 parent 40730de commit 208aa0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/uk/gov/hmrc/tai/connectors/IabdConnector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ class DefaultIabdConnector @Inject() (
originatorId: String
): Seq[(String, String)] =
Seq(
"Environment" -> desConfig.environment,
"Authorization" -> desConfig.authorization,
"Content-Type" -> TaiConstants.contentType,
HeaderNames.xSessionId -> hc.sessionId.fold("-")(_.value),
HeaderNames.xRequestId -> hc.requestId.fold("-")(_.value),
"CorrelationId" -> UUID.randomUUID().toString,
"ETag" -> version.toString,
"X-TXID" -> txId,
"Gov-Uk-Originator-Id" -> originatorId,
"CorrelationId" -> getUuid
"Gov-Uk-Originator-Id" -> originatorId
)

private def headersForGetIabdsForType(implicit hc: HeaderCarrier) =
Expand Down

0 comments on commit 208aa0a

Please sign in to comment.