Certica Products

Authorization- Assessment


A separate, player-specific, access_token is required to allow items to render inside of an interface. This is to prevent unauthorized access of any items outside of a testing environment. Each token should expire very shortly after it is created to prevent someone from copying the browser's source code and running it somewhere else.

Getting an Access Token

curl -X POST \

POST Fields

In addition to your client_id and client_secret, you should POST options regarding the test session you are trying to administer. For a live assessment administration, sessionId and sessionKey are required. If you want to display the test to allow a teacher or administrator to audit the test before it is administered, pass testId and auditCode. In any event, you must pass the expires field.

Name Description

(Required) Token value generated by /oauth/token_player. None of the other required options below are necessary if generated within the token. Baking options into the accessToken is a secure way of safeguarding any parameters you wouldn't want a candidate to surreptitiously view. integer
expires Number of seconds from the current time, forward, this token should be valid. We recommend this value be set below 14,400 (4 hours). integer
sessionId Test session ID. integer
sessionKey Test session key. string
testId Test ID. integer
auditCode Access code to display and audit the test before it is administered. string
ui JSON array of user interface options. See options below. array
instantStart Do not display dialog prompting candidate to start the test. boolean
autoload Do not automatically load the first item of the test. boolean

Option: ui

The following fields describe UI elements you may choose to render in the ItemLogic.Assess player. The default value for each of these options is false, so if you wish to display nothing but the item itself, ignore this section.

Name Description

Display a progress bar of candidate's progress. boolean
validate Display a button to check the candidate's answer. boolean
submit Submit the test. boolean
toggle Allow candidate to toggle items back/forward in the order the items are listed in the test. boolean
backward Allow candidate to toggle backwards to previous questions. If toggle is set to 1, this option must be explicitly set to 0 to prevent backwards toggling. boolean
jump Allow candidate to jump to different sections of a test. (Not implemented) boolean
timer Display elapsed time for candidate. (Not Implemented) boolean
fontSize Specify the base font-size CSS property for all item content. This value defaults to 12px, but you can specify pt values as well. string

Sample Post with Options

curl -X POST \
      -H "Content-Type: application/json" \
      -d '{
        "sessionId": 70,
        "sessionKey": "abc321",
        "expires": 14400,
        "instantStart": 1,
        "ui": {
            "submit": 1,
            "toggle": 0,
            "backwards": 0,
            "progress": 1,
            "validate": 0
      }' \

Sample Response

All of the options contained in the POST'ed data becomes obscured so that even if the browser page's source is available, the candidate cannot obtain or override any of the parameters contained within.


Using the Access Token

Place the working access_token inside of your assessment page, and fire it up!

        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="pragma" content="no-cache">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <link href="https://assess.itemlogic.com/css/assess.css" type="text/css" rel="stylesheet">
        <script src="https://assess.itemlogic.com/assess-api.js" type="text/javascript"></script>
        <title>ItemLogic Assessment</title>
        <div id="Assess"></div>
            var assess;
            window.addEvent('domready', function(){
                var opts = {
                new ItemLogic.Assess('Assess', opts);

Note: If you're interested in trying out the test without the hassle of embedding it inside of your own assessment player just yet, use the link below. We will provide our UI to navigate the test, respond to it, and submit it. You can then query the result data via REST. https://app.itemlogic.com/tests/assess?token=<assessment_auth_token>

Previous Article Authorization- API
Next Article Authorization- Item Editor