Skip to content

Commit

Permalink
La til klasser for å snakke med poao-tilgang i tilgangskontroll
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Dec 5, 2024
1 parent c145dd8 commit 5588f22
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package no.nav.paw.tilgangskontroll

fun main() {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package no.nav.paw.tilgangskontroll.poaotilgang.api

import java.util.UUID

data class NavAnsattTilgangTilEksternBrukerPolicyInputV2Dto(
val navAnsattAzureId: UUID,
val tilgangType: TilgangType,
val norskIdent: String
): PolicyInput
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package no.nav.paw.tilgangskontroll.poaotilgang.api

enum class PolicyId {
NAV_ANSATT_NAV_IDENT_SKRIVETILGANG_TIL_EKSTERN_BRUKER_V1,
NAV_ANSATT_NAV_IDENT_LESETILGANG_TIL_EKSTERN_BRUKER_V1,
NAV_ANSATT_TILGANG_TIL_EKSTERN_BRUKER_V2,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package no.nav.paw.tilgangskontroll.poaotilgang.api

import java.util.UUID

interface PolicyInput

data class PolicyEvaluationRequestDto<PI: PolicyInput>(
val requestId: UUID,
val policyInput: PI,
val policyId: PolicyId
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package no.nav.paw.tilgangskontroll.poaotilgang.api

enum class TilgangType {
LESE, SKRIVE
}

0 comments on commit 5588f22

Please sign in to comment.