Authentication

Description

Authentication can be applied to this API, which provide access protections and will require privilege to use them. This is useful if you want to restrict some parts of the API to limited users and not make them public.

Example use case

  • Allow only registered users to access certain exclusive Actions.

  • Allow only administrators account to access sensitive Actions.

Supported types

  1. Basic Auth: Uses username and password pair to gain access for authorization, and will need to be attached on client request.

  2. OAuth2: Uses token, which the client needs to obtain from a specialized endpoint. Tokens need to be attached on client request.

How to use

  1. Highlight an Action or Folder you want to have Authentication on.

    • Action: Selecting an Action will apply protection on that particular item.

    • Folder: Selection a Folder will apply protection on all Actions inside them, including Action inside sub-folders.

    • To create new Authentication, select Edit.

    • Authentication can be used more than one time, and can be applied to multiple parts of the API.

  2. The following fields are available.

    • Name: a unique name to identify this Authentication.

    • Type: Basic Auth or OAuth2.

    • DB Connection: which database to use.

    • Table Reference: which table to use.

    • Username: which field to search for username.

    • Password: which field to search for password.

Note

Please create the desired database first in the Database module to usa it when configuring the Authentication.

Last updated