Skip to main content

Auth token generation

Overview

This guide provides detailed instructions for auth token generation, focusing on a single comprehensive action: creating an authentication token for API access.

Benefits

Auth token generation streamlines DNS management by strengthening access control and auditing capabilities. It allows administrators to define who can access or modify DNS records, protecting against unauthorized changes and ensuring complete traceability. With DigiCert®​​ DNS, organizations can mitigate risks related to DNS spoofing, token expiration, and data integrity. Centralized token management increases transparency and accountability, providing secure, scalable access to DNS records and enhancing the overall efficiency of DNS operations.

Procedure

Generate an authentication token

Avis

This procedure uses the API key generated in an earlier procedure to request an authentication token in Postman. The token is valid for one hour and must be refreshed before it expires. If the token is not regenerated in time, API endpoints cannot be tested. If the user no longer has access to their API key when the token expires, a new API key must be generated to obtain a new token.

To test this function, call this API endpoint: POST /auth/login

  1. Log in to Postman.

  2. In the My Workspace sidebar, navigate to DigiCert DNS > auth > login > POST /auth/login:

    1. Go to the Authorization tab, and in the Token field, paste your API key.

    2. Click Send.

    3. In the response window, copy the authentication token.

  3. In the My Workspace sidebar, select DigiCert DNS:

    1. Go to the Auth tab, and paste your authentication token into the Token field.

    2. Under the Add variable to heading, select Collection.