This version of the API docs is depreciated and will be taken offline soon.
Please migrate to the new version as soon as possible to avoid service disruption.
New version can be found at https://docs.wceaapi.org/
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 trainings. See Training - Link to training.
Request example
$API->getUserAuthentication('adrian.perez@wcea.education');
Output Example
array( "accessLink" => "http://dmc.wcea.education/auth?login_token=feb815ad2906bce7d85d38bdf8a3928f", "token" => "feb815ad2906bce7d85d38bdf8a3928f", "expiration" => "2013-11-21 14:42:43" )