Skip to content

Commit

Permalink
Add comsumer-id
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Oct 11, 2023
1 parent 9e9542f commit 1816061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class DialogmeldingProcessor(
azureAdV2Client = azureAdV2Client,
endpointUrl = env.legeSuspensjonEndpointURL,
endpointClientId = env.legeSuspensjonClientId,
applicationName = env.applicationName,
httpClient = httpClient,
)
val padm2ReglerService = RuleService(
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/syfo/client/LegeSuspensjonClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class LegeSuspensjonClient(
private val azureAdV2Client: AzureAdV2Client,
private val endpointUrl: String,
private val endpointClientId: String,
private val httpClient: HttpClient
private val httpClient: HttpClient,
private val applicationName: String
) {

suspend fun sjekkSuspensjon(
Expand All @@ -28,6 +29,7 @@ class LegeSuspensjonClient(
accept(ContentType.Application.Json)
headers {
append("Nav-Call-Id", ediloggid)
append("Nav-Consumer-Id", applicationName)
append("Nav-Personident", behandlerId)
append("Authorization", "Bearer ${token.accessToken}")
}
Expand Down

0 comments on commit 1816061

Please sign in to comment.