This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/docker/kratos/oathkeeper/access-rules.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-15 15:12:46 +00:00
- id: "ory:kratos:public"
2020-12-09 12:50:17 +00:00
upstream:
preserve_host: true
url: "http://kratos:4433"
strip_path: /.ory/kratos/public
match:
url: "http://oathkeeper:4455/.ory/kratos/public/<**>"
methods:
- GET
- POST
- PUT
- DELETE
- PATCH
authenticators:
2020-12-15 15:12:46 +00:00
- handler: noop
2020-12-09 12:50:17 +00:00
authorizer:
handler: allow
mutators:
- handler: noop
2020-12-15 15:12:46 +00:00
- id: "ory:kratos-selfservice-ui-node:anonymous"
2020-12-09 12:50:17 +00:00
upstream:
preserve_host: true
url: "http://kratos-selfservice-ui-node:4435"
match:
url: "http://oathkeeper:4455/<{error,recovery,verify,auth/*,**.css,**.js}{/,}>"
methods:
- GET
authenticators:
2020-12-15 15:12:46 +00:00
- handler: anonymous
2020-12-09 12:50:17 +00:00
authorizer:
handler: allow
mutators:
2020-12-15 15:12:46 +00:00
- handler: noop
2020-12-09 12:50:17 +00:00
2020-12-15 15:12:46 +00:00
- id: "ory:kratos-selfservice-ui-node:protected"
2020-12-09 12:50:17 +00:00
upstream:
preserve_host: true
url: "http://kratos-selfservice-ui-node:4435"
match:
url: "http://oathkeeper:4455/<{,debug,dashboard,settings}>"
methods:
- GET
authenticators:
2020-12-15 15:12:46 +00:00
- handler: cookie_session
2020-12-09 12:50:17 +00:00
authorizer:
handler: allow
mutators:
- handler: id_token
errors:
- handler: redirect
config:
#to: http://oathkeeper:4455/auth/login
2020-12-15 15:12:46 +00:00
to: https://secure.siasky.xyz/auth/login