Domains and URLs

Learn how Wristband uses default vanity domains and custom domains to provide application-level and tenant-level URLs for hosted pages and APIs.

Overview

Every Wristband application and tenant is assigned a default vanity domain when it is created. These domains identify the application or tenant and are used to construct URLs for Wristband-hosted pages, API endpoints, and authentication workflows.

You can also configure custom domains to use your own domain names for Wristband-hosted experiences. Custom domains can be configured at the application level, the tenant level, or both.

Default Vanity Domains

Wristband automatically assigns vanity domains to each application and its tenants. For example, suppose you sign up for Wristband with the company name yourcompany, create an application named yourapp, and add two tenants named customer01 and customer02. Wristband generates the following vanity domains:

ResourceDefault Vanity Domain
Applicationyourapp-yourcompany.us.wristband.dev
Tenant customer01customer01-yourapp-yourcompany.us.wristband.dev
Tenant customer02customer02-yourapp-yourcompany.us.wristband.dev

Figure 1: Default application and tenant vanity domains.

Application Vanity Domains

An application vanity domain is generated when you create a Wristband application.

For example, if you sign up for Wristband with the company name yourcompany and create an application named yourapp, the application's default vanity domain would be:

yourapp-yourcompany.us.wristband.dev

The components of this domain are:

  • Application Name (yourapp): The name assigned to the Wristband application.
  • Wristband Tenant Name (yourcompany): The name of your Wristband tenant (i.e., company).
  • Region (us): The geographic region where the application is deployed.
  • Wristband Apex Domain (wristband.dev): Wristband's apex domain.

Figure 2: Structure of an application vanity domain.

Application vanity domains are used for:

  • Hosted Pages and APIs: Application-level hosted pages and API endpoints.
  • Identity Provider Callbacks: Callback URLs for application-level external identity providers.
  • Token Issuer: The issuer (iss) claim in access and ID tokens.

Tenant Vanity Domains

Each tenant receives its own vanity domain, constructed by prefixing the tenant name to the application's default vanity domain.

For example, if you created a tenant with name customer01 under the yourapp application, the tenant's default vanity domain would be:

customer01-yourapp-yourcompany.us.wristband.dev

The components of this domain are:

  • Tenant Name customer01): The name of the tenant.
  • Application Name (yourapp): The name assigned to the Wristband application.
  • Wristband Tenant Name (yourcompany): The name of your Wristband tenant (i.e., company).
  • Region (us): The geographic region where the application is deployed.
  • Wristband Apex Domain (wristband.dev): Wristband's apex domain.

Figure 3: Structure of a tenant vanity domain.

Tenant vanity domains are used for:

  • Hosted Pages and APIs: Tenant-level hosted pages and API endpoints.
  • Identity Provider Callback URLs: Callback URLs for tenant-level external identity providers, including SAML assertion consumer service (ACS) URLs.
  • Identity Provider Configuration: Domain-based identifiers used in external identity provider configurations, such as SAML service provider (SP) entity IDs.
  • Authentication Session Cookies: Wristband authentication session cookies are scoped to the tenant domain used during the authentication flow.

Custom Domains

Custom domains allow you to use domain names owned by your organization instead of Wristband's default vanity domains for hosted pages and API URLs.

For example, you might use auth.yourapp.io for your application and auth.customer01.com for a tenant that requires its own branded login experience.

Custom domains can provide a more consistent login experience, align hosted pages with your branding, and make URLs easier to recognize.

Custom Domain Infrastructure

Wristband custom domains are powered by SaaS Custom Domains.

Application Custom Domains

An application custom domain replaces the default application vanity domain for URLs generated by Wristband. It also serves as the base domain for tenants that do not have their own active custom domain.

For example, if your application custom domain is auth.yourapp.io, the resulting URLs are:

ResourceDomain
Applicationauth.yourapp.io
Tenant customer01customer01.auth.yourapp.io
Tenant customer02customer02.auth.yourapp.io

Wristband prefixes each tenant's name to the application custom domain to maintain a unique domain for that tenant.

Figure 4: Application custom domains provide the base domain for tenant URLs.

Tenant Custom Domains

A tenant custom domain allows an individual tenant to use its own domain instead of the default vanity domain or a domain derived from the application's custom domain.

