What is Conditional UI in WebAuthn?

Blog-Post-Author

Vincent

Created: April 13, 2024

Updated: September 10, 2024


What is Conditional UI?#

Conditional UI is a feature in WebAuthn that dynamically displays passkeys or traditional password options based on whether a user has a registered credential (resident key) with a website or application. This method allows for a credential selection UI that coexists with autofilled passwords, providing users with a simplified and efficient login experience.

Slack Icon

Become part of our Passkeys Community for updates and support.

Join

By implementing Conditional UI, websites and applications can offer a more streamlined authentication process, enhancing security while maintaining user privacy and improving the overall user experience.

  • Conditional UI dynamically presents authentication options, improving the WebAuthn login process.
  • It enables a smooth transition from passwords to passkeys by integrating them with autofill functionality.
  • Conditional UI simplifies the implementation of passkeys in web applications, enhancing both security and user experience.

What is Conditional UI? Conditional UI is a feature in WebAuthn, that dynamically displays passkeys or traditional password options based on whether a user has a registered credential (resident key) with a website or application.

Enhancing User Experience with Conditional UI#

Conditional UI helps in the adoption of passkeys by addressing common challenges associated with transitioning from traditional authentication methods. Its main features include:

  • Streamlined Authentication Process: By presenting only the relevant login options, Conditional UI reduces complexity and potential user errors, thereby streamlining the authentication process with WebAuthn/passkeys.
  • Integration with Existing Authentication Systems: It allows for the use of passkeys alongside traditional passwords, easing the transition for users and leveraging familiar UX paradigms.
  • Privacy and Security: Conditional UI respects user privacy and enhances security by only showing passkey options when appropriate, thus avoiding unnecessary disclosure of user credentials.

Implementing Conditional UI#

To implement Conditional UI, developers must implement a few extra steps to an existing WebAuthn application. For a tutorial and more detailed information, refer to this blog article.

Substack Icon

Subscribe to our Passkeys Substack for the latest news, insights and strategies.

Subscribe

Conditional UI FAQs#

How does Conditional UI improve the login experience?#

Conditional UI enhances the login experience by displaying available passkeys in the UI, streamlining the authentication process for users with registered credentials.

What are the main benefits of using Conditional UI?#

The main benefits include a seamless transition from passwords to passkeys, improved user satisfaction by minimizing login steps, and the integration of passkeys with autofill features for a smoother authentication experience.

What challenges are associated with implementing Conditional UI?#

Implementing Conditional UI may involve a learning curve for inexperienced developers and depends on browser and device compatibility. However, these challenges are mitigated by the ongoing development and support of WebAuthn standards.

Can I have Conditional UI on my device?#

Yes, you can have Conditional UI on your device if it supports WebAuthn and if the browsers you are using are updated to support Conditional UI features. It's important to ensure that your device's software is up to date to take advantage of these features. You can test your device’s Conditional UI readiness at State of Passkeys.

Ben Gould Testimonial

Ben Gould

Head of Engineering

I’ve built hundreds of integrations in my time, including quite a few with identity providers and I’ve never been so impressed with a developer experience as I have been with Corbado.

3,000+ devs trust Corbado & make the Internet safer with passkeys. Got questions? We’ve written 150+ blog posts on passkeys.

Join Passkeys Community

Which browsers are compatible with Conditional UI?#

Most modern browsers that support WebAuthn are also moving towards compatibility with Conditional UI, including Chrome, Firefox, Safari, and Edge. However, the level of support for Conditional UI features can vary, so checking the latest browser documentation or updates is advisable for the most current information. You can check the availability here.

Will Conditional UI work if the user's browser or device doesn't support it?#

If the user's browser or device does not support Conditional UI, the authentication process will fall back to the standard login methods available, such as password input or regular WebAuthn logins. It's designed to enhance the user experience without excluding users with unsupported devices or browsers.

Does implementing Conditional UI require changes to the backend authentication system?#

Implementing Conditional UI primarily involves changes to the frontend of your web application. However, your backend authentication system must be set up to support WebAuthn and passkeys. This might require some adjustments if your system relies solely on traditional authentication methods. However, in many cases, a dedicated endpoint to start the Conditional UI login flow is implemented.

Can Conditional UI support login flows without usernames and passwords?#

Yes, one of the significant benefits of Conditional UI is its ability to support more streamlined login flows, including options without usernames (usernameless logins) or passwords (passwordless logins). By using passkeys and relying on platform authentication methods like Face ID or Touch ID, users can enjoy a more seamless login experience without compromising security.

Share this article


LinkedInTwitterFacebook

Enjoyed this read?

🤝 Join our Passkeys Community

Share passkeys implementation tips and get support to free the world from passwords.

🚀 Subscribe to Substack

Get the latest news, strategies, and insights about passkeys sent straight to your inbox.


We provide UI components, SDKs and guides to help you add passkeys to your app in <1 hour

Start for free