-
Notifications
You must be signed in to change notification settings - Fork 1
Authentication
chernser edited this page Sep 22, 2012
·
3 revisions
DummyAPI supports mocking authentication.
Note: it is possible to send unauthorized request without credentials, what doesn't not cause 401 or 403 status codes.
User is created by full filling form on the authentication panel and pressing Create
Fields "Name" and "Password" are mandatory and used while login request. Password can be empty.
If you need to return extra information in response to login request, you need to assign resource instance to user.
To do this:
- create or select existing user
- select resource
- select resource's id
- press Save
After this linked resource's fields will be returned in response to login request mixed with user parameters like "access token".
Note: If resource is not found for any reason, login will be successful anyway, but without resource.