@@ -17,12 +17,14 @@ All samples work with the following environment variables:
1717
1818- ` HOST ` - Host to listen on. The default is "localhost".
1919- ` PORT ` - Port of the listening host. The default is "8000".
20- - ` ISSUER ` - OpenID Connect Issuer. The default is "https://api.mpin.io ".
21- - ` REDIRECT_URL ` - The redirect URL of the app in the MIRACL Trust platform.
20+ - ` ISSUER ` - OpenID Connect Issuer. This must correspond to the OIDC Issuer
21+ configured for your project in the [ MIRACL Trust Portal] ( https://trust.miracl.cloud ) .
22+ It has no default value and is mandatory.
23+ - ` REDIRECT_URL ` - The redirect URL of the application in the MIRACL Trust platform.
2224 The default value is "http://localhost:8000/login ".
23- - ` CLIENT_ID ` - The Client ID of the app in the MIRACL Trust platform. It has
24- no default value and is mandatory.
25- - ` CLIENT_SECRET ` - The Client Secret of the app in the MIRACL Trust platform.
25+ - ` CLIENT_ID ` - The Client ID of the application in the MIRACL Trust platform.
26+ It has no default value and is mandatory.
27+ - ` CLIENT_SECRET ` - The Client Secret of the application in the MIRACL Trust platform.
2628 It has no default value and is mandatory.
2729- ` PROXY_HOST ` - The host address of the proxy behind which you run the sample.
2830 The default value is an empty string. It is used only when the setup requires
@@ -32,8 +34,8 @@ All samples work with the following environment variables:
3234 proxy, allowing us to validate that the OIDC client works behind a proxy.
3335
3436To get those values, you'll need to [ register] ( https://miracl.com/resources/docs/get-started/register/ )
35- and [ create an app ] ( https://miracl.com/resources/docs/get-started/low-code/ ) in
36- our platform.
37+ and [ create an application ] ( https://miracl.com/resources/docs/get-started/low-code/ )
38+ in our platform.
3739
3840## Usage
3941
@@ -55,6 +57,7 @@ docker run \
5557 --publish 8000:8000 \
5658 --env CLIENT_ID=< client-id> \
5759 --env CLIENT_SECRET=< client-secret> \
60+ --env ISSUER=< oidc-issuer> \
5861 sample
5962```
6063
@@ -69,6 +72,7 @@ docker run \
6972 --publish < custom-port> :8000 \
7073 --env CLIENT_ID=< client-id> \
7174 --env CLIENT_SECRET=< client-secret> \
75+ --env ISSUER=< oidc-issuer> \
7276 --env REDIRECT_URL=http://localhost:< custom_port> /login \
7377 sample
7478```
@@ -103,6 +107,7 @@ docker run \
103107 --env PROXY_PORT=8080 \
104108 --env CLIENT_ID=< client-id> \
105109 --env CLIENT_SECRET=< client-secret> \
110+ --env ISSUER=< oidc-issuer> \
106111 sample
107112```
108113
0 commit comments