1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# JWT authorization example
# Run with `cargo run -p htsget-axum --all-features -- --config htsget-config/docs/examples/auth.toml`
= "127.0.0.1:8080"
= "127.0.0.1:8081"
= "file://data"
# JWT authorization configuration.
[]
= "https://www.example.com/htsget"
## Alternatively use public key-based validation
#public_key = "/path/to/jwt-public-key.pem"
= ["htsget-server"]
= ["https://www.example.com"]
= "htsget"
# Authorization URLs, if using an authorization service.
= "https://www.example.com/authorize"
# Forward the authorization header to the auth server.
= true
## Any headers to forward
#forward_headers = ["Content-Type"]
## Forward the endpoint type to the auth service.
#forward_endpoint_type = true
## Forward the request id.
#forward_id = true
## Set client authentication
#http.key = "key.pem"
#http.cert = "cert.pem"
#
## Set root certificates
#http.root_store = "root.crt"
## Disable HTTP caching
#http.use_cache = false
## It's also possible to set auth individually for the ticket and data servers:
#[ticket_server.auth]
#[data_server.auth]