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