機械翻訳について

その他の一般的なエラーのトラブルシューティング

別のエラーが表示された場合は、接続をテストしてトラブルシューティングする最善の方法は、Postman、curlまたは別のAPI REST対応ツールを介してOAuthトークンを取得することです。 次の例は、curlを使用して構成をテストする方法を示しています:

# SSD identity provider
curl --location '<gateway_URL>/oauth/v1/tokens' --header 'x-app-key: <app-key>' --header 'Content-Type: application/x-www-form-urlencoded' --header 
'Authorization: Basic <base64_client_id:client_secret>' --data-urlencode 'username=<user_name>' --data-urlencode 'password=<password>' --data-urlencode 
'grant_type=password'
# OCIM identity provider
curl --location '<gateway_URL>/oauth/v1/tokens' --header 'x-app-key: <app_key>' --header 'enterpriseId: <enterprise_id>' --header 'Content-Type: 
application/x-www-form-urlencoded' --header 'Authorization: Basic <base64_client_id:client_secret>' --data-urlencode 'scope=<scope>' --data-urlencode 
'grant_type=client_credentials'
説明:
要素 説明
gateway_URL OHIP開発者ポータルで環境詳細に指定されているゲートウェイURL。
base64_client_id:client_secret base64でエンコードされたclient_idおよびclient_secret 両方の値は、OHIP開発者ポータルで環境の詳細に表示されます。
app_key OHIP開発者ポータル内のアプリケーション詳細で提供されるアプリケーション・キー。
user_name SSDアイデンティティ・プロバイダを使用している場合、OPERA Cloudで作成された統合ユーザー名。
password SSDアイデンティティ・プロバイダを使用している場合、OPERA Cloudで作成された統合ユーザー・パスワード。
scope OCIMアイデンティティ・プロバイダを使用している場合、OHIP開発者ポータルで環境の詳細に指定されるスコープ。
enterprise_id OCIMアイデンティティ・プロバイダを使用している場合、OHIP開発者ポータルで環境詳細に指定されているエンタープライズID。

ソリューション: curl、Postmanまたは別のツールでOAuthコールを実行してトラブルシューティングします。