Merge branch 'master' into fix/install-plugin

This commit is contained in:
Aurélien GEORGET 2018-01-15 18:18:36 +01:00 committed by GitHub
commit ec08c22aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# Authentification # Authentication
## Register a new user. ## Register a new user.
@ -53,7 +53,7 @@ $.ajax({
}); });
``` ```
## Use your token to be identify as user. ## Use your token to be identified as a user.
By default, each API request is identified as `guest` role (see permissions of `guest`'s role in your admin dashboard). To make a request as a user, you have to set the `Authorization` token in your request headers. You receive a 401 error if you are not authorized to make this request or if your authorization header is not correct. By default, each API request is identified as `guest` role (see permissions of `guest`'s role in your admin dashboard). To make a request as a user, you have to set the `Authorization` token in your request headers. You receive a 401 error if you are not authorized to make this request or if your authorization header is not correct.