-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IS-2112: Add behandlingsnummer header to pdl request
- Loading branch information
1 parent
e1be5e3
commit a113d16
Showing
2 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
package no.nav.syfo.util | ||
|
||
import io.ktor.server.application.* | ||
import io.ktor.util.pipeline.* | ||
import net.logstash.logback.argument.StructuredArguments | ||
|
||
const val TEMA_HEADER = "Tema" | ||
const val ALLE_TEMA_HEADERVERDI = "GEN" | ||
|
||
fun bearerHeader(token: String): String { | ||
return "Bearer $token" | ||
} | ||
|
||
const val NAV_CALL_ID_HEADER = "Nav-Call-Id" | ||
|
||
fun callIdArgument(callId: String) = StructuredArguments.keyValue("callId", callId)!! | ||
|
||
const val NAV_CONSUMER_ID_HEADER = "Nav-Consumer-Id" |