Passkeys/WebAuthn Authentication Plugin for CakePHP 4/5?

Hi CakePHP community,

I’m currently looking to integrate Passkeys/WebAuthn authentication into a CakePHP 4 or 5 application. Before starting from scratch, I wanted to ask if there’s already an existing CakePHP plugin that supports Passkeys/WebAuthn.

If such a plugin exists, could someone kindly point me to where I can find it?

Additionally, is there any plan to include Passkeys/WebAuthn support in the CakePHP core in the near future?

If not, has anyone successfully integrated Passkeys/WebAuthn in their CakePHP application using a composer library or any other approach? I’d greatly appreciate any recommendations or guidance on which libraries to use.

Thank you so much in advance for your help!

Best regards,
Profdanibest

1 Like

I’m interested too, is there any solution?
Thanks
Massimo

Mark Story had a workshop about this topic.
See GitHub - markstory/cakephp-webauthn-example: An example application using U2F authentication (Passkeys)
and https://www.youtube.com/live/ac9pEtgvmYY?si=gbjmRgjPZG-FyyIx&t=18520

I’ve written my own CakePHP 4 plugin using the library from GitHub - lbuchs/WebAuthn: A simple PHP WebAuthn (FIDO2/Passkey) server library. If you’re interested, I’d be happy to publish the plugin on GitHub.

Feel free to publish your plugin - and once it is all released and tested, also please add it to the awesome list.