Debugging openid connection via Java REST client

Hello, and thanks for the assistance, while performing Automated tests, i’m trying to imitate the way this open id connect debugger works:, i prefer to avoid approaching an external website.

So i’m using Java with regular rest client ‘OkHttp’ and sending GET request with the following details:


But i get in return an HTML page with the following error:

<span class="icon icon-16 icon-only warning-16-yellow"></span>You are using an unsupported browser. For the best experience, update to <a href="">a supported browser</a>.</div>

All i want is to get the log-in response json from Okta to read the details inside
anyone made such operation via java?

Thanks, Adi