ドキュメント

​
​

Development

User Acquisition

Monetization

産業

Self-Hosted Deployment

Amazon Web Services

Microsoft Azure

On premises

vpctl

Self-Hosted Deployment

このページは選択した言語では使用できません。
​
​
Self-Hosted Deployment
  • Overview
  • Amazon Web Services
  • Microsoft Azure
  • On premises
  • Administration
    • Access the Keycloak admin console
    • Complete initial solution onboarding
    • Single sign-on
    • Organizations and projects
    • Users and service accounts
      • Create a user
      • Manage access for a user
      • Create a service account
      • Manage access for a service account
      • Manage keys for a service account
      • Authenticate with a service account
      • Delete a service account
    • Groups
    • Licensing
    • upc-cli tool
    • Custom branding
  • Security
  • vpctl
  1. Self-Hosted Deployment (previously called Unity Virtual Private Cloud)
  2. Administration
  3. Users and service accounts

Authenticate with a service account

Use Basic or Bearer authentication when accessing APIs with a service account
読み終わるまでの所要時間 1 分
最終更新 1ヶ月前

You can use either Basic or Bearer authentication to access Unity service API endpoints with a service account. In both cases, use a key ID as the client name and the matching secret as the client secret. Don't use the service account name or its UUID to authenticate.
All keys that belong to the same service account are interchangeable and resolve to the same service account. Read more about managing keys for a service account.

Bearer token authentication

To use Bearer authentication, first obtain a JWT token for the service account, and then pass it in the
Authorization
header of your API request. To obtain the token, follow the standard OAuth 2.0 Client Credentials flow by sending an HTTP POST request to the Keycloak token endpoint:
https://<SolutionFQDN>/auth/realms/unity/protocol/openid-connect/token
Replace
<SolutionFQDN>
with the fully qualified domain name (FQDN) of the solution.

Example

The following sample request uses cURL to obtain a JWT token:
curl --request POST \ --url 'https://<SolutionFQDN>/auth/realms/unity/protocol/openid-connect/token' \ --header 'content-type: application/x-www-form-urlencoded' \ --data grant_type=client_credentials \ --data client_id=<KeyId> \ --data client_secret=<Secret>
Replace the
<KeyId>
and
<Secret>
strings with the ID and the secret of one of the keys that were created for the service account.

Copyright © 2026 Unity Technologies
法規事項プライバシーポリシークッキーDocumentation Terms of Use私の個人情報を販売または共有しないプライバシーに関する選択 (クッキー設定)

"Unity" の名称、Unity のロゴ、およびその他の Unity の商標は、米国およびその他の国における Unity Technologies またはその関係会社の商標または登録商標です (詳しくはこちら)。その他の名称またはブランドは該当する所有者の商標です。

一部のページは利便性向上のため機械翻訳を使用しており、内容に不正確な表現が含まれる場合があります。内容に齟齬または不一致が生じた場合は、英語版を正本とします。

  • このページ
    • Bearer token authentication

      • Example


このページの問題を報告する