Email Domain Verification: Prove Ownership Before SSO

Single sign-on and automated user provisioning are wonderful conveniences - and dangerous ones if the platform trusts the wrong party. Before empowsec routes anyone signing in with an address on your domain to your identity provider, one question has to be answered beyond doubt: does your organization actually control that domain? Email domain verification is the layer that answers it. It is deliberately unglamorous, takes a few minutes once, and quietly protects every SSO login and every automated onboarding that follows.
We have covered how empowsec's SSO support works with SAML and OIDC in a separate deep dive. This article is about the ownership layer underneath it: how company admins register domains, how the verification check works technically, and why proving domain ownership is what keeps account squatting and takeover attempts out of your security awareness training platform.
Why Domain Ownership Must Be Proven
Imagine a platform that let anyone type in a domain and claim it. A malicious actor - or simply a careless third party - could register your company's domain first, attach their own identity provider to it, and position themselves in the login path of your employees. Even without malice, an unverified domain claim creates ambiguity: two tenants claiming the same domain means the platform can no longer decide where a user signing in with that address belongs.
empowsec closes both doors. A domain can only be registered once across the entire platform, so there is never a competing claim, and nothing trust-sensitive is enabled until the domain is verified. The Configure SSO action for a domain stays locked while the domain is pending - you prove ownership first, then you connect your identity provider. That ordering is the whole point: convenience features are built on top of a verified foundation, never the other way around.
For compliance teams, the same mechanism doubles as documented evidence of control. Verification is recorded with the method used and a timestamp, so you can show an auditor exactly when and how your organization demonstrated control over the identity boundary that your training platform relies on.
Two Verification Paths: DNS TXT Record or Hosted File
When a company admin adds a domain in the settings, empowsec generates a unique verification token for it. Proving ownership then means publishing that token in a place only the domain owner can write to. empowsec accepts two proofs, and checks them in order when you hit the verify action.
The first and most common path is a DNS TXT record. The verification dialog shows you the exact record to create: a dedicated challenge hostname beneath your domain and a value that embeds your unique token. Anyone who can publish DNS records for a domain controls it in the way that matters, which is why the TXT record approach is the industry standard used across major cloud and SaaS platforms. Once the record is live, empowsec looks it up and compares the value against the expected token.
The second path is a hosted verification file, for teams where DNS changes crawl through a slow change-management queue but the website is under their control. You place a small text file containing the verification token in the well-known directory of your website, and empowsec fetches it over HTTPS and compares the contents. The fetch is defensive by design: it runs with a short timeout, and it refuses to follow domains that resolve to private or internal network addresses - a server-side request forgery guard that keeps the verification feature from being abused as a probe into anyone's internal network.
Managing Domains from the Settings Page
The domains page in the company settings keeps the whole lifecycle in one view. Each domain appears as a row with its verification status - a green Verified badge, or an amber Pending badge that opens the verification instructions when clicked. An SSO column shows which identity provider is configured for each verified domain, with a Configure button that stays disabled until verification succeeds. Adding a domain is a single form; the input is validated as a proper domain name and checked for uniqueness across the platform before it is accepted.
Removal is deliberate rather than casual. Deleting a domain that carries an SSO configuration would lock out every user who signs in through it, so empowsec warns you explicitly before the deletion goes through. And if the removed domain was the last one using a particular SSO configuration, that configuration is cleaned up as well - no orphaned identity-provider settings lingering in your tenant waiting to confuse a future admin.
The Foundation for SSO and Onboarding at Scale
Once a domain is verified, it becomes the anchor for everything identity-related on that domain. SSO configuration in empowsec is tied to verified domains: when an employee with a matching address signs in, the platform knows exactly which identity provider to hand them to, because the mapping from domain to provider was established by the domain's owner and no one else. Different domains within the same company can even carry different providers - useful after a merger, when one subsidiary lives in one identity ecosystem and the rest of the group in another.
Verified domains also streamline onboarding at scale. Instead of inviting hundreds of employees one by one and managing yet another set of credentials, users on a verified, SSO-enabled domain are provisioned as they arrive through the identity provider your organization already governs. Joiners get access on day one, and leavers lose it the moment your directory says so - which keeps your phishing simulation and training audiences accurate without manual list maintenance. For a security awareness platform, that accuracy is not cosmetic: risk scoring and completion reporting are only as trustworthy as the user list beneath them.
Key Takeaways
- Domain verification is the trust layer beneath SSO: nothing identity-sensitive is enabled on a domain until ownership is proven.
- Two proof paths: a DNS TXT record with a unique token, or a hosted verification file - empowsec checks DNS first, then the file.
- Squatting is impossible by design: each domain can be registered only once across the platform, and unverified claims unlock nothing.
- The settings page shows the full lifecycle: add, verify, configure SSO, and delete - with explicit warnings before removing an SSO-carrying domain.
- Verification is evidence: method and timestamp are recorded, which supports compliance reviews and audits.
- Verified domains make onboarding scale: users arrive through your identity provider, keeping training and phishing simulation audiences accurate.


