Auth Hosting

The Auth Hosting App is a hosted React application that runs your Descope Flows. Every Descope project includes it by default. Rather than embedding the Descope SDK in your own frontend, you point your authentication redirects at this hosted page and Descope handles the rest.

It covers any situation where Descope acts as an OAuth or SAML provider: Federated Applications, Inbound Apps, and MCP server authorization.

The hosted page at https://<Your Descope API Host>/<YOUR_PROJECT_ID> is available to every project out of the box.

Rather than embedding authentication UI in your own app, you redirect users to a fully managed, brandable page that Descope hosts for you.

Building your own frontend?

If you're developing your own frontend application, you can embed Descope flows directly using our SDK components for a more seamless, native experience. Auth Hosting is the right choice when you don't have a frontend, or prefer not to embed.

When Auth Hosting Applies

Auth Hosting is relevant any time Descope is the identity provider in a redirect-based flow:

  • Federated Applications — when users authenticate via OIDC or SAML and your app redirects to Descope as the IdP
  • Inbound Apps — when an OAuth client initiates an authorization code flow and needs a hosted consent screen
  • Agentic Client — when an Agent or MCP client like Claude or Cursor triggers the authorization flow for a Descope Resource

In all three cases, the redirect lands on whichever URL you've configured as the Flow Hosting URL for that app or server.

Configuring Flow Hosting

Each Federated App, Inbound App, and Agentic Client in the Descope Console has a gear icon next to its flow selection.

Flow hosting configuration modal

Clicking it opens the flow hosting configuration modal for that specific app. The modal gives you two options:

Hosted by Descope

Descope serves the flow at https://<Your Descope API Host>/<YOUR_PROJECT_ID>.

Flow hosting configuration modal

Select this option and configure the following:

SettingDescription
FlowThe Descope Flow to run when a user arrives at the hosted page.
StyleThe flow style to apply. Each app can use a different style, so you can match branding per application.
ThemeLight, dark, or system — controls the color scheme of the hosted page.
TenantA hardcoded tenant slug. Set this when every user arriving through this app should authenticate against a specific tenant — for example, to automatically redirect to that tenant's SSO provider or apply tenant-specific flow logic, without requiring users to type an email first.
Debug modeShows the debug overlay during the flow. Useful for testing; turn it off before going to production.

The Flow Hosting URL at the top of the modal reflects your current settings as query parameters and updates as you make changes. You can also edit the URL directly — it serves as the source of truth. If you manually modify the URL, the panel settings update to match.

Self-hosted

Select this option if you've embedded a Descope flow component inside your own web application. Provide the URL where the flow lives.

Flow hosting configuration modal

When using OIDC flows, the redirect_uri from the initial /authorize request is used automatically — you don't need to hard-code it.

Use this option when you need to pass custom values into the flow from your application, or when you want full control over the surrounding page (layout, branding, background images).

More Customization Options

The base URL requires your project ID as a path segment: https://<Your Descope API Host>/<YOUR_PROJECT_ID>.

All query parameters are optional. The console modal manages flow, style, theme, tenant, and debug for you. Use the URL directly for the parameters it doesn't expose.

ParameterDefaultDescription
flowsign-up-or-inWhich flow to run. Example: ?flow=login
tenantTenant ID or domain. When set, Descope skips the email input screen and routes directly to that tenant's SSO provider. Accepts a tenant ID (?tenant=T2UjlUN1tJsRnrV3jnAkJ3WziaEq) or a domain (?tenant=descope.com).
styleProject defaultWhich flow style to apply. Example: ?style=my-brand
themelightColor scheme. Options: light, dark, or os to follow the system setting. Example: ?theme=dark
bgBackground color or image. Accepts a CSS color name (bg=red), a URL-encoded hex value (bg=%23ff0000), or an image URL sized to cover the screen (bg=https://example.com/bg.jpg).
wideSet ?wide=true to widen the flow container. Useful for large forms built with Flow screens.
widthFlow container width in pixels or viewport percentage. Values larger than the screen are clamped. Example: ?width=480px or ?width=50%
heightFlow container height in pixels or viewport percentage. Values larger than the screen are clamped. Example: ?height=600px or ?height=80%
shadowShow or hide the drop shadow on the flow container. Set ?shadow=false when using Native Flows.
debugSet ?debug=true to show the debug overlay. Not recommended for production.
store_last_auth_usertrueSet ?store_last_auth_user=false to prevent saving the last authenticated user after the flow completes.
client.*Any parameter prefixed with client. is forwarded to the Descope component as its client prop. Example: ?client.k1=v1&client.k2=v2 passes { k1: 'v1', k2: 'v2' } to the component.

Favicon

Note

Favicon configuration applies to the Default OIDC Federated Application only. Custom Federated Apps and Inbound Apps do not currently support favicon overrides via Auth Hosting.

For the default federated application, you can replace the Descope favicon with your own branding.

Open the default OIDC Federated Application settings in the Descope Console, click the pencil icon on the favicon, and upload your image. The file must be under 1 MB.

Background and Styling

Background Color or Image

Add the bg parameter to your Flow Hosting URL to set a background behind the flow container:

  • Color name: ?bg=navy
  • Hex color (URL-encoded): ?bg=%23ff6600
  • Image URL: ?bg=https://example.com/background.jpg

Image backgrounds are sized to cover the full screen. You can append bg directly to the Flow Hosting URL in the console modal, since the modal doesn't expose it as a dedicated field.

For a fully custom background — CSS gradients, video, or precise positioning — self-host the app and modify the layout directly.

Flow Style and Theme

The console modal exposes Style and Theme settings per app. Use Style to apply a specific set of visual tokens (colors, fonts, border radius) from your Styles configuration. Each app can carry a different style, which lets you match branding per application or per tenant.

Use Theme to control whether those tokens render in light, dark, or system mode (which follows the user's OS preference).

Both settings update the Flow Hosting URL automatically. You can also set them via the style and theme query parameters if you're constructing the URL manually.

For deeper customization beyond what styles support, self-host the app.

Custom domain

If you've configured a custom domain (available on Pro plans and above), the Auth Hosting App is automatically served from that domain. Your Flow Hosting URL updates to reflect it — no separate setup required.

Self-hosting the Auth Hosting App

For changes that go beyond what query parameters support — custom JavaScript, custom layout, or passing flow inputs from your frontend — you can self-host the app entirely.

The auth-hosting repository includes a one-click Vercel deploy button. You can also clone it and deploy to AWS, Netlify, or DigitalOcean.

Once deployed, replace the Flow Hosting URL in your app configuration with your own deployment's URL.

Was this helpful?

On this page