Reading starts here
ChurnAtlas

2 PKCE settings to check before customer sign-in

Short answer. Before go-live, confirm two PKCE settings in your customer's app sign-in: the code verifier and the code challenge method, both defined in RFC 7636.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 10 min read

  1. Inputs Your product plan, your permissions and the task you want to finish.
  2. Decision Whether the help page matches what you see on your screen.
  3. Next action Do the task on one test account, then record what you changed.

Before you approve a customer's app sign-in, read two PKCE settings: the code verifier and the code challenge method. Both are defined in RFC 7636 from the IETF.

  • The code verifier is a secret the client creates and records, then sends to the authorization server's exchange endpoint; the RFC recommends a 43-octet URL-safe string.
  • The code challenge method may be "S256" or "plain", and defaults to "plain" if the field is absent.
  • "S256" protects the verifier from being disclosed; "plain" sends the verifier in readable form.
  • A client that has already tried "S256" must never downgrade to "plain".

TL;DR

Before you approve a customer's app sign-in, read two PKCE settings. First, the code_verifier — the secret the client creates and records at the start of the flow. Second, the code challenge method — either "S256" or "plain", which defaults to "plain" if it is not sent.

The RFC is blunt about one rule: once a client has tried "S256", it must never fall back to "plain". And it tells you why "S256" matters — the use of "S256" protects against disclosure of the "code_verifier". Those two facts cover most of what a customer success manager should check on this screen.

Key takeaways

  • The code_verifier is a secret the client creates and records, then sends later to the authorization server's exchange endpoint.
  • The code challenge method may be "S256" or "plain", and the RFC's default when the field is absent is "plain".
  • "S256" is there to stop the verifier being disclosed; "plain" sends the verifier in a form that can be read directly.
  • A client that has already tried "S256" is not allowed to downgrade to "plain" afterwards.
  • The recommended verifier is a URL-safe string of 43 octets, and the STRING type is a sequence of zero or more ASCII characters.

Why these two settings sit at the front of a sign-in review

A customer's app sign-in runs on PKCE when the client is a public client, and PKCE works by pairing a secret with a challenge. The secret is the code verifier. The challenge method is the rule that turns that secret into the challenge value. If either is wrong, the sign-in either fails or is protected less than the standard intends.

For a customer success manager checking a setup before go-live, this is not an abstract protocol question. You are looking at two fields in a form or a config file. One says what the secret is. The other says how it was hashed. Your job is to read both and confirm they line up with what the RFC requires.

The flow is simple. The client creates and records a secret named the code_verifier. It then sends a challenge derived from that secret along with the authorization request. Later, at the authorization server's exchange endpoint, it sends the original verifier. The authorization server checks that the two match. Under "S256" the challenge is a hash of the verifier, which gives stronger protection than "plain".

Here is the side-by-side view of the two settings you are reading, drawn straight from the RFC:

Setting What the RFC says
Code verifier type STRING: zero or more ASCII characters
Recommended verifier construction 43-octet URL safe string
Code challenge method options "S256" or "plain"
Default when field is absent "plain"
Downgrade after "S256" MUST NOT downgrade to "plain"

Setting one: the code verifier

The code verifier is the secret half of PKCE. The client generates it, stores it for the length of one flow, and presents it only when it redeems the authorization code. If the verifier leaks, the whole proof falls apart, because anyone holding it could complete the exchange.

The RFC defines the verifier's type as a STRING, and a STRING is a sequence of zero or more ASCII characters. It does not have to contain letters, digits, or a particular pattern beyond staying inside ASCII.

The RFC also gives a recommended construction: a 43-octet URL safe string to use as the code verifier. URL-safe matters here, because the verifier is sent to the authorization server's exchange endpoint in form bodies. Characters that need escaping would create parsing problems. Sticking to the URL-safe set avoids that.

Here is what to check when you read this setting on a customer's setup:

  • The client is actually generating a fresh verifier for each flow, not reusing one across sign-ins.
  • The verifier should stay within ASCII, since the RFC defines STRING as a sequence of ASCII characters, and its recommended form is a URL-safe string.
  • The verifier is URL-safe, so it survives the round trip through form posts.
  • The verifier is long enough to be worth protecting — the RFC's own construction is 43 octets.

The last point connects directly to the second setting. A long verifier only helps if the challenge method actually hides it.

Setting two: the code challenge method

The code challenge method is the second setting you read before go-live. It tells the authorization server how to recompute the challenge from the verifier when the authorization code is redeemed. The RFC defines two methods, named in the spec as "S256" and "plain".

The field is optional. The RFC states it is OPTIONAL, defaults to "plain" if not present in the request. A customer who leaves the field blank gets plain by accident.

The two methods work as follows. With "S256", the challenge sent with the authorization request does not contain the raw verifier. With "plain", the challenge is the verifier itself, unchanged. The RFC gives the reason "S256" exists: the use of "S256" protects against disclosure of the "code_verifier".

The downgrade rule is stated as a hard requirement. RFC 7636 says clients MUST NOT downgrade to "plain" after trying the "S256" method. In practice this means a client that has at some point sent "S256" must never afterwards send "plain" for the same flow. A fallback path in the code that catches an error and retries with "plain" is a violation of this rule.

What a weak setup looks like before go-live

