Skip to content

Commit

Permalink
docs: update cli readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Apr 15, 2023
1 parent 37025cd commit b9cfe13
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ This contract defines a single endpoint at /users/{id} that returns a user objec
To generate rules using the tool, simply run the command in your terminal with the appropriate arguments.

```shell
openapi-oathkeeper -f test/stub/sample.openapi.json
openapi-oathkeeper generate -f test/stub/sample.openapi.json --allowed-audiences "openidconnect=https://api.cerberauth.com/"
```

Here is a Ory Oathkeeper rules output
Expand All @@ -115,7 +115,7 @@ Here is a Ory Oathkeeper rules output
"methods": [
"GET"
],
"url": "https://api.example.com/users/<.*>"
"url": "<^(https://api\\.example\\.com)(/users/(.+)/?)$>"
},
"authenticators": [
{
Expand All @@ -130,6 +130,9 @@ Here is a Ory Oathkeeper rules output
"required_scope": [
"read:user",
"write:user"
],
"target_audience": [
"https://api.cerberauth.com/"
]
}
}
Expand All @@ -144,7 +147,12 @@ Here is a Ory Oathkeeper rules output
"config": null
}
],
"errors": null,
"errors": [
{
"handler": "json",
"config": null
}
],
"upstream": {
"preserve_host": false,
"strip_path": "",
Expand Down

0 comments on commit b9cfe13

Please sign in to comment.