parallels passkeys cdaWebAuthn Know-How

Parallels Passkeys: Testing Cross Device Authentication on Windows 11 VM on a Mac

Learn how to set up and test Cross-Device Authentication (CDA) via passkeys on Windows 11 VM using Parallels on Mac with external Bluetooth adapter.

Blog-Post-Author

Vincent

Created: September 20, 2024

Updated: September 23, 2024


Our mission is to make the Internet a safer place, and the new login standard passkeys provides a superior solution to achieve that. That's why we want to help you understand passkeys and its characteristics better.

1. Introduction#

When developing passkey authentication, one of the key components is testing cross-device authentication (CDA) via QR code. While the operating system handles the core functionality, various dialogs and additional steps might be required, such as prompting users to create a local passkey after completing cross-device authentication. These differences result in variations in the flow that must be tested. The most important test flow is Android / iPhone -> Windows. Of course, final testing should be carried out with real Windows 11 devices but during development, Parallels Virtualization is often used on a macOS devices.

Parallels passkey CDA testing on Mac

How does Cross-Device Authentication (CDA) via passkeys work when testing on Parallels, specifically on a Windows 11 virtual machine running on a Mac?

Let’s find out how this can be done, because at the moment the Parallels implementation does not work with passkey CDA.

2. Setting Up the Testing Environment#

Before you begin Cross-Device Authentication (CDA) with passkeys on a Windows 11 / Parallels running on a Mac, you'll need to set up the environment properly. Here's a step-by-step guide to getting started:

2.1 Installing Parallels with Windows 11#

If you haven't already installed Windows 11 on Parallels, you'll need to do so. Note that installing Windows 10 is no longer feasible due to the lack of ARM builds. Parallels only supports Windows 11 on Macs with Apple Silicon (M1/M2). Windows 11 is automatically available in case you have a license accessible.

2.2 External Bluetooth Adapter#

Using the macOS Bluetooth Adapter does not work. Therefore, to test CDA via passkeys, an external Bluetooth 5.0 adapter is necessary, as Parallels cannot use the Mac's built-in Bluetooth for this functionality. Here's what you need:

  • Adapter: Purchase a standard USB Bluetooth adapter, such as the ASUS USB-BT500.
  • USB to USB-C Adapter: Since most USB Bluetooth adapters do not support USB-C, you'll need a USB to USB-C adapter to connect it to your Mac.
Substack Icon

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

Subscribe

2.3 Connecting and Configuring the Adapter#

Follow these steps to set up the Bluetooth adapter for use with the Windows 11 VM:

  1. Plug in the Bluetooth Adapter: Insert the Bluetooth adapter into the USB-C adapter and then plug it into your Mac.
  2. Allow Connection: When macOS prompts you, allow the connection to the external Bluetooth device.
  3. Assign the Adapter to the VM:
    • Open Parallels. Then, navigate to Parallels Desktop Preferences.

parallels desktop preferences

  • In the Preferences window, assign the Bluetooth adapter to the Windows 11 VM to ensure it is always available when the VM is running.
  1. Restart the Windows 11 VM: After assigning the adapter, restart the VM so it can properly detect and install the necessary drivers for the adapter.

2.4 Allow Bluetooth Access on Mac#

The first time the Windows VM tries to access the Bluetooth adapter, macOS might prompt you to confirm this action. Be sure to allow the access so that the Bluetooth adapter can work correctly within the VM and click “Always Allow”:

allow parallels access to external bluetooth adapter

Once these steps are completed, your Windows 11 VM will be equipped to perform the Bluetooth-based cross-device authentication necessary for passkey testing.

Slack Icon

Become part of our Passkeys Community for updates and support.

Join

3. Test Cross-Device Authentication (CDA) Flow#

If you want to quickly check if your CDA Authentication works go ahead and use the Passkeys Debugger.

  1. Take out your mobile phone and navigate to https://www.passkeys-debugger.io. Create a passkey with default settings:

test cross device authentication debugger

  1. Open your Windows 11 Chrome with an Incognito tab, and switch from Passkey Creation to Passkey Login Tab and hit Start Passkey Login

windows hello cda test

  1. Choose “iPhone, iPad or Android device”

qr code testing webauthn

  1. Once you scan the QR code you will see that the devices are connected

windows hello connection confirmation

  1. On your mobile device, you will be able to select the created passkey

face id passkey list

  1. Once the passkey ceremony is completed, you can see the results in the passkey debugger. Here is the link to our test.

cda parsed assertion response

As you can see below, the authenticatorAttachment is set to cross-platform, we successfully completed a CDA on our Windows 11 VM.

Debugger Icon

Want to experiment with passkey flows? Try our Passkeys Debugger.

Try for Free

4. Conclusion#

Testing Cross-Device Authentication (CDA) with passkeys on a Windows 11 virtual machine running on Parallels is possible, but it requires some additional hardware setup. While Parallels provides a good environment for platform authenticator testing, the CDA process will not work out-of-the-box due to the limitations of the Mac’s built-in Bluetooth. So the question

How does Cross-Device Authentication (CDA) via passkeys work when testing on Parallels, specifically on a Windows 11 virtual machine running on a Mac?

was answered in the blog post.

To enable Cross-Device Authentication (CDA) via passkeys on a Windows 11 VM in Parallels, an external USB Bluetooth adapter is essential. Parallels cannot leverage the Mac's internal Bluetooth functionality for this purpose, so using a Bluetooth adapter (such as the ASUS USB-BT500) is the critical step to get everything working.

By following the setup instructions for the adapter and testing the passkey flows, you can successfully complete CDA within a Windows 11 VM, confirming the system’s ability to handle cross-device authentication. From our experience it is especially important to test also Windows 10 environments, at the moment this is reliably only possible with real Windows 10 systems.

Special thanks to Christopher Harrell for pointing us to the the right solution within FIDO Alliance.

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