forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
Login
Fraser Redford edited this page Mar 29, 2021
·
10 revisions
This will process a login request by a user on the server allowing them to authenticate and access content. If the user has recently registered they will be required to wait until their account has been activated by a server administrator.
A JSON object requiring the following:
| Key | Required/Optional | Description |
|---|---|---|
| username | required | A username for login |
| password | required | A password for login |
{
username:password
}
{
"type": "author",
"id": "https://team6-project-socialdistrib.herokuapp.com/author/ee786bd4483b41a2b6a01b45b94b578b",
"host": "team6-project-socialdistrib.herokuapp.com",
"displayName": "TommyShelby",
"url": "https://team6-project-socialdistrib.herokuapp.com/author/ee786bd4483b41a2b6a01b45b94b578b",
"github": "https://github.com/TommyShelby"
}
-
200 OKupon a successful login -
403 FORBIDDENif the authentication failed, or the user is not yet activated