Newer Version Available
CanvasRequest
When you use a signed request for authentication in your canvas app, you receive a CanvasRequest object in the initial POST message from Salesforce. This object contains fields related to the request, and also contains the Context and Client objects. The CanvasRequest object is returned in JSON format and contains the following fields.
| Field | Description |
|---|---|
| algorithm | The algorithm used to sign the request. |
| issuedAt | The timestamp when the oauthToken was issued. |
| userId | The context user’s ID. |
The following code snippet shows an example of the CanvasRequest object.