-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
La til klasser for å snakke med poao-tilgang i tilgangskontroll
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
apps/tilgangskontroll/src/main/kotlin/no/nav/paw/tilgangskontroll/StartApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package no.nav.paw.tilgangskontroll | ||
|
||
fun main() { | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
.../paw/tilgangskontroll/poaotilgang/api/NavAnsattTilgangTilEksternBrukerPolicyInputV2Dto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
7 changes: 7 additions & 0 deletions
7
apps/tilgangskontroll/src/main/kotlin/no/nav/paw/tilgangskontroll/poaotilgang/api/Pid.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
11 changes: 11 additions & 0 deletions
11
...src/main/kotlin/no/nav/paw/tilgangskontroll/poaotilgang/api/PolicyEvaluationRequestDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
5 changes: 5 additions & 0 deletions
5
...lgangskontroll/src/main/kotlin/no/nav/paw/tilgangskontroll/poaotilgang/api/TilgangType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |