swift-painter-81314
05/10/2022, 9:58 AMserve:
proxy:
port: 4455 # run the proxy at port 4455
api:
port: 4456 # run the api at port 4456
access_rules:
matching_strategy: regexp
repositories:
- file:///rules.json
errors:
fallback:
- json
handlers:
json:
enabled: true
config:
verbose: true
redirect:
enabled: true
config:
to: <https://www.ory.sh/docs>
mutators:
noop:
enabled: true
header:
enabled: true
config:
headers:
X-User: '{{ print .Subject }}'
# You could add some other headers, for example with data from the
# session.
# X-Some-Arbitrary-Data: "{{ print .Extra.some.arbitrary.data }}"
# id_token:
# enabled: true
# config:
# issuer_url: <http://localhost:4455/>
# jwks_url: file:///jwks.json
authorizers:
allow:
enabled: true
deny:
enabled: true
authenticators:
bearer_token:
# Set enabled to true if the authenticator should be enabled and false to disable the authenticator. Defaults to false.
enabled: true
config:
#check_session_url: <http://127.0.0.1:9971/auth/whoami>
check_session_url: <https://stoic-herschel-1f9l4wh4r0.projects.oryapis.com/sessions/whoami>
token_from:
header: Authorization
preserve_path: true
additional_headers:
accept: application/json
#extra_from: "@this"
#subject_from: "identity.id"
#preserve_query: true
#anonymous:
# enabled: true
#config:
# subject: guest
damp-sunset-69236
05/10/2022, 11:10 AMadditional_headers
from this
additional_headers:
accept: application/json
to this
additional_headers:
accept-encoding: identity
should solve the issuedamp-sunset-69236
05/10/2022, 11:23 AMcookie_session
swift-painter-81314
05/10/2022, 1:04 PMswift-painter-81314
05/10/2022, 1:05 PMdamp-sunset-69236
05/10/2022, 1:10 PMswift-painter-81314
05/10/2022, 1:10 PMswift-painter-81314
05/10/2022, 1:10 PM