Authentication for API calls with trigger services
You need an authorization file to call other API Gateway services from a storage, scheduled and queued service.
This is how you get an authorization file
- Log in to API Gateway Portal.
- Click Authorized Apps.
- Click the large + in the top.
- Choose an appropriate name, like 'BaaS <your service>.'
- Click the 'Backend Service' radio button.
- Choose an appropriate Description.
- Save.
- Click Download credentials.
- Toggle 'Create Service Account'.
- In the full name area, select a user with the needed access rights, preferably a dedicated service account.
- Click Download.
You should now have a file downloaded with extension '.ionapi'.
This is how you put the authorization config into your deployed service.
- Expand 'Backend As A Service' in the left menu in the API Gateway portal.
- Click Services.
- Open the service you want to update.
- Upload your .ionapi file into the configuration named <strong> BAAS_IONAPI_AUTH</strong>. (If that is missing, it needs to be added in the manifest. See the manifest documentation for an example.)
- Click Submit.