/
OAuth2 Token
OAuth2 Token
It is accessible through one HTTP interface demonstrated by the example request and example response below. Note that OAuth is only available for the xAPI interface.
EXAMPLE REQUEST
POST http://www.example.org/api/oauth2/token
Content-Type: application/x-www-form-urlencoded
client_id=DEMO_CLIENT_ID&client_secret=DEMO_CLIENT_SECRET&grant_type=client_credentials&scope=xapi:write
EXAMPLE RESPONSE
HTTP 200 OK
Content-Type: application/json
{
"access_token": "DEMO_ACCESS_TOKEN",
"token_type": "bearer",
"expires_in": 3600
}
REQUEST FORM SCHEMA
Name | Description |
---|---|
grant_type | Only allows “client_credentials” |
client_id | The Key from your client on the Settings > Clients page |
client_secret | The Secret from your client on the Settings > Clients page |
scope | Only allows “xapi:write” |
RESPONSE JSON SCHEMA
Name | Description |
---|---|
access_token | The token you can use in xAPI requests in the |
token_type | Only “bearer” |
expires_in | Number of seconds until the access token expires |
, multiple selections available,
Related content
Administrator level authentication flow
Administrator level authentication flow
More like this
xAPI
More like this
xAPI Statements
xAPI Statements
Read with this
HTTP Interfaces (APIs)
HTTP Interfaces (APIs)
Read with this
Architecture Overview
Architecture Overview
Read with this
Integrations
Integrations
Read with this
Learning Locker and the Squirrel logo are trademark of Learning Pool 2020 | Learning Locker is licensed under GPL 3.0.