1. Home
  2. ...
  3. API Catalog
  4. API Identity

API Identity

A type of API used to facilitate authentication via the OAuth Password flow.

API Identity is a type of API that we created just to facilitate authentication via the OAuth Password flow. To understand the Password flow in detail and see the diagram of how it works, see the FAQ What is an API Identity and how can I configure it?.

NOTE

An API Identity must be registered if you want to use the OAuth Password flow. You can see more about this flow here.

How it works

When an app calls an API linked to an API Identity, this is what happens: when the API requires an access token generated with the Password flow, a request is made to the API Identity, which handles the call and sends it to the authentication endpoint.

NOTE

If the backend that validates the credentials requests more information than username and password, you can use interceptors in the API Identity flow to compose a body with the requested information. For example, you can retrieve data from an app's extra fields and include it in the body.

A regular API can be associated with more than one API Identity, and an app may be associated with more than one API. In these cases, the authorisation service will make requests for each associated API Identity, one at a time. If the password is valid for a given API Identity, the authorisation service will stop executing the remaining requests. In case the password isn't valid for any API Identity, the access token won't be generated.

When the API Identity makes a request to the authentication endpoint, the content that is returned will be passed to the access token request in the Password flow, allowing more possibilities in password authentication. If the call to the API Identity returns a field in the body with the key extraInfo, the content of that field will be present in the extraInfo of the access token generated.

Creating an API Identity

To create a new API Identity, select the option CREATE API IDENTITY in the bottom right corner of the APIs page (in the menu that opens up when you hover the cursor over the + floating button).

The API creation page will open and you must fill out the required information along the different steps, as in the case of creating a regular API:

NOTE

The API Destination (which you can configure clicking on the Icon icon on the Flows creation step) should be the endpoint where the username and password will be verified.

Unlike regular APIs, API Identities have the Identity step, which enables users to select APIs that use the OAuth and/or Access Token Validation interceptors, with the Password option enabled.

Once this is done, you can publish your API after the creation steps and it will be ready to be used.

Configuration and Usage Example

To make the process of setting up and using the API Identity easier, our Support team has created an article with an example. You can access it here.

NOTE

This article will be made available in English soon.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more