From d7a4047fb7df611919f25e436696d2ef355157ae Mon Sep 17 00:00:00 2001 From: Jonas Enge Date: Fri, 8 Sep 2023 10:31:36 +0200 Subject: [PATCH] Endrer issuer fra difi.no til idporten.no --- .../autentisering/tokenveksling/TokenResolver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/fo/veilarbregistrering/autentisering/tokenveksling/TokenResolver.kt b/src/main/kotlin/no/nav/fo/veilarbregistrering/autentisering/tokenveksling/TokenResolver.kt index d80b281b9..9bed0c43d 100644 --- a/src/main/kotlin/no/nav/fo/veilarbregistrering/autentisering/tokenveksling/TokenResolver.kt +++ b/src/main/kotlin/no/nav/fo/veilarbregistrering/autentisering/tokenveksling/TokenResolver.kt @@ -32,5 +32,5 @@ class TokenResolver(private val authContextHolder: AuthContextHolder) { fun AuthContextHolder.erAADToken(): Boolean = hentIssuer().contains("login.microsoftonline.com") private fun AuthContextHolder.erSystemTilSystemToken(): Boolean = this.subject == this.getStringClaim(this.idTokenClaims.get(),"oid") private fun AuthContextHolder.erTokenXToken(): Boolean = hentIssuer().contains("tokendings") -private fun AuthContextHolder.erIdPortenToken(): Boolean = hentIssuer().contains("difi.no") +private fun AuthContextHolder.erIdPortenToken(): Boolean = hentIssuer().contains("idporten.no") private fun AuthContextHolder.hentIssuer(): String = this.requireIdTokenClaims().issuer