Skip to content

Commit

Permalink
Fjernet IDPorten level 4 acr claim (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnutArildSlaatsve authored Dec 7, 2023
1 parent f7518e6 commit 5ca8307
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import no.nav.tag.innsynAareg.service.InnsynService
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_NEW
import no.nav.tag.innsynAareg.utils.AutentisertBruker
import no.nav.tag.innsynAareg.utils.ISSUER
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_OLD
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
Expand All @@ -18,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController
@ProtectedWithClaims(
issuer = ISSUER,
claimMap = [ACR_CLAIM_OLD, ACR_CLAIM_NEW],
claimMap = [ACR_CLAIM_NEW],
combineWithOr = true,
)
class AaregController(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import no.nav.tag.innsynAareg.models.AltinnOppslagVellykket
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_NEW
import no.nav.tag.innsynAareg.utils.AutentisertBruker
import no.nav.tag.innsynAareg.utils.ISSUER
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_OLD
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
Expand All @@ -17,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController

@ProtectedWithClaims(
issuer = ISSUER,
claimMap = [ACR_CLAIM_OLD, ACR_CLAIM_NEW],
claimMap = [ACR_CLAIM_NEW],
combineWithOr = true,
)
@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import no.nav.tag.innsynAareg.client.altinn.dto.Organisasjon
import no.nav.tag.innsynAareg.client.enhetsregisteret.EnhetsregisteretClient
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_NEW
import no.nav.tag.innsynAareg.utils.ISSUER
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_OLD
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestHeader
Expand All @@ -13,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController
@ProtectedWithClaims(
issuer = ISSUER,
claimMap = [ACR_CLAIM_OLD, ACR_CLAIM_NEW],
claimMap = [ACR_CLAIM_NEW],
combineWithOr = true,
)
class EnhetsregisteretController(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package no.nav.tag.innsynAareg.controller
import no.nav.security.token.support.core.api.ProtectedWithClaims
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_NEW
import no.nav.tag.innsynAareg.utils.ISSUER
import no.nav.tag.innsynAareg.utils.ACR_CLAIM_OLD
import org.springframework.http.CacheControl
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
Expand All @@ -12,7 +11,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController
@ProtectedWithClaims(
issuer = ISSUER,
claimMap = [ACR_CLAIM_OLD, ACR_CLAIM_NEW],
claimMap = [ACR_CLAIM_NEW],
combineWithOr = true,
)
class InnloggingsController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import no.nav.security.token.support.core.context.TokenValidationContextHolder
import no.nav.security.token.support.core.jwt.JwtToken
import org.springframework.stereotype.Component

const val ACR_CLAIM_OLD = "acr=Level4"
const val ACR_CLAIM_NEW = "acr=idporten-loa-high"
const val ISSUER = "tokenx"

Expand Down

0 comments on commit 5ca8307

Please sign in to comment.