A weak PKCE setup before go-live usually shows one of two signatures. Either the challenge method field is empty, which means the flow will run as "plain". Or the method is set to "S256" but the client's retry path can fall back to "plain" on error.

The first is a blank field. The second is a documented fallback, often written into an integration guide or an error-handling note the customer shares during onboarding.

The verifier itself can also be wrong. A verifier built from non-ASCII characters will not match the RFC's definition of STRING. A verifier with characters that need percent-encoding may break in transit. Either problem can surface as an authorization failure at the end of the flow.

Reading the customer's config

When you open the customer's app registration or OAuth settings, look for the field that names the challenge method. If it is blank, the default applies and the flow runs as "plain". If it reads "S256", confirm that the customer's client never falls back.

Then look at how the verifier is described. If the customer's guide or config mentions a 43-octet URL-safe construction, that matches the RFC's recommendation. If it describes a non-ASCII value, flag it before go-live; if it describes a shorter value, ask about it as a departure from the RFC's recommended 43-octet construction.

What to ask the customer's engineer

Three questions cover the gaps. First: what challenge method do you send, and is it always sent? This catches the blank field default. Second: does any retry path switch the method? This catches the downgrade. Third: how is the verifier generated, and is it 43 URL-safe octets? This catches the generation bugs.

If the customer cannot answer the third question from their own docs, ask them to check with whoever wrote the OAuth client. The verifier is generated in code, not in a dashboard, so the answer lives with the engineer.

Why the default matters at review time

The "plain" default is not a bug in the RFC. It is a documented option, defined as the default when the field is absent. But the default only applies when the field is absent, and an absent field is usually an oversight rather than a decision.

A customer who intended "S256" and left the field blank is running a weaker flow than they think. A customer who deliberately chose "plain" because their client cannot hash is making a different trade. Your review should surface which of the two you are looking at.

The downgrade rule cuts the other way. A client that starts with "S256" and later sends "plain" is breaking a MUST NOT. That is not a style preference. It is a protocol requirement, and it should block go-live until the fallback path is removed.

There is one open question the RFC does not settle for you here: what your own organization's minimum acceptable method is for a given customer tier. The RFC defines both methods and the default, but it does not tell you which to require. Ask your security or platform lead, since that call depends on your own risk policy rather than on the spec.

How the two settings work together

The verifier and the method are not independent choices. The verifier's value depends on the method that protects it. Under "S256", only the hash-derived challenge is sent with the authorization request, so anyone who sees that request never sees the raw verifier. Under "plain", the verifier itself is what travels.

This is why the RFC singles out "S256" for the disclosure point. It protects against disclosure of the code verifier, which is the secret the whole exchange rests on.

The downgrade rule enforces the same logic in time. Once a client has used "S256", falling back to "plain" would send the raw verifier after it has already been handled in hashed form. The RFC forbids that sequence outright.

A worked pass through a pre-go-live check

Take a customer preparing to enable app sign-in for the first time. You open their OAuth client settings. The challenge method field is populated with "S256". Good. You ask whether any retry path changes it. The engineer says a timeout handler retries with "plain" if the first request fails.

That retry path is a downgrade, and the RFC forbids it. Ask them to remove the fallback so the method stays "S256" for the whole flow.

Next you ask how the verifier is built. They point to a helper that draws random bytes and encodes them URL-safe to 43 octets. That matches the RFC's construction, and the URL-safe encoding keeps the verifier intact in the exchange request.

Once the engineer confirms the retry path no longer sends "plain", and the verifier is confirmed, the setup reads clean. The two settings line up: a 43-octet URL-safe verifier, hashed with "S256", with no path back to "plain".

Checklist before you approve go-live

Use this list on the next customer sign-in you review:

  • Challenge method field — present and set to "S256", not blank.
  • No downgrade path — no retry or fallback that sends "plain" after "S256".
  • Verifier generation — 43 URL-safe octets, drawn from ASCII.
  • Verifier lifetime — created and stored for one flow, then discarded.
  • Docs match config — the customer's integration notes describe the same method their client sends.

The first four items map to rules in the RFC; the last is a process check against the customer's docs. The first two cover the method. The next two cover the verifier. The last catches the gap between what a customer says they configured and what their client actually sends.

Related guides: Accessible password fields: 8 settings to check · Auth0 lockout settings: 5 checks before launch · Customer sign-in security review: 4 checks to answer.

Frequently asked questions

What happens if the customer leaves the challenge method blank? The RFC's default applies, and the flow runs as "plain". The verifier travels unhashed. Confirm with the customer whether that was intended or just an empty field.

Can a client switch from "S256" to "plain" if the hash step fails? No. The RFC forbids downgrading to "plain" after trying "S256". A fallback like that must be removed before go-live.

Does the verifier have to be exactly 43 characters? The RFC describes a 43-octet URL-safe string as the construction to use, and defines STRING more widely as ASCII characters. The 43-octet form is the one to look for.

Who should I ask if the customer's client code is not visible to us? Ask the customer's engineer who wrote the OAuth client. The verifier is generated in code, so the answer sits with them, not in a dashboard.

Is "plain" ever acceptable? The RFC allows it and defines it as the default when the field is missing. Whether your customers may use it is a call for your own security or platform lead.

Sources

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.