Skip to content

Authorization URL inspector

Paste an authorization URL to read every parameter and see what is missing or risky: state, nonce, PKCE, redirect URI and flow.

Runs in your browser. Nothing you paste is sent to us.

URL

A sample URL for the realm acme is filled in. Paste yours; it stays in your browser.

endpoint
https://auth.example.com/realms/acme/protocol/openid-connect/auth
realm
acmeKeycloak endpoint layout

Checks and parameters

No problems found
The request has what the authorization code flow with PKCE needs.
response_type
codeWhat the client wants back. code for the authorization code flow.
client_id
web-appThe client’s id at the server.
redirect_uri
https://app.example.com/callbackWhere the server sends the user back. Must match a registered redirect URI.
scope
openid profile emailSpace-separated scopes. openid makes it an OpenID Connect request.
state
Zq3v8sample7KpW2A random value the client checks on return, to stop cross-site request forgery.
code_challenge
E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cMPKCE: the hash of the code verifier the client keeps.
code_challenge_method
S256PKCE: how the challenge was made. S256 is the one to use.

How to use it

  1. Copy the authorization URL from your app, the browser’s address bar or a network log.
  2. Paste it into the box.
  3. Read the checks at the top, then each parameter and what it means.

What to know

The inspector reads the query string and checks it against OAuth 2.0, OpenID Connect and the security advice in RFC 9700.

It warns about the implicit flow, a missing or weak state, missing PKCE, code_challenge_method=plain, plain http redirect URIs and repeated parameters.

When the path has Keycloak’s layout (/realms/<realm>/protocol/openid-connect/auth), it shows the realm.

Why inspect an authorization URL

Most apps never show the authorization URL they build. A library assembles it, the browser follows it, and the user sees a sign-in page or an error. When something goes wrong, the URL is the first thing to read, because it holds every decision the client made: which flow, which scopes, which redirect, and whether it protects itself with state and PKCE.

Reading a long, percent-encoded URL by eye is slow and easy to get wrong. The inspector splits it into parameters, decodes each value, explains it, and checks the request against OAuth 2.0 (RFC 6749), OpenID Connect Core 1.0 and the security advice in RFC 9700.

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 auth endpoint, or the Location header 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.

CheckWhy it matters
client_id and response_type presentRequired by RFC 6749; the server rejects the request without them
redirect_uri presentRequired by OpenID Connect; in plain OAuth optional only with exactly one registered URI
Implicit response_typeTokens in the URL leak; RFC 9700 says not to use it
state present and long enoughProtects the callback against forgery
nonce when an ID token comes from the authorization endpointRequired by OpenID Connect in that case
PKCE present and S256RFC 9700 recommends PKCE for every client
S256 challenge is 43 Base64url charactersAny other shape cannot be a valid S256 challenge
Plain http redirect outside localhostThe code can be read on the network
Repeated parametersServers must reject a request with a repeated parameter
A #fragment in the requestThe 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

Sample URL with problems (values are made up)
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-challenge
What the inspector reports for it
warn  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

  1. Copy the full authorization URL, starting with https://.
  2. Paste it into the box. The sample URL is replaced.
  3. Read the notes at the top. Fix red ones first.
  4. Read the parameter list to see each decoded value and what it means.
  5. 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=code with code_challenge_method=S256.
  • A fresh random state on every request.
  • A nonce when the scope includes openid.
  • A redirect_uri with 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.

Questions

Frequently asked questions

How do I see the authorization URL my app sends?

Open the browser’s developer tools, go to the Network tab and click Sign in. The request to the auth endpoint, or the Location header of the redirect before it, holds the full URL.

Is it safe to paste an authorization URL here?

The URL is parsed in your browser and never sent to us. An authorization URL normally holds no secrets, only the client id, redirect URI and random values. Still, do not paste URLs that carry tokens.

What does code_challenge_method missing mean?

Without it, the server assumes the plain method, where the challenge is the verifier itself. Plain gives no protection if the URL is seen. Send code_challenge_method=S256 with a hashed challenge.

Why does the inspector say a repeated parameter is a problem?

RFC 6749 says parameters must not be included more than once. Servers must treat such a request as invalid. It usually means two pieces of code each added the same parameter.

My URL only has client_id and request_uri. Is that wrong?

No. The client pushed the other parameters to the server first, with pushed authorization requests, or used a request object. The server looks them up by request_uri.

Can the inspector tell me if Keycloak will accept the URL?

Not fully. It checks the request against the specifications, but it does not know your client’s settings. Test the redirect URI with the redirect URI matcher and try the URL against your realm.

Why does my scope show up as one long value?

The scopes were joined with commas or another character instead of spaces. The server reads the whole string as one scope name. Separate them with spaces before encoding.

Does the order of parameters matter?

No. Servers read parameters by name, so any order works. What matters is that each appears once and is encoded correctly.

What is a good length for state?

At least 16 random bytes, which is 22 characters in Base64url. The inspector warns when state is shorter than 16 characters.

Rather not run Keycloak yourself?

We run it for you on a cluster of your own, with backups, upgrades and written support. Starter and Premium begin with a 7-day trial.