Reading starts here
ChurnAtlas

Redirect URI rules: 5 checks for CS app registration

Short answer. Check five redirect URI rules before registering a CS app: absolute addresses, length limits, exact matches, local testing, and production cleanup.

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

Published · Sources checked · 13 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 registering a CS app, check that redirect URIs are absolute, within length limits, exact, tested locally where needed, and restricted to production destinations.

Key takeaways

  • Confirm whether the tool is a web app or a native app.
  • Copy full redirect addresses from the vendor's setup guide.
  • Count characters and replace wildcard entries with exact addresses.
  • Test the local setup and remove unused development entries before launch.

A customer-success tool usually needs two things from the systems around it. Staff need to sign in, and the tool needs to pull account data such as contract dates, renewal status, or usage numbers. Both depend on an app registration that your identity provider holds. Most of that form is straightforward: a name, an owner, and the permissions the tool asks for. The field that most often breaks sign-in is the redirect URI, which is the address the identity provider sends the user back to after it approves the sign-in.

A wrong redirect URI rarely fails in an obvious way. Sometimes the user lands on an error page. Sometimes they loop back to the sign-in screen. Sometimes the sign-in works, but the sync job never gets what it needs, and the CS team only learns about it when a rep reports missing accounts. By then the launch date has passed and an engineer is reading logs.

This post is a decision path. First you check one thing about the app. Then you follow the branch that matches the answer, and run the five rules in order. Where a limit or requirement comes from a published page, I link to that page. Identity provider screens and field names change, so confirm each value against the current documentation before you submit.

For related account checks, see single sign-on before linking accounts.

Check first: what kind of app is signing in?

Before you type a single URI, decide which kind of app will receive the redirect. Two cases cover most customer-success tools, and the right checks depend on which one you have.

The first case is a web app. It runs on a server that the vendor or your IT team controls. The user's browser goes to the identity provider, comes back to a fixed address on that server, and the server finishes the sign-in. The second case is a native app, such as a desktop client, a mobile app, or a command-line tool that runs on a user's machine. The IETF's guidance for native apps describes the flow as a list of steps, and one step reads "Client receives the authorization code from the redirect URI" ( RFC 8252, OAuth 2.0 for Native Apps). In both cases the redirect is how the app gets its result back, so the value has to match exactly.

Whichever type you have, think of the sign-in as a sequence. The user starts sign-in in the tool. The tool sends them to the identity provider. The identity provider sends them back to the registered address with the result, and the tool checks that result before it lets the user in. Every step after the first depends on the registered address matching the one the tool sends. That is why this post spends most of its time on that one value.

Here is the branch to follow:

  • If the tool is a web app, apply rules 1, 2, 3, and 5 to every registered address. Apply rule 4 only if your team tests the app on a laptop or a local server.
  • If the tool is a native app, apply all five rules. Rule 4 needs the closest attention, because local testing and loopback addresses come up most often with these apps.

Ask the vendor which type they are. Setup guides often describe the type as "web," "mobile," or "desktop." If the answer is still unclear, ask the vendor to name the flow in writing, and keep that answer in the registration record so the next person does not have to ask again.

One more question belongs at this stage. If the tool also syncs account data through a background job, ask whether that job uses the same registration as sign-in. The sign-in flow and the sync job may need different settings. Ask the vendor which flow each job uses, and register only what each flow needs. A redirect entry that a background job never uses is one more address to review later. For the data workflow, see customer data sync.

Rule 1: confirm each URI is absolute

Look at the value you plan to register. A redirect URI must be absolute, including a scheme such as https and a host name or loopback address. A value like /auth/callback, or just callback, is incomplete. Some forms will reject it outright. Others will save it and then fail during the first sign-in, which makes the error harder to trace.

The requirement comes from the OAuth standard. Microsoft's guidance on redirect URIs explains that, according to section 3.1.2 of RFC 6749, a redirection endpoint URI must be an absolute URI ( Microsoft Learn: Redirect URI (reply URL) best practices and limitations). That is the test you apply. If the value is not absolute, it is not ready.

