@@ -48,16 +48,16 @@ A successful sign in would result in the display of a JSON document like this on
4848``` json
4949{
5050 "options" : {
51- "client_id" : " debugger " ,
52- "discovery" : " http:\/\/ 192.168.1.10 :8081\/ realms\/ master\/ .well-known\/ openid-configuration" ,
51+ "client_id" : " id " ,
52+ "discovery" : " http:\/\/ 192.168.0.1 :8081\/ realms\/ master\/ .well-known\/ openid-configuration" ,
5353 "redirect_uri" : " http:\/\/ localhost:8080\/ login" ,
5454 "ssl_verify" : " no" ,
5555 "client_secret" : " 835e0717-e0c8-4b57-b044-295fa0e3f61b"
5656 },
5757 "id_token" : {
5858 "azp" : " debugger" ,
5959 "iat" : 1590619714 ,
60- "iss" : " http:\/\/ 192.168.1.10 :8081\/ realms\/ master" ,
60+ "iss" : " http:\/\/ 192.168.0.1 :8081\/ realms\/ master" ,
6161 "aud" : " debugger" ,
6262 "nonce" : " 1e23537bb06f2b4e324d12d8d51f2c6b" ,
6363 "exp" : 1590619774 ,
@@ -85,7 +85,7 @@ You can use <https://jwt.io> to decode the access token.
8585
8686If you prefer to skip the UI, you can pass directly the required
8787values as URL parameters using the following syntax:
88- < http://localhost:8080/debug?oidc_client_id=client_id &oidc_client_secret=client_secret &oidc_discovery=discovery_url &oidc_redirect_uri=redirect_uri >
88+ < http://localhost:8080/debug?oidc_client_id=id &oidc_client_secret=secret &oidc_discovery=http%3A%2F%2F192.168.0.1%3A8081%2Frealms%2Fmaster%2F.well-known%2Fopenid-configuration &oidc_redirect_uri=http://localhost:8080/login >
8989
9090See section "Parameters" below for a description of each parameter.
9191
@@ -98,7 +98,7 @@ You can pass the parameters to the docker container using environment
9898variales like this:
9999
100100``` bash
101- docker run -i -e ' oidc_client_id=<client_id> ' -e ' oidc_client_secret=<client_secret> ' -e ' oidc_discovery=<discovery_url> ' -e ' oidc_redirect_uri=http://localhost:8080/login' -p 8080:80 leplusorg/openid-connect-provider-debugger
101+ docker run -i -e ' oidc_client_id=id ' -e ' oidc_client_secret=secret ' -e ' oidc_discovery=http://192.168.0.1:8081/realms/master/.well-known/openid-configuration ' -e ' oidc_redirect_uri=http://localhost:8080/login' -p 8080:80 leplusorg/openid-connect-provider-debugger
102102```
103103
104104See section "Parameters" below for a description of each parameter.
@@ -158,7 +158,7 @@ Keycloak as a local OpenID Connect Provider.
158158Launch Keycloak using the following command (choosing the desired
159159username and password):
160160``` bash
161- docker run -i -e KEYCLOAK_ADMIN=< usename > -e KEYCLOAK_ADMIN_PASSWORD=< password > -p 8081:8080 quay.io/keycloak/keycloak:latest start-dev
161+ docker run -i -e ' KEYCLOAK_ADMIN=admin ' -e ' KEYCLOAK_ADMIN_PASSWORD=admin ' -p 8081:8080 quay.io/keycloak/keycloak:latest start-dev
162162```
163163
164164Then go to the Keycloak admin console at
@@ -180,10 +180,11 @@ the client in Keycloak. The client secret is the value that you copied
180180from the Credentials tab. The OpenID Connect Discovery URL will be
181181< http://192.168.0.1:8081/realms/master/.well-known/openid-configuration >
182182where you need to replace the IP address by your local machine network
183- address. You need to use an IP address that works both from your local
184- machine and from inside the debugger docker container (for the
185- debugger to be able to connect to the OP to retrieve the tokens). This
186- is why you can't use ` localhost ` or ` 127.0.0.1 ` .
183+ address. You need to use an IP address that works from inside the
184+ debugger docker container (for the debugger to be able to connect to
185+ the OP to get the discovery metadata and later retrieve the
186+ tokens). This is why you can't use ` localhost ` or ` 127.0.0.1 ` which
187+ the debugger would interpret as itself instead of the provider.
187188
188189## Credits
189190
0 commit comments