-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Изменения Resolves #57 ## Детали реализации - При подключении по WebSocket необходимо передать Header "Authorization" с значением токена AuthAPI - Если токен неверный – будет выдана ошибка `Not authenticated` - Если у токена недостаточно прав – будет выдана ошибка `Unauthorized` - Если токен уже использовался в течение последней минуты – будет выдана ошибка `Already in use` - Ошибка возвращается в теле первого сообщения от сокета в виде JSON `{"error": "reason"}`, после чего сокет закрывается нормально
- Loading branch information
Showing
3 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[loggers] | ||
keys=root | ||
|
||
[handlers] | ||
keys=all | ||
|
||
[formatters] | ||
keys=main | ||
|
||
[logger_root] | ||
level=DEBUG | ||
handlers=all | ||
|
||
[handler_all] | ||
class=StreamHandler | ||
formatter=main | ||
level=DEBUG | ||
args=(sys.stdout,) | ||
|
||
[formatter_main] | ||
format=%(asctime)s %(levelname)-8s %(name)-15s %(message)s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters