From b62855b2c6b713babef3757845d22532d216c39e Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Tue, 21 May 2019 11:58:10 +0200 Subject: #761 Fix bug in OpenGnsys 3 Installer when creating authorization service. --- installer/opengnsys_installer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index ff2605d8..297da723 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1076,7 +1076,10 @@ read -e APIID APISECRET <<< \ "$(php app/console doctrine:query:sql "SELECT random_id, secret FROM og_core__clients WHERE id=1;" | \ awk -F\" '$2~/^(random_id|secret)$/ {getline; printf("%s ", $2)}')" read -e CLIENTID CLIENTSECRET <<< \ - "$(php app/console opengnsys:oauth-server:client:create --no-ansi | \ + "$(php app/console opengnsys:oauth-server:client:create --no-ansi \ + --grant-type="password" --grant-type="refresh_token" \ + --grant-type="token" \ + --grant-type="http://opengnsys.es/grants/og_client" | \ awk 'BEGIN {RS=" "} /^(id|secret)$/ {getline; gsub(/,/, ""); printf("%s ", $0)}')" [ -f $jsonfile ] || echo "{}" > $jsonfile -- cgit v1.2.3-18-g5258