Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Dec 13, 2023
1 parent 5ebe81a commit 1649e1f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/kotlin/no/nav/syfo/krr/KontaktinfoController.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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,
Expand All @@ -33,11 +31,6 @@ class KontaktinfoController(
) {
private val log = LoggerFactory.getLogger(KontaktinfoController::class.java)

@GetMapping("/yolo")
fun getYolo(): ResponseEntity<String> {
return ResponseEntity.ok("yolo")
}

@ResponseBody
@GetMapping(produces = [APPLICATION_JSON_VALUE])
fun getKontaktinfo(@RequestHeader(NAV_PERSONIDENT_HEADER) fnr: String): ResponseEntity<Kontaktinfo> {
Expand Down Expand Up @@ -70,4 +63,4 @@ class KontaktinfoController(
}
}
}
}
}

0 comments on commit 1649e1f

Please sign in to comment.