OAuth 認証の使用
OAuth 2.0の仕組みでZuora へ認証することができます。本製品 は、client_credential グラントタイプを使用するため、 トークンの生成に必要なものはOAuthClientId とOAuthClientSecret のみです。
生成にはHTTP リクエストを一度行うだけでよく、ログインプロンプトを開く必要はありません。
アプリの作成
まず、Zuora UI 上でOAuth クライアントを作成してください。そのためには、Zuora テナントの管理者である必要があります。
これは一度きりの操作です。
- In your Zuora tenant, select Administration > Manage Users from the Profile & Settings menu, then create a user. Apps that use OAuth to authenticate to your Zuora tenant will perform actions as this user. Zuora recommends that you create an API user specifically for this purpose.
- On the Users page in your Zuora tenant, select the user you created in the previous step, then create an OAuth client for the user.
- 今後使用するため、クライアントID とクライアントシークレットを控えておきます。
Zuora への認証
次の接続プロパティを設定して、接続してください。
- OAuthClientId: アプリ設定のクライアントID に設定。
- OAuthClientSecret: アプリ設定のクライアントシークレットに設定。
- Tenant: Zuora テナントに設定。使用可能なオプションは:USProduction、USAPISandbox、USPerformanceTest、EUProduction、EUSandbox。デフォルトでは、USProduction テナントを使用します。
- URL: This is required only in case you have a US Production Copy environment. If this proprty is provided, the value of Tenant property has no effect in authentication process.
接続すると、本製品 がOAuth プロセスを完了します。