Skip to content

Commit

Permalink
doc(agent): add the details to the readme.md and change the port of t…
Browse files Browse the repository at this point in the history
…he mock server

Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk committed Mar 25, 2024
1 parent 2acd76f commit 7b936c3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
16 changes: 15 additions & 1 deletion examples/st-oidc4vc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@

## Prerequisites

- Docker installed
- Docker installed v2.24.0 or later
- Python 3 with the following packages installed
- [requests](https://pypi.org/project/requests/)
- [pyjwt](https://pyjwt.readthedocs.io/en/stable/)
- [cryptography](https://cryptography.io/en/latest/)
- Virtual environment (optional)

Example of the script to install the required packages in a virtual environment:
```shell
python -m venv {path-to-the-project-dir}/open-enterprise-agent/examples/st-oidc4vc/python-env
source {path-to-the-project-dir}/open-enterprise-agent/examples/st-oidc4vc/python-env/bin/activate
pip install requests pyjwt cryptography
```

- the latest Cloud Agent image is built and available in the local Docker registry

```shell
sbt docker:publishLocal
```

### 1. Spin up the agent stack with pre-configured Keycloak

Expand Down
2 changes: 1 addition & 1 deletion examples/st-oidc4vc/bootstrap/01_init_realm.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Authorization: Bearer {{ admin_access_token }}
"id": "{{ alice_wallet_client_id }}",
"publicClient": true,
"consentRequired": true,
"redirectUris": [ "http://localhost:5000/*" ]
"redirectUris": [ "http://localhost:7777/*" ]
}
HTTP 201

Expand Down
5 changes: 4 additions & 1 deletion examples/st-oidc4vc/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

configs:
caddyfile_issuer:
content: |-
Expand All @@ -15,6 +17,7 @@ configs:
reverse_proxy vault-issuer:8200
}
}
services:
agent-issuer:
depends_on:
Expand Down Expand Up @@ -109,7 +112,7 @@ services:
mockserver:
image: mockserver/mockserver:5.15.0
ports:
- 5000:1080
- 7777:1080
node:
depends_on:
node-db:
Expand Down
4 changes: 2 additions & 2 deletions examples/st-oidc4vc/demo.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from cryptography.hazmat.primitives.asymmetric import ec


MOCKSERVER_URL = "http://localhost:5000"
LOGIN_REDIRECT_URL = "http://localhost:5000/cb"
MOCKSERVER_URL = "http://localhost:7777"
LOGIN_REDIRECT_URL = "http://localhost:7777/cb"

AGENT_URL = "http://localhost:8080/prism-agent"
CREDENTIAL_ISSUER = None
Expand Down

0 comments on commit 7b936c3

Please sign in to comment.