Self-serve domain verification
Domain Verification allows your customers to claim ownership of a domain. Once they have claimed ownership, features that require a higher level of trust and security can be activated.
WorkOS Domain Verification provides a self-serve flow through the Admin Portal in which IT Admins can prove ownership through the creation of DNS TXT records.
You’ll need a WorkOS account.
All domains belong to an Organization. In order to create and verify a domain through the Admin Portal, an Organization must first be created.
If you chose to copy the setup link you can share it over email, Slack or direct message. We also recommend including details on what the link does and how long the link is active.
Admin Portal links can also be programmatically generated for the domain verification flow. This can be used to provide a link to the Admin Portal flow directly in your application.
You’ll have to generate the link with the domain_verification
intent:
import { WorkOS } from '@workos-inc/node'; const workos = new WorkOS('sk_example_123456789'); const { link } = await workos.portal.generateLink({ organization: 'org_01EHZNVPK3SFK441A1RGBFSHRT', intent: 'domain_verification', }); // Redirect to link
Please refer to the Admin Portal Integration Guide for additional integration details.
After receiving the invitation and clicking on the setup link, the organization’s admin is prompted to enter the domain they wish to verify.
If the domain is valid, we identify the DNS service provider and offer custom setup instructions.
The admin will find instruction to add a DNS TXT record with a token generated by our system.
When we detect and verify the DNS record, we will mark the domain as verified
and dispatch a domain verification event to inform your application.