> ## Documentation Index
> Fetch the complete documentation index at: https://docs.airmdr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Astrix

> Astrix Networks is a non-human identity security platform supports on securing non-human identities (NHIs). NHIs include service accounts, API keys, and other machine-to-machine credentials that often have extensive access permissions and can pose significant security risks if not properly managed.​

### Astrix's OAuth 2.0 authentication system Integration

To integrate your application with Astrix's OAuth 2.0 authentication system, you will need to obtain specific credentials and endpoints:​

1. **Auth URL**: The URL where users are directed to authorize your application.​
2. **Base URL**: The root URL for Astrix's API endpoints.​
3. **Client ID**: A public identifier for your application, provided when you register your app with Astrix.​
4. **Client Secret**: A confidential key used alongside the Client ID to authenticate your application.​
5. **Audience**: Identifies the intended recipient(s) of the access token, ensuring it's used for the correct API.​

### Generate Astrix OAuth 2.0 authentication credentials

<Steps>
  <Step title="Register Your Application with Astrix">
    1. Go to Astrix [developer Portal](https://astrix.security/).
    2. Provide the required details about your application
       * Name of the application,
       * Description of the application,
       * Website URL.​
    3. Upon successful registration, Astrix will issue
       * **Client ID**
       * **Client Secret**
  </Step>

  <Step title="Determine the Auth URL and Base URL">
    1. The **Auth URL** is typically provided in Astrix's OAuth 2.0 documentation. It's the endpoint where users will authenticate and authorize your application.​
    2. The **Base URL** is the root endpoint for Astrix's APIs. This is also usually specified in their API documentation.​
  </Step>

  <Step title="Define the Audience">
    1. The **Audience** parameter ensures that the access token is intended for the correct API.​
    2. Astrix's documentation will specify the expected audience value. It's often a URL or URI identifying the API resource.​
    3. When making authorization requests, include the audience parameter to specify the intended recipient of the token.​
  </Step>
</Steps>

### Evaluate Auth Token with credentials

Open **cURL** and run the following command to check if your API Access is working:

**Example cURL request:**

```

curl -X POST "https://<your_auth_url>" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "audience": "YOUR_AUDIENCE"
  }'
```

### Configure Astrix in AirMDR Integrations Dashboard

1. Navigate to [AirMDR](https://app.airmdr.com/auth/login), provide the credentials and click **Login.**

   <img src="https://mintcdn.com/airmdr/wnBXbVlE7mmN9W6R/images/Datadog11.png?fit=max&auto=format&n=wnBXbVlE7mmN9W6R&q=85&s=94afec6835b90abcec516831e584184f" alt="" width="443" height="568" data-path="images/Datadog11.png" />
2. Navigate to the AirMDR Integrations Dashboard in the left navigation pane and select **Integrations.**

   <img src="https://mintcdn.com/airmdr/wnBXbVlE7mmN9W6R/images/Duo7.png?fit=max&auto=format&n=wnBXbVlE7mmN9W6R&q=85&s=eb761cfacb91ef3d08a6f7994022f6d5" alt="images/Duo7.png" width="246" height="381" data-path="images/Duo7.png" />
3. Use the search option, enter the keyword "**Astrix**", select the **Connections** tab, and click **Add New Connection**.

   <img src="https://mintcdn.com/airmdr/Dy2vQsFs8_RGqrwB/images/Astrix3.png?fit=max&auto=format&n=Dy2vQsFs8_RGqrwB&q=85&s=76f64cd63eb3b7b86e8dbb5e1acf8e2a" alt="Astrix3 Pn" width="2102" height="1234" data-path="images/Astrix3.png" />
4. Enter an unique name to the **Instance** (e.g., your org name-Astrix) and brief **Description** to easily identify the user connection by AirMDR.
5. Enter the generated **Auth URL, Base URL, Client ID, Client Secret** and the **Audience** in the Authentication Details field params, and click **Save.**

   <img src="https://mintcdn.com/airmdr/Dy2vQsFs8_RGqrwB/images/Astrix4.png?fit=max&auto=format&n=Dy2vQsFs8_RGqrwB&q=85&s=0d9f3f5949f77af8989448987e523617" alt="Astrix4 Pn" width="1494" height="1468" data-path="images/Astrix4.png" />
