External Authentication
External authentication enables developers to authenticate HoopAI Platform users using their credentials with the developer’s system before installing the application on the HoopAI Platform. This feature allows you to configure custom authentication fields as necessary, such as:- API key
- Username
- Password
- OAuth 2.0
How to Enable External Authentication
Navigate to Developer Marketplace > My Apps, select your app, and click on the External Authentication tab in the navigation pane. Both API Key/Basic Auth and OAuth 2.0 are supported.OAuth 2.0
This section outlines the process of configuring OAuth 2.0 authentication for external calls within Marketplace apps. Currently, only the Authorization Code grant type is supported. The HoopAI Platform manages token pairs and includes them in custom actions and triggers, enabling a wide range of integration possibilities.1. Configuration
Follow these steps to configure OAuth 2.0 authentication: a. App Details and Scopes Provide the name of your third-party app, client key, and client secret. Specify the required scopes for your third-party integration. Separate scopes with spaces or commas. Include only the necessary scopes for the integration. b. Redirect URL Copy the redirect URL provided in your Marketplace app configuration and paste it into your third-party app’s configuration settings. c. Authorization URL Configuration Configure the authorization URL. The Marketplace pre-populates some standard fields, which you can adjust based on the third-party app’s documentation. Thestate parameter is a standard OAuth 2.0 security feature that prevents authorization requests from being initiated by unauthorized parties. Ensure this parameter is not modified for seamless integration.
d. Access and Refresh Token Request Configuration
Configure the access and refresh token request settings according to the third-party app’s documentation. The Marketplace pre-populates some standard configurations, which you can modify as needed. Click More Options to add any additional call details required.
Example expected response:
GET call requiring no special configuration) to validate the token. The HoopAI Platform will call this API to check token validity. If the test fails and auto-refresh is enabled, the Marketplace will attempt to refresh the token.
2. Testing the Integration
Developers can test their configurations using the built-in test functionality. This initiates the OAuth process with the third-party app. Once the token is generated, the configured test API is called. Ensure all configurations are saved before testing.OAuth Parameters Reference
Token Parameters Reference
API Key or Basic Auth
There are three sections available for API Key or Basic Auth configuration.Section 1: Configure Your Fields
This section contains all the fields that developers want to ask from users while installing the application. To add a field to the user’s authentication form, configure the following:A maximum of three fields is supported.
Section 2: Configure Authentication Endpoint
This section lets you configure the HTTP request template made when a user tries to install the application.
To pass user-entered values such as an API key, username, or password, access them via the
userData object using {{userData.key}}. For example, if your field’s key is apiKey, access the value with {{userData.apiKey}}.
For external auth verification to complete, the authentication URL must return one of the following status codes: 200, 201, 202, 204.
Section 3: Test Your Authentication
This section allows developers to test the authentication flow with sample values.External Auth Request Parameters
In
POST, PATCH, and PUT requests, these fields are sent in the request body. In GET requests, they are passed as query parameters.