For a quick demo of asset tokens, you can use the Asset Token Explorer demo app. The demo app simplifies your initial experience of getting an access token and exchanging it for the asset token.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions |
| User Permissions Needed | |
|---|---|
| To manage, create, edit, and delete OAuth apps: | Manage external client apps |
Note We don’t recommend using this demo app in an actual implementation.
- In a browser, go to https://asset-tokens.herokuapp.com/.
- Enter your My Domain login URL or Experience Cloud site URL. Then click Validate URL to initiate OAuth authorization.
- For OAuth client ID, provide the consumer key from your external client app.
-
For OAuth client secret, provide the consumer secret from your external client
app.
Note To access the consumer key and consumer secret, from the App Manager, find the external client app and select View from the dropdown. Then click Manage Consumer Details. You're sometimes prompted to verify your identity before you can view the consumer key and consumer secret. - Click Validate App Credentials.
- Click Login to your Experience Cloud site.
- Log in to your Experience Cloud site as a customer.
- Approve your external client app.
- Click Exchange Authorization Code for an access token.
Request the Asset Token
If you’re using the Asset Token Explorer demo app to request the asset token, follow these steps.
- If your access token is expired, request a new one.
- Review the sample data that is automatically filled in for your asset token request. Feel free to modify it. In an actual implementation, the asset’s metadata become the claims in your actor token.
- Click Build Actor Token.
- Review the resulting actor token with your data transformed into the actor token claims.
- Click Next.
- Review the protocol for exchanging your actor token and access token for an asset token.
- Click Next.