לאחר מכן, עליך לספק את אימות חשבון השירות כאסימון רשת. אם מתקשרים אל
SAS Portal API באופן ישיר, למשל באמצעות בקשת HTTP עם cURL, מעבירים את האימות כאסימון רשת בכותרת Authorization. כדי לקבל אסימון רשת
בחשבון השירות, יש לבצע את הפעולות הבאות:
[null,null,["עדכון אחרון: 2022-09-26 (שעון UTC)."],[[["Service accounts are the recommended authentication method for integrating with the SAS Portal API, requiring the creation of a service account with a JSON key and granting it the \"Project Owner\" role."],["Authentication to the SAS Portal API is done using a Bearer token obtained through the `gcloud` command-line tool by activating the service account and printing an access token."],["When calling the API, include the Bearer token in the `Authorization` header of your request along with the `X-Goog-User-Project` header specifying your Google Cloud Project ID."]]],["The key actions are creating a service account with a JSON key, granting it the \"Project Owner\" role, and obtaining a Bearer token for API authentication. This is done by installing the `gcloud` tool, authenticating the service account using `gcloud auth activate-service-account --key-file`, and generating an access token via `gcloud auth print-access-token`. This token should then be included in the `Authorization` header when making API calls as a Bearer token.\n"]]