Skip to content

Commit bebb7b0

Browse files
try to create a new client, no attributes
1 parent 5be9bb1 commit bebb7b0

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

.github/workflows/roundtrip/config-demo-idp.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,13 @@ kcadm.sh create clients -r opentdf \
4242
-s 'protocolMappers=[{"name":"aud","protocol":"openid-connect","protocolMapper":"oidc-audience-mapper","consentRequired":false,"config":{"access.token.claim":"true","included.custom.audience":"http://localhost:65432"}}]' \
4343
-s 'attributes={"dpop.bound.access.tokens":"true"}'
4444

45+
kcadm.sh create clients -r opentdf \
46+
-s clientId=testclient \
47+
-s secret=secret \
48+
-s enabled=true \
49+
-s standardFlowEnabled=true \
50+
-s serviceAccountsEnabled=true \
51+
-s 'protocolMappers=[{"name":"aud","protocol":"openid-connect","protocolMapper":"oidc-audience-mapper","consentRequired":false,"config":{"access.token.claim":"true","included.custom.audience":"http://localhost:65432"}}]'
52+
4553
kcadm.sh create users -r opentdf -s username=user1 -s enabled=true -s firstName=Alice -s lastName=User
4654
kcadm.sh set-password -r opentdf --username user1 --new-password testuser123

.github/workflows/roundtrip/encrypt-decrypt.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ _nano_test() {
1515
--kasEndpoint http://localhost:65432/kas \
1616
--ignoreAllowList \
1717
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
18-
--auth opentdf:secret \
18+
--auth testclient:secret \
1919
--output sample.txt.ntdf \
20-
encrypt "${plain}" \
21-
--attributes https://example.com/attr/attr1/value/value1
20+
encrypt "${plain}" #\
21+
# --attributes https://example.com/attr/attr1/value/value1
2222

2323
[ -f sample.txt.ntdf ]
2424

2525
npx "$2" --log-level DEBUG \
2626
--kasEndpoint http://localhost:65432/kas \
2727
--ignoreAllowList \
2828
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
29-
--auth opentdf:secret \
29+
--auth testclient:secret \
3030
--output sample_out.txt \
3131
decrypt sample.txt.ntdf
3232

@@ -46,19 +46,19 @@ _tdf3_test() {
4646
--kasEndpoint http://localhost:65432/kas \
4747
--ignoreAllowList \
4848
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
49-
--auth opentdf:secret \
49+
--auth testclient:secret \
5050
--output sample.txt.tdf \
5151
encrypt "${plain}" \
52-
--containerType tdf3 \
53-
--attributes https://example.com/attr/attr1/value/value1
52+
--containerType tdf3 #\
53+
# --attributes https://example.com/attr/attr1/value/value1
5454

5555
[ -f sample.txt.tdf ]
5656

5757
npx "$2" --log-level DEBUG \
5858
--kasEndpoint http://localhost:65432/kas \
5959
--ignoreAllowList \
6060
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
61-
--auth opentdf:secret \
61+
--auth testclient:secret \
6262
--output sample_out.txt \
6363
--containerType tdf3 \
6464
decrypt sample.txt.tdf

.github/workflows/roundtrip/wait-and-test.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,10 @@ if [ $1 = platform ]; then
162162
fi
163163
fi
164164

165-
echo "[WARN] Skipping cli tests"
166-
# if ! "${APP}"; then
167-
# echo "[ERROR] Encrypt/decrypt failure"
168-
# exit 2
169-
# fi
165+
if ! "${APP}"; then
166+
echo "[ERROR] Encrypt/decrypt failure"
167+
exit 2
168+
fi
170169

171170
if ! cd "${WEB_APP_DIR}"; then
172171
echo "[ERROR] Couldn't cd to web-app dir, [${WEB_APP_DIR}]"

0 commit comments

Comments
 (0)