Skip to content

Commit

Permalink
systemuser
Browse files Browse the repository at this point in the history
  • Loading branch information
mettok committed Dec 6, 2024
1 parent b891b61 commit 8aef9c6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/main/kotlin/MaskinportenClientConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,18 @@ class MaskinportenClientConfigPkey(
.issueTime(Date(currentTimestamp * 1000))
.expirationTime(Date((currentTimestamp + 60) * 1000))
.claim("scope", scope)
.claim("consumer_org", consumerOrgNr)
.claim(
"authorization_details",
listOf(
mapOf(
"type" to "urn:altinn:systemuser",
"systemuser_org" to mapOf(
"authority" to "iso6523-actorid-upis",
"ID" to "0192:$consumerOrgNr"
)
)
)
)
.jwtID(UUID.randomUUID().toString())
.build()

Expand All @@ -100,7 +111,7 @@ class MaskinportenClientConfigPkey(
* @param clientJwk Det er JWK som skal brukes til å signere JWT tokenet
*
*/
class MaskinportenSimpleAssertion(
class MaskinportenClientConfigSimpleAssertion(
override val scope: String,
override val issuer: String,
override val aud: String,
Expand Down

0 comments on commit 8aef9c6

Please sign in to comment.