Where to find the URL
- In the browser’s address bar, right after clicking Sign in and before the sign-in page loads. Pressing Escape quickly can stop the page from changing.
- In the browser developer tools, Network tab: the request to the
authendpoint, or theLocationheader of the redirect that led to it. - In your app’s logs, if it logs outgoing redirects. Remove anything sensitive first.
- In a library’s debug output. Many OpenID Connect libraries can print the URL they build.
What the inspector checks
Each check produces a note: red for problems the server will reject, amber for weaknesses, blue for information.
| Check | Why it matters |
|---|---|
client_id and response_type present | Required by RFC 6749; the server rejects the request without them |
redirect_uri present | Required by OpenID Connect; in plain OAuth optional only with exactly one registered URI |
Implicit response_type | Tokens in the URL leak; RFC 9700 says not to use it |
state present and long enough | Protects the callback against forgery |
nonce when an ID token comes from the authorization endpoint | Required by OpenID Connect in that case |
| PKCE present and S256 | RFC 9700 recommends PKCE for every client |
| S256 challenge is 43 Base64url characters | Any other shape cannot be a valid S256 challenge |
| Plain http redirect outside localhost | The code can be read on the network |
| Repeated parameters | Servers must reject a request with a repeated parameter |
| A #fragment in the request | The server never sees it; parameters belong in the query |
When the path has Keycloak’s layout, /realms/<realm>/protocol/openid-connect/auth, the inspector also shows the realm name.
An example
https://auth.example.com/realms/acme/protocol/openid-connect/auth
?response_type=code&client_id=web-app
&redirect_uri=http%3A%2F%2Fapp.example.com%2Fcallback
&scope=openid&code_challenge=sample-challengewarn redirect_uri uses plain http outside localhost.
info No state. PKCE protects the code, but state is still the usual
way to tie the response to the user’s session.
warn code_challenge_method is missing, so the server assumes plain.
Send S256.What this tool does and does not do
The inspector reads the URL in your browser. It does not send it anywhere and does not contact the authorization server.
It cannot tell whether the server will accept the values. It does not know your client’s registered redirect URIs, which scopes exist in the realm, or whether the flow is turned on for the client. For the redirect URI, use the redirect URI matcher. It also cannot verify a PKCE challenge without the verifier; test that pair in the PKCE generator.
A URL that carries only client_id and request_uri was made with pushed authorization requests (RFC 9126) or a request object. The real parameters are on the server, so most checks do not apply, and the inspector says so.
How to use it
- Copy the full authorization URL, starting with https://.
- Paste it into the box. The sample URL is replaced.
- Read the notes at the top. Fix red ones first.
- Read the parameter list to see each decoded value and what it means.
- Change the client or library settings, build a new URL and paste it again.
Reading the results
No PKCE
An amber note means the request has no code_challenge. For a public client, such as a browser or mobile app, this means a stolen code can be redeemed. Turn on PKCE in your library and, in Keycloak, set the client’s PKCE method to S256 so requests without it are rejected.
Implicit flow
response_type=token or id_token token returns tokens in the URL. Switch the client to response_type=code with PKCE. In Keycloak, turn on Standard flow for the client and turn off Implicit flow once the app no longer needs it.
Weak or missing state
A short or missing state makes the callback easier to forge. With PKCE the code itself is protected, so the note is blue. Without PKCE it is amber. Use a random value of at least 16 bytes.
Unknown parameters
Parameters the inspector does not know are listed as not standard. That is not an error. Servers ignore parameters they do not support, and some, like Keycloak’s kc_idp_hint and kc_action, are known and explained.
Values people often get wrong
Scopes separated by commas
Scopes are separated by spaces, encoded as %20 or +. A value like openid,profile is one unknown scope, and the server either rejects it or ignores it. Look at the decoded scope row to see exactly what the server receives.
A redirect URI that is almost right
A trailing slash, http instead of https, a different port or a capital letter in the host are all different URIs to the server. Compare the decoded redirect_uri row character by character with the client’s registered value.
Double encoding
If the decoded redirect URI still shows %3A or %2F, the value was encoded twice. The server will compare that encoded text and fail to match. Encode each value exactly once.
Comparing a working and a failing URL
When sign-in works in one environment and fails in another, paste both URLs one after the other and compare the parameter lists. The difference is usually small: another realm in the path, a staging redirect URI, a missing scope or a client id with a suffix. Seeing the decoded values side by side makes it quick to spot.
The tool keeps nothing between pastes, so copy the first parameter list somewhere before you paste the second URL. Open the page in two tabs if you prefer to compare them on screen.
Use cases
- Reviewing a third-party app before connecting it to your realm.
- Checking that a library upgrade still sends PKCE and state.
- Finding why one environment works and another does not, by comparing two URLs.
- Auditing single-page and mobile apps for the implicit flow.
- Debugging a redirect loop, where the URL changes on every pass.
How Keycloak reads the request
Keycloak validates the client and the redirect URI before anything else. A bad client_id shows a Client not found page. A redirect URI that does not match the client’s Valid redirect URIs shows Invalid parameter: redirect_uri. Neither redirects back, so your app never sees an error code.
Other problems, such as an unknown scope or a disabled flow, are reported by redirecting back with error and error_description. Paste that callback into the callback URL parser to read it.
Security checklist
response_type=codewithcode_challenge_method=S256.- A fresh random
stateon every request. - A
noncewhen the scope includesopenid. - A
redirect_uriwith https, or http only on localhost for native apps. - No secrets, tokens or personal data in the URL.
These follow RFC 9700. A URL that passes all five gives an attacker little to work with.