Content Launch
ClearXP implements the Rustici Launch Mechanism when passing the authenticated user to learning content for the purpose of storing data in the LRS. This is a popular mechanism supported by most authoring tools.
When content is launched from the LRS, the launch page will be loaded with the following query parameters:
| Query Parameter | Description |
|---|---|
| endpoint | The base path for all xAPI requests. |
| auth | An authentication token to be sent with every xAPI request. e.g. |
| actor | The actor object representing the user launching the content. e.g. |
| activity_id | The root activity ID for the content being launched. This should be used as the parent or grouping for all statements. |
| registration | An optional registration value to be sent in the context field of any statements generated. e.g. |
For the above example, assuming the content being launched existed at the following address – https://content.example.com/index.html – then the launch URL would look like the below (new lines added for readability):
https://content.example.com/index.html ?endpoint=https%3A%2F%2Forg.clearlrs.com%2Fxapi%2F &auth=Basic%20a2V5OnNlY3JldA%3D%3D &actor=%7B%22mbox%22%3A%22mailto%3Alearner%40example.com%22%7D &activity_id=http%3A%2F%2Fexample.com%2Flearning%2Factivity ®istration=231859e2-937f-4969-b069-91cf49bfea0cOnce launched, the activity provider should parse and decode these parameters and use them as appropriate when generating statements.