Automatize application configuration via scripts
Management of application scopes via scripts uses the Genero Identity Provider (GIP) GetToken and deploy command line tools.
This procedure allows you to manage
scopes on a deployed application on a remote GAS via the console or a script. For example, you need
to update the scopes for users accessing an application. For more information on managing scopes,
see Manage authorization scopes.
Note: This procedure does not apply to
Web services. There the scopes are provided in the code via the
WSScope
attribute
and can not be changed without recompiling the service application. For more information about
WSScope
and how it is implemented in a Genero REST Web service, see the
WSScope topic in the Genero Business Development Language User Guide.
Before you begin
-
If not already done, you need to register a scripting application using the ConsoleApp (the
menu option) in order to generate aCLIENT_ID
andSECRET_ID
for the application. See step 1. -
You will also need to have the
CLIENT_ID
of the secure application you are configuring. You can get this using the ConsoleApp (the menu). For details, see Manage applications.
Test the application functions as expected. Check if users from the added scope ("deployment" in our example) can access the application.