diff --git a/README.md b/README.md index 8f52e20..8486f35 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,13 @@ cargo build --release If you want to test the solution with OAuth proxy, you can try to adapt the following commands (considering `192.168.2.103` is your local IP address): ```bash +export IP=192.168.2.103 + # In a shell, start BasicOID -RUST_LOG=debug cargo run -- -s storage -w "http://192.168.2.103.nip.io:8000" +RUST_LOG=debug cargo run -- -s storage -w "http://$IP.nip.io:8000" # In another shell, run OAuth proxy -docker run --rm -p 4180:4180 quay.io/oauth2-proxy/oauth2-proxy:latest --provider=oidc --email-domain=* --client-id=oauthproxy --client-secret=secretoauth --cookie-secret=SECRETCOOKIE1234 --oidc-issuer-url=http://192.168.2.103.nip.io:8000 --http-address 0.0.0.0:4180 --upstream http://192.168.2.103 --redirect-url http://192.168.2.103:4180/oauth2/callback --cookie-secure=false +docker run --rm -p 4180:4180 quay.io/oauth2-proxy/oauth2-proxy:latest --provider=oidc --email-domain=* --client-id=oauthproxy --client-secret=secretoauth --cookie-secret=SECRETCOOKIE1234 --oidc-issuer-url=http://$IP.nip.io:8000 --http-address 0.0.0.0:4180 --upstream http://$IP --redirect-url http://$IP:4180/oauth2/callback --cookie-secure=false ``` Corresponding client configuration: