事前準備
MuleSoft Anypoint Platform アカウントにサインアップする
このスーパーバッジユニットを完了するには、MuleSoft Anypoint Platform でホストされるアプリが必要です。ハンズオンチャレンジを完了するには、このアプリを Developer Edition 組織に接続する必要があります。
Anypoint Platformに登録します。
すでにアカウントをお持ちの場合は、「ユースケース」セクションに進んでください。
フォームにご記入ください。メールアドレスには有効なメールアドレスを入力してください。
フォームに入力したら、「Sign me up」をクリックします。
送信された電子メールリンクを使用してアカウントを認証します。
これで、MuleSoft Anypoint Platform アカウントと、このスーパーバッジ ユニット用に特別に構成された Salesforce 組織が準備完了です。
これも?
Anypoint Exchange ポータルにアクセスしてください。
MuleSoft Anypoint Platform のユーザー名とパスワードでログインします。
統合セキュリティタイルをクリックします。
ホーム ページに移動します。
「アクセスをリクエスト」ボタンをクリックします。
v1:18886395 API インスタンスを選択し、新しいアプリケーションを作成することを選択します。
任意のアプリケーション名を割り当てます。
作成されたら、クライアント IDとシークレットをメモしてください。これらは RG での認証に重要です。
あああ、これにかなり時間がかかりました。エラーになるし...
安全な調査のために外部認証情報を設定する
外部システムの認証情報を保存・管理するための外部認証情報を設定します。ユーザーに認証パラメータと適切なアクセス権限を割り当てます。
We can't find the special settings preinstalled in your org. Make sure you're using the special Developer Edition org made for this superbadge and linked in the scenario above.
We can't find the 'Secure Research' external credentials as per requirements.
要件どおりに「Secure Research」の外部資格情報が見つかりません。
We can't find the expected authentication parameters required by Research Guardian for the 'Secure Research' external credential.
「Secure Research」外部資格情報に対して Research Guardian が要求する認証パラメータが見つかりません。
このパラメータは説明もないなぁ。
何でだろう?
We can't find the permission set named 'ExtCred - MuleSoft'.
We can't find the appropriate access to the External Credential Principals.
外部資格情報プリンシパルへの適切なアクセスが見つかりません。
We can't find the appropriate access to the authentication tokens.
User External Credentialsのアクセス権が漏れていた...
Research Guardian の名前付き認証情報を設定する
名前付き資格情報 Research Guardian をコールアウト設定で構成し、機器のリストを正常に取得します。
We can't find the ResearchCallout certificate to make the Apex callout.
Headers for the callout request are incorrectly set in the ResearchServiceController Apex class.
コールアウト要求のヘッダーが ResearchServiceController Apex クラスで正しく設定されていません。
The ResearchServiceController class doesn't make a successful callout.
System.CalloutException: Field Secure_Research.client_secret does not exist. Check spelling.
パラメータってこれのこと?
このパラメータ名をClient IDとClient Secretにしていたのが間違えでしたね。
消して書き換えたら、権限セット側の設定も消えてエラーになったよ。
FATAL_ERROR System.CalloutException: We couldn't access the credential(s). You might not have the required permissions, or the external credential "Secure_Research" might not exist.