Skip to content

Commit 697023d

Browse files
committed
Update fuel version to 2.1.0 - Adapt to api change in fuel
1 parent 70fc8cb commit 697023d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sts-klient/src/main/kotlin/no/nav/dagpenger/oidc/StsOidcClient.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package no.nav.dagpenger.oidc
22

3+
import com.github.kittinunf.fuel.core.extensions.authentication
34
import com.github.kittinunf.fuel.gson.responseObject
45
import com.github.kittinunf.fuel.httpGet
56
import com.github.kittinunf.result.Result
@@ -36,7 +37,7 @@ class StsOidcClient(stsBaseUrl: String, private val username: String, private va
3637
"scope" to "openid"
3738
)
3839
val (_, response, result) = with(stsTokenUrl.httpGet(parameters)) {
39-
authenticate(username, password)
40+
authentication().basic(username, password)
4041
responseObject<OidcToken>()
4142
}
4243
when (result) {

0 commit comments

Comments
 (0)