-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Please, make sure that any /api/* request that requires a valid token send a response status code 401 when the token is not valid.
https://developer.mozilla.org/de/docs/Web/HTTP/Reference/Status/401
For example, this should return 401 Unauthorized
POST /api/v1/contact-book HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Cookie: JSESSIONID=5CF4C511B6EC8A9358B89B18A3E7F278
Content-Length: 566
{
"name": "My contacts",
"contacts": [
{
"name": "Alice",
"lastName": "Smith",
"emails": [
{"email": "alice@example.com"}
],
"phones": [
{"phone": "+380501112233"}
],
"networks": [
{"label": "telegram", "account": "@alice_ua"}
]
},
{
"name": "Bob Johnson",
"emails": [
{"email": "bob@example.com"}
],
"phones": [
{"phone": "+380671234567"}
],
"networks": [
{"label": "facebook", "account": "bob.j"}
]
}
]
}Dependencies
Acceptance criteria
- 401 status code is returned when the token is not valid
- No redirects to the main page
- Message "Unauthorized request" is returned.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
🏗 In progress