Skip to content

3.2. Token authentication

Dane Rossenrode edited this page Apr 9, 2016 · 2 revisions

To use token authentication, enable the optional RESTful token authentication module.

Configuration options are available in your Drupal site at admin/config/services/restful/token-auth.

ENDPOINT

api/login-token

REQUEST

Either a session cookie received from a call to api/v1.0/login or with the Drupal user's username and password via HTTP Basic Auth.

RESPONSE

Sample JSON response:

{
  "access_token": "hlckU4t-xTARYuS7RJl8-jkEguSQvaGkracOeY0kL0Q",
  "type": "Bearer",
  "expires_in": 85671,
  "refresh_token": "slnkR0qLCwO9KuGtL_BrRWyMtovEorYjYpWNGymENwk"
}
Clone this wiki locally