mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
connect
This commit is contained in:
@@ -242,7 +242,7 @@ function createClient() {
|
||||
"grant_types": [ "client_credentials" ],
|
||||
"response_types": [ "code" ],
|
||||
"metadata": {
|
||||
"note": "$note"
|
||||
"note": "$note",
|
||||
"searchUsername": ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,8 +170,8 @@ function manage_client() {
|
||||
note=$(echo "$request" | jq -r .note)
|
||||
log "Performing client '$op' for client with name '$name' and note '$note'"
|
||||
response=$(so-client "$op" --name "$name" --note "$note" --json)
|
||||
webResponse=$response
|
||||
exit_code=$?
|
||||
webResponse=$response
|
||||
;;
|
||||
delete)
|
||||
client_id=$(echo "$request" | jq -r .id)
|
||||
@@ -190,8 +190,8 @@ function manage_client() {
|
||||
client_id=$(echo "$request" | jq -r .id)
|
||||
log "Performing '$op' operation for client '$client_id'"
|
||||
response=$(so-client "$op" --id "$client_id" --json)
|
||||
webResponse=$response
|
||||
exit_code=$?
|
||||
webResponse=$response
|
||||
;;
|
||||
update)
|
||||
client_id=$(echo "$request" | jq -r .id)
|
||||
|
||||
Reference in New Issue
Block a user