Expose auth settings through REST API

This commit is contained in:
Denis Arh
2019-04-18 07:32:07 +02:00
parent f44648a3ea
commit 60f35bef47
7 changed files with 138 additions and 5 deletions
+14
View File
@@ -93,9 +93,23 @@
| Method | Endpoint | Purpose |
| ------ | -------- | ------- |
| `GET` | `/auth/` | Returns auth settings |
| `GET` | `/auth/check` | Check JWT token |
| `GET` | `/auth/logout` | Logout |
## Returns auth settings
#### Method
| URI | Protocol | Method | Authentication |
| --- | -------- | ------ | -------------- |
| `/auth/` | HTTP/S | GET | |
#### Request parameters
| Parameter | Type | Method | Description | Default | Required? |
| --------- | ---- | ------ | ----------- | ------- | --------- |
## Check JWT token
#### Method