Branch: if the vendor gives you only a path, do not fill in the host yourself. Ask the vendor for the full address, including the host, for each environment you will use. A common setup is one address for production and one for a sandbox or test environment. Write each full address into the registration record exactly as the vendor provides it, including the scheme.

Copy the values; do not retype them. Retyping is the usual source of small errors, such as a missing letter or a changed word in the path. Copy from the vendor's setup page into the form, then paste the same value back into your record so the two match.

Rule 2: check the length limit

Count the characters in each URI. Length limits differ between identity providers, and a callback path can grow longer than expected. Some vendors put a customer identifier or a setup value into the path. Check the vendor's documentation before you assume the path is short enough.

For Microsoft Entra ID, the limit is stated. Microsoft says: "You can use a maximum of 256 characters for each redirect URI you add to an app registration" ( Microsoft Learn).

Branch:

  • If you use Entra ID and the URI is 256 characters or fewer, move on to rule 3.
  • If you use Entra ID and the URI is over 256 characters, do not work around the limit by changing the URI on your side. Ask the vendor for a shorter callback path. Do not register a truncated or altered address, because the value in the registration must match the one the app sends during sign-in.
  • If you use a different identity provider, look up its own limit before you assume that 256 applies. Its documentation is the only reliable source for its number.

Here is how the check looks in practice. Take a callback path the vendor proposes, and count the characters of the full address, not only the path. The host, the scheme, and any query text all count toward the total, so a path that looks short on its own can reach the limit once it is attached to a host. Measure the whole string you would paste into the form.

Write the character count in the registration record next to each URI. When someone changes the path later, the number shows whether the new value is close to the limit before the form rejects it.

Illustrative example: checking a long address

An illustrative full URI contains 280 characters. It exceeds the registration limit, so ask for a shorter callback address. If the replacement contains 90 characters, it clears the length check; continue with the remaining rules.

Rule 3: register exact addresses and avoid wildcards

Some vendors ask you to register a pattern rather than a single address. A wildcard host, such as one that matches any subdomain of the vendor, lets one entry cover many destinations. That can look convenient for a CS tool that serves many customer subdomains. It also means the identity provider will send sign-in results to any address that matches the pattern, including ones you have never checked.

Microsoft's guidance is direct about this. It says: "Though it's possible to set a redirect URI with a wildcard by using the manifest editor, we strongly recommend you adhere to section 3.1.2 of RFC 6749. and use only absolute URIs" ( Microsoft Learn).

Branch:

  • If the vendor asks for a wildcard, ask for the full list of exact hosts and paths the tool will use. Register each one as its own entry.
  • If the vendor cannot give you a list, because it creates a new host for each customer, ask how the redirect works for a new customer before you register anything. Hold the registration until you have a written answer.
  • If the vendor's list is short, register the entries exactly as listed, with a separate entry for each environment and host.

Exact means exact. A trailing slash, an extra path segment, or a different host name can stop a value from matching, even when it looks the same to a person reading it. Compare each entry against the vendor's list character by character, not by eye.

Wildcards also complicate reviews. When your security or IT team asks which addresses can receive sign-in results, a wildcard answers with a pattern, not a list. An exact list gives the reviewer something to check line by line, and it gives you a baseline to compare against when the vendor changes its setup later. If the vendor pushes back on exact entries, ask it to explain the reason in writing, because that reason usually shows which entries you actually need.

Rule 4: plan local testing on purpose

Your team will probably want to test the sign-in on a laptop or a local server before launch. Microsoft describes adding the endpoint where you run your app locally during development ( Microsoft Learn).

The question is which local form to register. Microsoft recommends the IP literal for loopback: "To prevent your app from breaking due to misconfigured firewalls or renamed network interfaces, use the IP literal loopback address 127.0.0.1 in your redirect URI instead of localhost" ( Microsoft Learn). In practice, that means registering a 127.0.0.1 address with a path rather than a localhost address with a path, unless your test setup needs localhost for another reason.

