crooked-hair-69829
10/10/2022, 7:28 PM---
apiVersion: <http://oathkeeper.ory.sh/v1alpha1|oathkeeper.ory.sh/v1alpha1>
kind: Rule
metadata:
name: rule-customauth
spec:
version: v0.39.4
upstream:
url: <http://unused>
match:
url: <http://foo.bar>.<[^/]*>/api/<.*>
methods:
- GET
- PUT
- POST
- PATCH
- HEAD
- DELETE
authenticators:
- handler: oauth2_introspection
authorizer:
handler: remote_json
config:
remote: <http://my-authorizer-api:8080/authorize>
payload: |
{ "hello": "world"}
mutators:
- handler: id_token