Updated on 2023-03-16 GMT+08:00

Introduction

In addition to IAM and app authentication, APIG also supports custom authentication with your own system, which can better adapt to your business capabilities.

This chapter guides you through the process of creating a FunctionGraph API that uses a custom authorizer.

Solution

  • Log in to the FunctionGraph console, and create a function for custom authentication.
  • Create a service function.
  • Create an API group on the APIG console.
  • Create an API and configure a custom authorizer and a FunctionGraph backend for it.
  • Debug the API.

    After you complete the operations in this tutorial, your Huawei Cloud account will have the following resources:

    1. An API group storing APIs
    2. A custom authentication function
    3. A service function
    4. An API with a custom authorizer and a FunctionGraph backend