--- title: "Authentication Prerequisites" slug: "prerequisites-for-authentication" updated: 2026-10-23T02:58:43Z published: 2026-10-23T02:58:43Z canonical: "docs.crossworkassurance.cisco.com/prerequisites-for-authentication" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Authentication Prerequisites Before configuring secure RESTCONF or gNMI connectivity, ensure that you have established the necessary authentication tokens and administrative access. Crosswork Assurance utilizes a dual-authentication strategy: mTLS for RESTCONF and Personal Access Tokens (PAT) for gNMI. #### General Requirements You must possess at least one of the following to authenticate with the Crosswork Assurance APIs: - **Bearer Token:** Obtained via standard OAuth2 flow. - **PAT Token:** Created via the Zitadel UI or Management API. - **Administrative Access:** Access to the Zitadel Admin UI at `https://<PCA_IP>:3443`. ### Create a PAT Token Personal Access Tokens are required for gNMI streaming and can be generated manually or programmatically. #### Option A: Via Zitadel UI (Manual) 1. Open your browser and navigate to: `https://<PCA_IP>:3443` 2. Log in with your administrative credentials. 3. Navigate to **Users** and select your specific user profile. 4. Go to the **Personal Access Tokens** section. 5. Click **Create New Token**. 6. Set an expiration date and copy the token immediately. **Note:** The token is only displayed once. #### Option B: Via API (Automated) To create a PAT token programmatically, you must first obtain a Bearer token. Use the following two-step process: ``` # Step 1: Retrieve your User ID curl -sk -X GET "https://:3443/auth/v1/users/me" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" # Step 2: Create the PAT token using the User ID from Step 1 curl -sk -X POST "https://:3443/management/v1/users//pats" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "expirationDate": "2099-12-31T23:59:59Z" }' ``` ### API Endpoint Summary It is critical to use the correct port and endpoint for each specific operation. Refer to the table below for the API mapping: | Operation | Endpoint | Port | Auth Method | | --- | --- | --- | --- | | Sign CSR | /distribution/sign-csr | 443 | Bearer/PAT Token | | Validate mTLS | /api/v1/auth/cert/validate/authorization | 443 | mTLS Certificate | | RESTCONF API | /restconf/data/... | 443 | mTLS or Bearer/PAT | | gNMI | gRPC path | 443 | PAT or User/Pass | | Zitadel User API | /auth/v1/users/me | 3443 | Bearer Token | **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)