Set callback and redirect URLs
Get started
If you use organizations in Kinde, you probably build and maintain multi-tenant software. And if you manage multiple subdomains for those tenants, you’ll need to make sure they are redirected to the right subdomain when they authenticate. The most effective way to do this is via ‘organization handles’ supported by a dynamic callback URL.
For every organization that has its own subdomain, you will add an organization handle. The handle and the subdomain need to match exactly. Here’s an example.
Organization | Handle | Subdomain |
---|---|---|
Red | red | red.everycolor.com |
Green | green | green.everycolor.com |
Blue | blue | blue.everycolor.com |
Then you add one dynamic callback URL to your application that routes all the users to the correct subdomain via the organization handle: {organization.handle}.everycolor.com
.
The result is that users of the Red org will be automatically redirected to red.everycolor.com
when they authenticate, and so on.
https://{organization.handle}.<yourdomain>.com.
, and replace <yourdomain>
with your primary domain. For example, https://{organization.handle}.everycolor.com
You can do this via API using the handle
parameter, or manually in Kinde (see below).
blue
for the subdomain https://blue.everycolor.com
. Ensure the subdomain name and the handle match exactly. The handle must also be unique within your Kinde business.