Returns a link to access an organization portal bypassing any other login step.
Request
- HTTP Verb: GET
- URI: /user/{id}/authentication
Query Parameters
- id: user identifier. It could be either user id or user email.
Response Properties
accessLink | link that may be used to access the portal |
---|---|
token | hash that performs the authentication |
expiration | time limit for the authentication token. After that time the token becomes invalid |
This endpoint is also used to obtain direct authenticated links to E-learning items. See E-Learning - Link to e-learning.
Request example
curl -H "Request-Time: Wed, 11 Dec 2013 13:15:04 +0000" \ -H "Api-Key: 78b47a40f93378a6a487919edea6e92c" \ -H "Signature: 0a035961fbf7d2ffdc5ca8780e0a33cb3d6c3a5f8fb0623e886c9933377d3e1e" \ http://wceaapi.org/v1.1/user/adrian.perez@wcea.education/authentication
Output Example
{ "_meta": { ... }, "records": { "accessLink": "http://dmc.wcea.education/auth?login_token=feb815ad2906bce7d85d38bdf8a3928f", "token": "feb815ad2906bce7d85d38bdf8a3928f", "expiration": "2013-11-21 14:42:43" } }