Skip to content

Commit

Permalink
Refactor README.md to AuthConfig v2
Browse files Browse the repository at this point in the history
  • Loading branch information
azgabur committed Feb 22, 2024
1 parent c17bb62 commit 3cb7b00
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,23 @@ podman run \
For developing tests for Authorino you might need to know content of the authorization JSON, you can do that through this AuthConfig, which will return all the context in the response

```yaml
apiVersion: authorino.kuadrant.io/v1beta1
apiVersion: authorino.kuadrant.io/v1beta2
kind: AuthConfig
metadata:
name: example
spec:
hosts:
- '*'
response:
- name: auth-json
json:
properties:
- name: context
valueFrom: { authJSON: context }
- name: auth
valueFrom: { authJSON: auth }
success:
headers:
auth-json:
json:
properties:
auth:
selector: auth
context:
selector: context
```
Another thing which might helpful is using playground for developing OPA policies https://play.openpolicyagent.org/.

0 comments on commit 3cb7b00

Please sign in to comment.