Skip to content

Commit

Permalink
Release versjon
Browse files Browse the repository at this point in the history
  • Loading branch information
mettok committed Jul 3, 2024
1 parent c8df017 commit 15d7f4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private const val PAGE_SIZE = 500
class AltinnClient(
private val url: String,
private val serviceCode: String,
private val maskiportenClient: () -> String,
private val getToken: () -> String,
private val altinnApiKey: String,
cacheConfig: CacheConfig? = null,
) {
Expand Down Expand Up @@ -87,7 +87,7 @@ class AltinnClient(
val url = buildUrl(id, pageNo)
return try {
httpClient.get(url) {
bearerAuth(maskiportenClient())
bearerAuth(getToken())
header("APIKEY", altinnApiKey)
}
.body<Set<AltinnOrganisasjon>>()
Expand Down

0 comments on commit 15d7f4e

Please sign in to comment.