Create and grant a scope to SAP Job Scheduling service.
You've created an xsuaa service instance and bound it to the application.
For more information, see Getting Started.
For the service plan standard, SAP Job Scheduling service uses User Account and Authentication (UAA) to facilitate the OAuth 2.0 authorization for job action endpoints. The action endpoint is secured via OAuth 2.0 scopes, hence, the application must grant a scope to the SAP Job Scheduling service.
The following steps provide an example.
-
To grant scopes to SAP Job Scheduling service, open the
xs-security.json
file that is used for the xsuaa service instance bound to the application and add the following to thescopes
section:Example
xs-security.json
file, scope section"scopes": [{ "name": "$XSAPPNAME.JOBSCHEDULER", "description": "Job Scheduler Scope", "grant-as-authority-to-apps": ["$XSSERVICENAME(<jobscheduler instance name>)"] }]
-
Update the xsuaa service instance with the updated
xs-security.json
:cf update-service <xsuaa-instance-name> -c xs-security.json
Related Information