From 1d188907ced4f25f07b26c3b21afe2cc63aa4f64 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Thu, 19 Dec 2024 12:12:31 -0500 Subject: [PATCH] try with attributes --- .github/workflows/roundtrip/config-demo-idp.sh | 1 + .github/workflows/roundtrip/encrypt-decrypt.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/roundtrip/config-demo-idp.sh b/.github/workflows/roundtrip/config-demo-idp.sh index 6978f161..0912b0f3 100755 --- a/.github/workflows/roundtrip/config-demo-idp.sh +++ b/.github/workflows/roundtrip/config-demo-idp.sh @@ -48,6 +48,7 @@ kcadm.sh create clients -r opentdf \ -s enabled=true \ -s standardFlowEnabled=true \ -s serviceAccountsEnabled=true \ + -s 'attributes={"superhero_name":"thor","superhero_group":"avengers"}' \ -s 'protocolMappers=[{"name":"aud","protocol":"openid-connect","protocolMapper":"oidc-audience-mapper","consentRequired":false,"config":{"access.token.claim":"true","included.custom.audience":"http://localhost:65432"}}]' kcadm.sh create users -r opentdf -s username=user1 -s enabled=true -s firstName=Alice -s lastName=User diff --git a/.github/workflows/roundtrip/encrypt-decrypt.sh b/.github/workflows/roundtrip/encrypt-decrypt.sh index 8e42c8d9..fa0946ce 100755 --- a/.github/workflows/roundtrip/encrypt-decrypt.sh +++ b/.github/workflows/roundtrip/encrypt-decrypt.sh @@ -17,8 +17,8 @@ _nano_test() { --oidcEndpoint http://localhost:65432/auth/realms/opentdf \ --auth testclient:secret \ --output sample.txt.ntdf \ - encrypt "${plain}" #\ -# --attributes https://example.com/attr/attr1/value/value1 + encrypt "${plain}" \ + --attributes https://example.com/attr/attr1/value/value1 [ -f sample.txt.ntdf ] @@ -49,8 +49,8 @@ _tdf3_test() { --auth testclient:secret \ --output sample.txt.tdf \ encrypt "${plain}" \ - --containerType tdf3 #\ - # --attributes https://example.com/attr/attr1/value/value1 + --containerType tdf3 \ + --attributes https://example.com/attr/attr1/value/value1 [ -f sample.txt.tdf ]