diff --git a/src/main/kotlin/MaskinportenClient.kt b/src/main/kotlin/MaskinportenClient.kt index d79e651..3801796 100644 --- a/src/main/kotlin/MaskinportenClient.kt +++ b/src/main/kotlin/MaskinportenClient.kt @@ -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 diff --git a/src/main/kotlin/MaskinportenClientConfig.kt b/src/main/kotlin/MaskinportenClientConfig.kt index ca5e5c2..9409b12 100644 --- a/src/main/kotlin/MaskinportenClientConfig.kt +++ b/src/main/kotlin/MaskinportenClientConfig.kt @@ -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",