Created
August 23, 2024 20:18
-
-
Save akoserwal/45ce71fcd3358c79894284dd081a20e1 to your computer and use it in GitHub Desktop.
Create-Service-Account
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
CREATE=`curl -sk --data-raw '{ | |
"authorizationServicesEnabled": false, | |
"clientId": "admin-sa", | |
"description": "admin-sa", | |
"name": "admin-sa", | |
"secret":"admin-sa", | |
"directAccessGrantsEnabled": false, | |
"serviceAccountsEnabled": true, | |
"publicClient": false, | |
"protocol": "openid-connect" | |
}' --header "Content-Type: application/json" --header "Authorization: Bearer $TOKEN" $KEYCLOAK_URL/admin/realms/$REALM/clients` | |
echo $CREATE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment