README: add something about bearer tokens

This commit is contained in:
Roman Khimov 2021-04-30 13:41:45 +03:00 committed by Roman Khimov
parent 293debe6db
commit 90b0613182

View file

@ -265,6 +265,16 @@ object ID, like this:
} }
``` ```
#### Authentication
You can always upload files to public containers (open for anyone to put
objects into), but for restricted containers you need to use bearer tokens
(which basically is an owner-signed ACL data, refer to NeoFS documentation for
more details). There are two options to pass them to gateway:
* "Authorization" header with "Bearer" type and base64-encoded token in
credentials field
* "__context_bearer_token_key" cookie with base64-encoded token contents
### Metrics and Pprof ### Metrics and Pprof
If enabled, Prometheus metrics are available at `/metrics/` path and Pprof at If enabled, Prometheus metrics are available at `/metrics/` path and Pprof at