After you create an external credential that uses JWT authentication, create principals for it. Use the principal to grant access to your external credential.
Required Editions
| Available in: Lightning Experience in Enterprise, Performance, Unlimited, and Developer Editions with Loyalty Management - Growth or Loyalty Management - Advanced. |
- On the Named Credentials page, click External Credential.
- Select the external credential that you created.
- Scroll to Principals and click New.
-
Complete these fields.
Field Value Parameter Name Enter the name of the principal. Sequence Number Assign a sequence number. A sequence number specifies the order of principals to apply when a user participates in more than one principal.
Identity Type OAuth 2.0 Scope Any applicable OAuth scopes. Separate multiple scopes with a space. For a wallet user, use this scope: https://www.googleapis.com/auth/wallet_object.issuer https://www.googleapis.com/auth/cloud-platform.
- Save your principal.
-
Scroll to JWT Claims and click Edit.
For more information on setting up JWT claims, see Set Up JWT Claims for External Credentials.
- On the Claims modal window, Click Add.
-
Complete these fields.
Field Value Name scope Use lowe case.
Type JWT Body Claim Value Use the scope of the principal that you created. - Modify the value of the kid claim. Use the private_key_id from the JSON file.
- Save the claim.