diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-05-21 11:58:10 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-05-21 11:58:10 +0200 |
commit | b62855b2c6b713babef3757845d22532d216c39e (patch) | |
tree | ad9e076fd011d2913bb7a638a2eef0a5a6b499c7 | |
parent | ee1bdd159da4dbd159eb1a3ea202c848eab3300d (diff) |
#761 Fix bug in OpenGnsys 3 Installer when creating authorization service.
-rwxr-xr-x | installer/opengnsys_installer.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |