Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› What is the difference between hosted and embedded…
Authentication, Authorisation & Trust

What is the difference between hosted and embedded verification?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 28, 2026 Domain: Authentication, Authorisation & Trust

Hosted verification sends the user to a provider-run journey, while embedded verification keeps the flow inside your own product through an API and SDKs. Hosted is faster to ship, embedded gives more control over experience, and orchestration can combine methods from one integration when different users need different routes.

How Hosted and Embedded Verification Differ in Practice

Hosted verification is the lower-friction option when you want a provider-managed flow that can be launched quickly and kept outside your core product surface. Embedded verification is the better fit when the verification step must feel native, preserve more of your own UX decisions, or be coordinated with your own product logic. The difference is not just where the screen appears, it is who owns the interaction boundary and how much orchestration you keep.

That boundary matters because it changes integration effort, customisation, and operational responsibility. Hosted verification usually reduces the amount of UI, state handling, and edge-case management you need to build. Embedded verification gives you more control over branding, step order, and user routing, but it also means your team owns more of the experience design and integration behaviour.

When teams compare the two, the key question is not which is inherently better. It is which one better matches the product requirement, the user journey, and the tolerance for implementation complexity. In some flows, a provider-led journey is enough. In others, different user types, different risk levels, or different regions make it useful to orchestrate multiple verification paths from a single integration.

Where Control, Experience, and Integration Effort Diverge

Hosted verification typically works best when speed and simplicity matter more than deep customisation. Because the provider owns the journey, you can usually adopt it faster and keep your own code path smaller. That makes it attractive when verification is needed as a dependency rather than a product differentiator.

Embedded verification is more appropriate when the verification experience is part of the product value itself. If the journey needs to sit naturally inside your application, or if you need to preserve a tightly controlled interface across devices and customer segments, embedded design gives you that flexibility. It also makes it easier to align verification with your own session logic, account flow, and product analytics.

The trade-off is that embedded flow design can increase the amount of testing and maintenance you own. Changes to the user interface, device behaviour, or SDK integration can affect completion rates and support burden. Hosted flows shift more of that burden to the provider, but usually at the cost of less design freedom.

When to Choose One Path, or Combine Both

Many teams do not have to choose only one model forever. Orchestration lets a single integration support different routes depending on the situation, for example sending some users to hosted verification while keeping others in an embedded flow. That is useful when different countries, customer tiers, or transaction types need different treatment.

This is also where product and risk decisions intersect. A simpler hosted path may be enough for low-complexity journeys, while a more controlled embedded path may be justified where friction, abandonment, or brand continuity would otherwise become a business problem. The right answer often depends on whether verification is a one-time gate, a recurring step, or a component of a broader onboarding or re-authentication flow.

For teams evaluating the API and SDK approach behind embedded verification, OWASP ASVS is useful because it highlights the security requirements that matter when you own more of the interaction surface, including authentication, session handling, and access control. If your verification flow includes API-driven decisions, OWASP API Security Top 10 is also relevant for checking that the backend logic behind the embedded flow is not weaker than the UI it supports.

Risk and Threat Considerations

Verification flow choice changes the attack surface. Hosted journeys reduce what you expose in your own product, but they increase reliance on the provider’s trust boundary and availability. Embedded journeys give you more control, but they also create more opportunities for implementation mistakes, inconsistent state handling, and insecure API or SDK use.

Failure mechanism: Hosted flows can fail when redirect handling, provider trust assumptions, or recovery paths are not robust, while embedded flows can fail when the application mismanages session state, authorization, or client-side assumptions about completion.

Impact: A weak flow can produce failed onboarding, broken verification outcomes, user abandonment, or a gap between the intended control and the actual security decision. In the worst case, an attacker can exploit a poorly designed embedded path or an overly trusted handoff to bypass intended checks or reuse a compromised session.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV6 — AuthenticationVerification flows affect how authentication is established and validated.
V7 — Session ManagementHosted versus embedded changes how session continuity and handoff are managed.
Recommendation — Review embedded flows against V6 to ensure authentication decisions remain trustworthy. Validate that verification completion is bound to a secure session state.
OWASP API Security Top 10API2 — Broken AuthenticationEmbedded verification often depends on APIs whose auth checks must remain sound.
Recommendation — Test the verification APIs for broken authentication and weak trust handoffs.

Practitioner Guidance

What to verify: Confirm who owns each step of the journey, including redirect handling, session continuity, error recovery, and the source of truth for verification success. If the provider decides the outcome, your application should still validate that outcome before granting access or advancing the user state.

Decision rule: Choose hosted verification when speed, lower build burden, and a standardised flow matter most. Choose embedded verification when user experience, product control, or multi-path orchestration materially affect conversion, support, or operational fit.

Practitioner takeaway: The real distinction is control boundary, not just presentation, so design verification around who owns state, who validates success, and what happens when the flow fails or is interrupted.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org