Skip to content

Commit

Permalink
README: Document tiny OIDC server
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
  • Loading branch information
pdxjohnny committed Dec 28, 2023
1 parent a60cf7a commit 8564026
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,28 @@ setup(
)
```

## OIDC Server

Start server `httptest-oidc`

```console
$ python -m httptest.oidc \
--issuer https://this-service.example.com \
--audience https://relying-party.example.com \
--addr 0.0.0.0 \
--port 8000 \
--subject test-subject \
--private-key-pem-path private-key.pem \
--token-path token.jwt
```

Make requests

```console
$ curl -H "Authorization: Bearer $(curl https://this-service.example.com/token | jq -r token)" -v https://relying-party.example.com
$ curl -H "Authorization: Bearer $(cat token.jwt)" -v https://relying-party.example.com
```

## Cache Server

Run the caceh server and use it's URL in place of the upstream URL whatever you want to intercept on
Expand Down

0 comments on commit 8564026

Please sign in to comment.