Authentication Mode Selection
API Providers
The following authentication methods are available for calling APIs:
- App authentication (recommended)
API callers will be authenticated using the AppKey and AppSecret issued by API Gateway.
- APIs with App authentication can be released on the marketplace.
- App authentication is oriented to the tenants of API Gateway.
- IAM authentication
Token and AK/SK authentication is supported.
- Token authentication: Requests are authenticated using a token. This authentication mode is recommended because it requires no SDK signatures.
- AK/SK authentication: Requests are signed using an AK and SK in the same way as in App authentication mode.
APIs called through IAM authentication cannot be released to the marketplace. IAM authentication is oriented to the tenants of API Gateway.
- Custom authentication
You can compile a function in FunctionGraph and use it for authentication. For details about API calling, see Creating a Function for Frontend Custom Authentication.
- None
APIs with None authentication require no authentication of users accessing these APIs.
- APIs with None authentication cannot be released on the marketplace.
- It is intended for all public network users.
API Callers
- If you obtain an API from the marketplace, get the API usage guide to confirm the authentication mode, and then call the API according to the instructions in this document.
- If you obtain an API from an offline channel, contact the API provider to confirm the authentication mode, and then call the API according to the instructions in this document.
Last Article: Overview
Next Article: Calling APIs Through App Authentication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.