forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
6.5 KiB
6.5 KiB
Authorizing Apps to Call an API
Scenario
APIs using app authentication can only be called by apps that have been authorized to call them.
Prerequisites
- You have created an API group and API.
- (Optional) You have created an environment.
- You have created an app.
Procedure
- Log in to the management console.
- In the navigation pane, choose Dedicated Gateways. Then click Access Console in the upper right corner of a dedicated gateway.
- In the navigation pane, choose API Publishing > APIs.
- Authorize apps to call an API. You can use one of the following methods:
- In the Operation column of the target API, choose More > Authorize App, and then click Select App.
- Select the target API, click Authorize App over the API list, and then click Select App.
- Authorize apps through the API details page.
- Click the name of the target API.
- Click the Authorization tab.
- Click Select App.
- Select an environment, search for and select desired apps, and click OK.
- After the authorization is complete, view the authorized apps on the Authorization tab page or the Authorize App page.
Follow-Up Operations
After you authorize an app to call an API, the API can be called using SDKs of different programming languages.
Parent topic: API Management