Pass the menu and read the page

SignupFolio

OAuth install at signup: 6 steps to hand off a new account

An OAuth marketplace install ends with a working account only when the customer has created or signed into an account in your app. A partner marketplace install looks simple from the outside. The customer clicks a button, approves a screen, and your app appears in their tools. For a growth lead, though, the install is only half the job. The other half is making sure that the person who approved the install ends up with a working account in your product, with the right data attached and a clear path to first use.

That handoff is where many installs go wrong. The customer may not have an account yet. They may have one under a different email address. They may approve the app and then land on a blank page. Each of these problems turns a promising install into a support ticket.

This post walks through six steps to design the install so it ends in a working account. The steps are general enough to apply to most OAuth-based marketplaces. Where a specific rule matters, we link the official documentation so you can check the details for the platform you are targeting.

Key takeaways

  • Use one redirect URL for each environment, and make sure it matches the value registered for your app.
  • Request only the permission scopes that the first useful outcome needs.
  • Create or link the customer's account in your app before the authorization code is exchanged.
  • Test a fresh signup, an existing account, and a denied approval before you announce the install.

Step 1: Register the app and lock down the redirect URL

Every OAuth install starts with registering your app with the platform. You provide details such as the app name and the grant type you need. The Atlassian developer documentation describes this step plainly: you enter an app name and choose the OAuth 2.0 (3LO) grant type for your app. Pick the grant type that matches how your product works, and write down what you chose, because your engineers and your partner contacts will need to refer to it later.

The redirect URL is the most important value you enter at this stage. The same Atlassian page notes that when you use OAuth 2.0 (3LO) in your app, the redirect_uri must match the URL you registered. Even a small difference between the two values is worth fixing before you test.

Pipedrive's OAuth guide describes the same idea from the other side. The authorization code is sent to the URL you entered in the registration form, and only if a user approves the app install. In practice, that means your redirect URL is not a detail to fill in once and forget. It is the address your customer's browser must reach after a successful approval.

Practical checks at this step:

  • Use one canonical redirect URL for each environment, and write each one down.
  • Confirm that the staging and production values are different, so a test install cannot write into a live account.
  • Make sure the URL is reachable without a login wall.
  • Keep a short internal note on which team owns the redirect route. When the flow breaks, you want to know who to call.

Step 2: Set the permission scopes with the customer in mind

Scopes decide what your app can do after the install. They also decide what the customer reads before they click approve. Scopes are not just an engineering concern. They shape whether a growth lead can convert the install at all.

Pipedrive's documentation explains that the customer sees a confirmation page after the request. That page presents the details of your app, including its title, company name, and icon, and it explains the permission scopes you set. A customer who sees a long list of permissions they do not understand is likely to hesitate or leave.

Ask for the scopes you need to deliver the first useful outcome, and no more. If your app needs read access to contacts to show a dashboard, request that. If it also wants write access for a feature the customer will not use in the first week, consider delaying that request until the customer asks for the feature. Narrow scopes make the approval screen easier to trust and make the handoff smoother.

Before you finalize the list, sit down with the people who own the product and the people who own the account experience. Ask each of them to explain, in one sentence, why each scope is needed. If nobody can explain a scope in plain words, it probably does not belong on the first install. You can add scopes later through a clear request inside the product, which tends to feel more honest to the customer than a long list on day one.

Make sure the app's title, company name, and icon match what the customer knows from your website and marketing. A mismatch on the approval screen can make a customer pause. When the name on the screen is one they recognize, they are more likely to click through.

Step 3: Build the server-side OAuth flow before you test the marketing

Registration does not give you a working install by itself. Pipedrive's guide is direct about this: after registering the app, you must add the necessary server-side logic to your app to establish the OAuth flow. That logic is what receives the redirect, handles the code, and stores what comes back.

The server-side flow decides what happens for each possible state of the customer: a brand-new visitor, an existing user who is already logged in, an existing user who is logged out, and a visitor who clicks deny or closes the window. Each of these paths needs a plan.

It helps to write the flow as a simple diagram before any code is written. Draw the steps from the install button to the first screen inside your product. Label where your team creates a user, where it links an existing user, where it stores the credentials, and where it sends the customer onward. Gaps in this diagram become bugs in production.

Plan for failure too. If the code exchange fails, the customer should see a message that explains what happened and what to do next, not a generic error page. Log enough detail for your support team to match the failed install to the customer's marketplace account without asking the customer for technical details.

Step 4: Hand off the approval screen cleanly

The approval screen is the moment the customer decides. It is the one part of the install your team does not build from scratch, so the work is in what happens before and after it. Your team controls the listing copy, the redirect target, and the first screen the customer sees once they return. Those are the places where a smooth handoff is won or lost.

It also helps to remember that the customer may not stay on the approval screen for long. Some people approve in a hurry on a phone, then come back later on a laptop. Your flow should work on either path.

Before the customer reaches the screen, set expectations. A short line on your listing or install page can explain that the next screen asks for permission, that the app name and icon will appear there, and what the customer will see after approval. Customers who know what is coming are less likely to be surprised.

