* refactor!: use `actix-web-grants` to protect endpoints
* fix: filter out blank strings
* doc: add documentation for a function
* fix: don't return body for not exposed endpoints
* test: add fixtures
* test: fix naming
* test: remove extra step in teardown
* feat(log): use 'tracing-subscriber' instead of 'env_logger'
resolves#161
* feat: use 'tracing' instead of 'log'
* feat: make 'INFO' the default log level
* feat(server): support multiple auth tokens
Example:
```toml
[server]
auth_tokens = [
"super_secret_token1",
"super_secret_token2",
]
```
The previously used `AUTH_TOKEN` environment variable can still be used
and will be evaluated as well.
* fixtures: add all tokens in array to the test
* add deprecation warning for auth_token
* also add deprecation warnings at server startup
* fix formatting
* fixed tests, so that we do not use deprecated config options
* use bash array
* refactor: use separate function
* refactor: check auth tokens
* Update fixtures/test-server-auth-multiple-tokens/test.sh
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
* refactor: convert functions to methods
* refactor: check function
* refactor: get_tokens method
* style(format): add newline between functions
* refactor(server): print deprecation warnings once
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>