Wristband determines which domain to use for a tenant based on the following rules:

  • Tenant Custom Domain: Takes precedence when the tenant has an active custom domain.
  • Application Custom Domain: Used when the tenant does not have an active custom domain. Wristband prefixes the application custom domain with the tenant name.
  • Default Tenant Vanity Domain: Used when neither the tenant nor the application has an active custom domain.

For example, suppose your company is named yourcompany, your application is named yourapp, and you have a tenant named customer01. The following table illustrates how different custom domain configurations affect the domain used for that tenant:

Tenant Custom DomainApplication Custom DomainDomain Used for customer01
auth.customer01.comauth.yourapp.ioauth.customer01.com
Not configuredauth.yourapp.iocustomer01.auth.yourapp.io
Not configuredNot configuredcustomer01-yourapp-yourcompany.us.wristband.dev

Figure 5: A tenant custom domain takes precedence over the application custom domain.

How Custom Domains Affect Wristband

When a custom domain is active, Wristband uses it to generate URLs and configure authentication-related resources. The following sections explain the main effects.

Hosted Pages

Wristband-hosted pages, such as login and signup pages, use the active domain for the application or tenant. For example, a tenant login page can change from:

https://customer01-yourapp-yourcompany.us.wristband.dev/login

to:

https://customer01.auth.yourapp.io/login

Figure 6: A tenant login page uses the active application custom domain.

Email Action Links

Links in Wristband-generated emails, such as invitation and password reset links, use the active custom domain instead of the default vanity domain.

Figure 7: An invitation email uses an action link with the active custom domain.

API URLs

You can make Wristband API requests using the active application or tenant custom domain, as appropriate for the endpoint.

Figure 8: An application-level API request using a custom domain.

Default Vanity Domains Remain Available for APIs

Enabling a custom domain does not disable the default vanity domains. Existing API integrations can continue using their original Wristband vanity domain URLs.

Token Issuer Claims

The issuer (iss) claim in Wristband access and ID tokens identifies the issuing application. By default, it uses the application's vanity domain. When an application custom domain is active, the issuer changes to that domain.

For example:

https://yourapp-yourcompany.us.wristband.dev

becomes:

https://auth.yourapp.io

Figure 9: An application custom domain changes the issuer claim in access and ID tokens.

JWT Issuer Validation

If your application validates the issuer (iss) claim in Wristband access or ID tokens, ensure that the expected issuer matches the application's active domain. When an application custom domain is enabled, the token issuer changes to use that domain.

Authentication Session Cookies

Wristband creates an authentication session cookie to maintain a user's authenticated state within a tenant. The domain associated with that cookie depends on the domain used for authentication.

  • Login: When a tenant's default vanity domain is used for the Authorize Endpoint, the session cookie is scoped to that domain. When the tenant's active custom domain is used, the cookie is scoped to that custom domain.
  • Other Authentication Workflows: Signup, new-user invitations, existing-user invitations, and password resets with Immediate Login enabled can also create authentication session cookies. These workflows use the tenant's active custom domain when one is available; otherwise, they use the default tenant vanity domain.

Authentication Sessions Are Domain-Specific

Wristband authentication sessions are maintained using cookies scoped to the domain where the session was established. Because browsers do not automatically share cookies across different domains, an authentication session established on one domain is not available on another.

For example, if a user authenticates through a tenant's default vanity domain, their authentication session is not automatically shared with the tenant's custom domain. Accessing the custom domain may require the user to authenticate again.

This is particularly important when enabling or changing custom domains, as existing authentication sessions are not automatically transferred to the new domain.

External Identity Provider Redirect URLs

External identity providers redirect users back to Wristband after authentication. Wristband generates these callback URLs using the applicable default vanity domain or active custom domain.

For example, enabling an application custom domain changes the callback URL generated for an application-level Google social identity provider.

Figure 10: An application-level Google identity provider callback URL using a custom domain.

Existing Identity Provider Callbacks Remain Valid

Redirect URLs using default vanity domains continue to work after custom domains are enabled. Existing integrations do not need to be updated immediately. If you want an external identity provider to use the new callback URL, make sure to update the identity provider's configuration.



Did this page help you?