Skip to content

Commit

Permalink
PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mettok committed Dec 12, 2024
1 parent b254422 commit a56192b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/MaskinportenClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.ktor.client.plugins.ServerResponseException
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import io.ktor.client.statement.HttpResponse
import io.ktor.client.utils.EmptyContent.contentType
import io.ktor.http.ContentType
import io.ktor.http.contentType
import io.ktor.http.formUrlEncode
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/MaskinportenClientConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ interface MaskinportenClientConfig {
fun currentTime(): Date = Date.from(Instant.now())
}

fun getConsumerOrgClaim(orgNr: String) = mapOf("consumer_orgno" to orgNr)
fun getConsumerOrgClaim(orgnr: String) = mapOf("consumer_orgno" to orgnr)

fun getSystemBrukerClaim(orgNr: String) = mapOf(
fun getSystembrukerClaim(orgNr: String) = mapOf(
"authorization_details" to listOf(
mapOf(
"type" to "urn:altinn:systemuser",
Expand Down

0 comments on commit a56192b

Please sign in to comment.