This is the single most common integration question: “After login, how do I redirect to my business page and not the Builder?” The short answer — link directly to your page’s URL and Prisme.ai brings the user back to it automatically after sign-in.
How the redirect works
There are two separate steps in the sign-in flow, and it’s important not to confuse them:The login callback (fixed)
Prisme.ai uses OpenID Connect. After the identity provider authenticates the user, it returns them to a fixed callback URL on your console domain (
/signin). This URL is not the page the user ends up on — it only completes the secure token exchange. You cannot point it at an arbitrary page, and you don’t need to.Solution 1 — Link directly to your page (recommended)
Point your integration at your page’s URL directly. When an unauthenticated user opens it, Prisme.ai remembers that destination, sends them through login, and returns them exactly there afterward. The Builder is never shown. Deployed apps and pages are reachable on two routes:- /p/your-app — standalone
- /apps/your-app — in-platform
Solution 2 — Force a destination explicitly
If your integration sends users to the sign-in page itself, append areturnTo parameter pointing at your page. The value must be a relative path on the same domain, URL-encoded:
/p/<app-slug>.
Solution 3 — Make the app public (no login)
If your page or app doesn’t require a signed-in Prisme.ai user, deploy it as public. A public app renders immediately, without ever prompting for authentication. This is the simplest option when the experience is fully anonymous or handles its own session — there is no redirect to manage at all.Solution 4 — Set an organization default landing page
To change where every user in your organization lands when they open the platform root, set a default home page in AI Governance → Platform Customization. When a user arrives at the root URL with no specific destination, they are redirected to the page you choose.This applies organization-wide and only when a user lands on the root URL. For a targeted, per-integration redirect, prefer Solution 1 (link directly to the page).
Choosing an approach
Embed in a mobile app / web view
Open
/p/<app-slug> directly. The user signs in once and lands in your app.Drive the sign-in page yourself
Use
/signin?returnTo=%2Fp%2F<app-slug> to force the destination.Fully anonymous experience
Deploy the app as public — no login, no redirect.
Change the default for everyone
Set the home page in AI Governance → Platform Customization.
Embedding in a mobile app — checklist
Open that URL in the web view
Not the platform root, and not
/signin. Opening the page directly is what triggers the automatic return-to-page behavior.Keep the whole flow in one web view
The sign-in round-trip must happen in the same web view / browser context. If login opens in a separate external browser, the saved destination is lost and the user falls back to the root page. Use an in-app browser tab that shares storage with your web view (for example,
SFSafariViewController / Custom Tabs configured for the same session, or the web view itself).Bring your own frontend (OIDC integration)
Everything above assumes the user ends up on a Prisme.ai page. If instead you have your own application and want to use Prisme.ai only as your login provider (OpenID Connect), the redirect works differently — and you control it with two standard OIDC parameters.Use this only if you are not rendering a Prisme.ai page. You run the login round-trip yourself and keep the user inside your own app. If you are embedding a Prisme.ai page — even inside your own shell — the
/p/<app-slug> approach above is far less work.The two parameters you control
When you send a user to Prisme.ai to sign in, you pass:redirect_uri— the URL on your domain where Prisme.ai sends the user back after login. This is the “final place.”state— any value you choose; Prisme.ai hands it back to you unchanged. Use it to remember which screen to show afterward.
The flow in three steps
Prisme.ai sends the user back
After login, the browser is redirected to your
redirect_uri with a one-time code and your state returned verbatim:Getting your redirect_uri approved
Prisme.ai only accepts a redirect_uri that was registered in advance — this is what prevents an attacker from hijacking the login. Choose one of:
- Register your own client (recommended)
- Reuse the platform client (self-hosted)
Ask your Prisme.ai administrator to register an OIDC client for your app. You provide the exact callback URL(s) you want — any path, for example The response contains your
https://your-app.com/callback.Registration (performed by an administrator):client_id. allowedResources and resourceScopes are mandatory — without them the login is rejected. Valid scopes are any subset of:
workspaces:write workspaces:read events:write events:read webhooks pages:read files:write files:read.Things to know
- No client secret. Clients are public and use PKCE (
code_challenge_method=S256). Generate a fresh verifier/challenge per login. - The
/signincallback path is fixed for the platform client. Only a custom-registered client (first tab) lets you pick your own callback path. - You don’t need a
resourceparameter. Prisme.ai defaults it to its platform API automatically. (A custom client must still declareallowedResources/resourceScopesat registration, as shown above.) stateis the right way to carry your post-login destination — it is echoed back untouched, so your callback can route the user wherever you need.
Migrating from legacy pages
If you previously embedded Prisme.ai legacy pages (served on a dedicated*.pages.<host> subdomain), you may have controlled the post-login destination with a redirect property on the Signin block, a ?redirect= query parameter, or a #__redirect_after_auth__ URL hash. Those accepted absolute URLs.
On the current platform:
- The equivalent is the
returnTomechanism described above, and it is automatic when you link directly to the page. returnToaccepts relative same-origin paths only. If your legacy integration passed an absolute URL, replace it with a relative path such as/p/<app-slug>.
Security
You cannot redirect a user to an arbitrary external site after login. Every post-login destination is either a relative same-origin path (validated to rejecthttp://… and //…), the fixed sign-in callback, or your organization’s configured home page. This is by design and protects users from open-redirect phishing.