Ports are a separate point. The port matching rule is specific to localhost. Microsoft says: "Due to ephemeral port ranges often required by native applications, the port component (for example, :5001 or :443) is ignored for the purposes of matching a localhost redirect URI" ( Microsoft Learn). That quote covers localhost only. If your tests use 127.0.0.1, do not assume the same port behavior applies. Test the exact form you registered.

Scheme matters too. On Entra ID, an http redirect URI on the 127.0.0.1 loopback address needs extra work. Microsoft says: "To add a redirect URI that uses the http scheme with the 127.0.0.1 loopback address, you must currently modify the replyUrlsWithType attribute in the application manifest" ( Microsoft Learn). The word "currently" signals that this may change, so check the page again when you plan the work.

Branch:

  • If the tool is a web app and your team tests against a local server over https, add the local address as a separate entry. Label it as development in the registration record, and plan to remove it under rule 5.
  • If the tool is a web app on Entra ID and local testing uses http on 127.0.0.1, your engineer must edit the manifest. Plan the time for that. Do not expect to add the address from a simple form field.
  • If the tool is a native app, follow the loopback and port guidance above, and test the sign-in from the kind of machine your users will use, not only from a developer's setup.

Before you rely on a local test, write down the exact address the test uses, including the scheme, the host, the port if there is one, and the path. Then confirm the registration matches it, character for character. A test that passes on a laptop but fails in production usually points to a difference in one of those parts, not to a problem with the test itself.

Rule 5: remove development entries and match production exactly

Local addresses exist for testing. When the tool goes live, check the registration and remove any entry that points to a laptop, a test server, an old environment, or a vendor address you no longer use. Leftover entries are not always harmful, but each one is another destination the identity provider will accept for sign-in results. Production should carry only what production needs.

Then compare each production entry with what the CS tool actually sends. Run a sign-in with a test account in a non-production environment first, and read the error text closely. A message about a redirect or reply mismatch often points to a registered value and a sent value that differ. Find out which one is wrong, and fix that one. Do not change both values to make them match by guessing. Use the value the vendor confirms in writing.

Record ownership as well. Note who can change the list, who approved the final values, and the date of the last review. A registration that nobody owns tends to collect entries over time, and the next change becomes a guessing exercise.

Plan for changes after launch too. A vendor may update a callback path, add a new environment, or move a sync job to a new host. Treat each of those as a change to the registration, not a quick edit. Before you save it, confirm the new value in the vendor's written notice, test it in the non-production environment, and record who approved it and when it went live. That habit costs a few minutes and saves a lot of guessing later.

Final decision check before you submit

Walk the list in order, and answer each question before you move on.

  1. Is the app a web app or a native app, confirmed in writing by the vendor? If not, go back to the vendor's setup guide.
  2. Is every URI absolute, with a scheme and a host or loopback address? If not, fix it first.
  3. Is every URI within the limit for your identity provider? For Entra ID, that is 256 characters or fewer.
  4. Are there any wildcards? If so, replace each one with a list of exact entries.
  5. Are local development addresses separate from production, and is the loopback form the one you tested?
  6. Did a sign-in in a non-production environment succeed using the exact values you plan to register?

If every answer is yes, submit the registration and record the values. If any answer is no, stop and fix that item first. A bad redirect URI caught in the form takes minutes to fix. The same error caught after launch can mean a stalled CS team, a wave of support tickets, and a rushed change to a live system.

Who signs off matters here too. The CS ops lead should own the final list, and an engineer should confirm the technical checks in rules 1 through 4. When both have seen the same record, the handoff is clean, and the next person who needs to change a path knows where to start.

Today, keep the registration record with the vendor's setup guide, the final values, the character counts, and the date you checked them. The next time the vendor changes a path, you will know which field to compare first.

Questions before you submit

What should I check after a redirect mismatch?

Compare the registered value with the address the tool sends. Use the vendor's written confirmation to identify which value needs correcting.

What if the vendor gives me only a path?

Ask for the full address for each environment. Do not guess the host when completing the registration.

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.