diff --git a/src/main/kotlin/no/nav/syfo/krr/KontaktinfoController.kt b/src/main/kotlin/no/nav/syfo/krr/KontaktinfoController.kt index 446609d..92daf15 100644 --- a/src/main/kotlin/no/nav/syfo/krr/KontaktinfoController.kt +++ b/src/main/kotlin/no/nav/syfo/krr/KontaktinfoController.kt @@ -1,7 +1,6 @@ package no.nav.syfo.krr import no.nav.security.token.support.core.api.ProtectedWithClaims -import no.nav.security.token.support.core.api.Unprotected import no.nav.security.token.support.core.context.TokenValidationContextHolder import no.nav.syfo.brukertilgang.BrukertilgangService import no.nav.syfo.tokenx.TokenXUtil @@ -21,8 +20,7 @@ import org.springframework.web.bind.annotation.ResponseBody import org.springframework.web.bind.annotation.RestController @RestController -@Unprotected -//@ProtectedWithClaims(issuer = TOKENX, claimMap = ["acr=Level4", "acr=idporten-loa-high"], combineWithOr = true) +@ProtectedWithClaims(issuer = TOKENX, claimMap = ["acr=Level4", "acr=idporten-loa-high"], combineWithOr = true) @RequestMapping(value = ["/api/v1/kontaktinfo"]) class KontaktinfoController( private val contextHolder: TokenValidationContextHolder, @@ -33,11 +31,6 @@ class KontaktinfoController( ) { private val log = LoggerFactory.getLogger(KontaktinfoController::class.java) - @GetMapping("/yolo") - fun getYolo(): ResponseEntity { - return ResponseEntity.ok("yolo") - } - @ResponseBody @GetMapping(produces = [APPLICATION_JSON_VALUE]) fun getKontaktinfo(@RequestHeader(NAV_PERSONIDENT_HEADER) fnr: String): ResponseEntity { @@ -70,4 +63,4 @@ class KontaktinfoController( } } } -} \ No newline at end of file +}