Authentication tokens allow secure, programmatic access to EarthRanger for API communications and third-party integrations. This guide walks you through the process of creating and using an authentication token tied to a service account.
Before You Begin
You’ll need a configured Service Account.
See: Creating and Managing Service Accounts
Step 1: Create an Authentication Token
-
Access the DAS Access Tokens Page
- Log in to the Earthranger Admin page.
- Navigate to DAS Configuration > DAS Access Tokens.
-
Add a New Access Token
- Click Add Access Token in the top-right corner.
-
Generate the Token
- Enter a random 40-character alphanumeric string as the token. This means using only letters (A-Z, a-z) and numbers (0-9), avoiding special characters like @, #, or %.
- You can:
- Use an online randomizer tool, such as Random String Generator. Ensure the output is restricted to letters and numbers.
- Manually modify an existing token to create randomness by replacing several characters with new alphanumeric values.
- You can:
- Enter a random 40-character alphanumeric string as the token. This means using only letters (A-Z, a-z) and numbers (0-9), avoiding special characters like @, #, or %.
-
Set Expiration Date and Time
- Select a Date for when the Authentication token will expire (e.g.2049-01-01)
- Or choose a date from the calendar.
- Select Now in the time slot.
-
Set Scope details
- Type “read write” in the Scope field.
-
Select the User for the Token
- Click the search icon next to User.
- Search for the relevant service account (e.g., "Integration Service Account").
- Select the service account.
-
Set Token Application
- Select the application associated with this token. If the application does not exist, contact a support team member that can help you create the DAS Application.
- Once the information is complete, click Save.
Step 2: Use and Secure the Token
Once the authentication token is created:
-
Deliver the Token Securely
- Provide the token to the relevant application or integration (e.g., Gundi, API access).
- Ensure the token is stored securely to prevent unauthorized access.
-
Integrate the Token
- Use the token in the API or integration configuration as required.
- Refer to the integration's documentation for specific implementation details.
If you need help managing other user types, check out Managing Users in EarthRanger Admin.
Next in this series: Exporting and Preparing EarthRanger Data