Finish merge
This commit is contained in:
commit
a540e63bf3
4 changed files with 77 additions and 42 deletions
20
testing/client-test-export-dooris.sh
Executable file
20
testing/client-test-export-dooris.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Use curl to run a test export of Dooris ssh keys
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
ACCESS_TOKEN="$(curl -s --request POST \
|
||||
--url http://localhost:8080/realms/testing/protocol/openid-connect/token \
|
||||
--header 'content-type: application/x-www-form-urlencoded' \
|
||||
--data scope=openid \
|
||||
--data client_id=export-dooris-ssh-keys \
|
||||
--data client_secret=export-dooris-ssh-keys-secret \
|
||||
--data grant_type=client_credentials | jq --raw-output .access_token -)"
|
||||
|
||||
curl -s --request GET \
|
||||
--url http://localhost:8080/realms/testing/attribute-endpoints-provider/export/dooris-ssh-keys \
|
||||
--header "authorization: Bearer ${ACCESS_TOKEN}" \
|
||||
--header "content-type: application/json" | jq . -
|
||||
Loading…
Add table
Add a link
Reference in a new issue