After approval, the customer should arrive back in your flow without friction. The Pipedrive guide states that after the customer clicks "Allow and install," you must make sure the customer has created and logged into an account in your app before exchanging the authorization code. That single requirement shapes the whole handoff. It means the install does not complete until the customer has a real account in your product.

If your product supports sign-in with the marketplace identity, make sure the link between the marketplace user and your account is created at this moment, not later. A customer who approves the install and then has to hunt for a second sign-in will often assume the install failed.

This is the step where the handoff becomes real. The code exchange is the last thing to happen, not the first.

Your flow needs to handle three situations.

The customer has no account. Send them to a signup step that is short and specific to this install. Ask only for what you need to create the account and connect it to the marketplace install. Pre-fill what you can from the marketplace context, and explain why each field is needed. Do not make them restart the install after they sign up.

The customer has an account under a different email address. This is common when a team member signs up with a work address and the marketplace uses a personal one, or the reverse. Offer a clear way to sign in with an existing account and confirm which account the install will link to. Give the customer a visible way to back out if they chose the wrong one.

The customer has an account and is already logged in. Confirm the account, link it, and exchange the code. The approval step should feel like one action, not a chain of forms.

Once the account is ready, exchange the authorization code. The Atlassian documentation notes that the code can be exchanged for an access credential, as described in step 2 of that guide. Store the credential against the account you just created or linked, and record the install so your team can see it later.

Keep the order fixed. The order of operations is a product decision as much as an engineering one.

It also helps to avoid half-finished states. If the account is created but the credential exchange fails, the customer should not be left with an account that looks connected but cannot read any data. Decide in advance how your system marks an install as pending, how it retries, and what the customer sees while the install is pending. A visible "setting up" message is far better than a silent gap that support discovers a week later.

Step 6: Confirm the account works before you call the install done

An install is finished when the customer can use the product, not when the approval screen closes. This last step is about proving that the handoff worked from the customer's point of view.

Start with an end-to-end test. Use a fresh test account on a staging environment and walk through the entire flow: click install, approve, sign up or sign in, and land on the first screen. Then repeat the test with an existing account, a logged-out browser, and a denied approval. Each path should end somewhere sensible. If a path ends on an error page, fix that path before you launch. For a related checklist, see Test signup authentication steps before release.

Next, check the data. The account should exist, the link to the marketplace install should be correct, and the credential should be stored where your app expects it. Confirm that a second install from the same customer does not create a duplicate account. Duplicate accounts are hard to clean up later, and they confuse the customer about which workspace holds their data.

Then check the first screen. A working account is one where the customer can see something useful within a short time. If the first screen is empty, add a clear next step: a sample record, a setup checklist, or a prompt to connect the data they came to use. Growth leads often focus on the install count. The better measure is whether the install produced an account that someone actually uses.

Finally, make sure your support team can see the install. When a customer writes in saying the install did not work, they should be able to find the install record, the linked account, and the step where the flow stopped. A support view that shows the install state in plain words saves hours of back-and-forth.

Use a short checklist before you announce the install as live:

  • A fresh signup completes from install click to first screen without manual help.
  • An existing user with a different email can choose the right account or back out.
  • A denied approval leaves no half-created account behind.
  • Each install maps to exactly one account, and reinstalls do not create duplicates.
  • The first screen shows a clear next step for a customer who has no data yet.
  • Support can find the install record and the step where it stopped.

If any item fails, treat the install as not ready. A partner marketplace listing is visible to many customers at once, so a broken path will show up quickly and repeatedly.

What to take back to your team

The six steps are simple to list and harder to run. The common thread is that the install is not complete until the customer has a working account in your product.

When you review your current install flow, walk through it as a new customer on a phone and then as an existing customer on a laptop. Write down every place where you would stop, guess, or ask for help. Those points are where the handoff breaks. Fix those first, and the install will do what it is meant to do: bring in a new account that works.

Once the checks pass, keep measuring after launch. Look at how many installs reach a working account, not only how many customers click install. A gap between those two numbers is the clearest sign that the handoff still has a problem, and it points you to the step where customers are dropping out.

Illustrative example: measuring the handoff

Suppose 10 customers start an install in one week, and 8 of them finish with a working account. That is an 80 percent handoff rate. Look at the two that did not finish. Check whether they stopped at the approval screen, the account step, or the first screen, and fix that step before the next measurement.

Your next step today

Open the redirect settings for your staging environment and compare the URL with the one in your code. If they differ, fix the value before anything else. For a fuller review of your signup flow, see signup release review checks for interactive flows.

Frequently asked questions

Does the redirect URL have to match exactly?

Yes. Compare it with the URL you registered in Step 1 before you test.

Does the account have to exist before the code exchange?

Yes. Create or link the account first, so the code exchange comes last, as Step 5 explains.

Should you request every permission scope at install?

No. Ask only for the scopes the first useful outcome needs, and add others later through a clear request inside the product.

Sources and check date

Related posts

More posts