🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Passkeys Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. Why passkeys instead of passwords
  3. What you need
  4. Install and activate
  5. Add the Passkey field
  6. Passkey action
  7. How a check runs
  8. Signatures and keys
  9. Which devices work
  10. Multi-page and AJAX forms
  11. User verification
  12. Creating accounts on registration
  13. On the entry screen
  14. For developers
  15. Privacy and safety
  16. Troubleshooting

Video walkthrough

Gravity Forms Passkeys Setup Guide: Sign In with Face ID, Touch ID or a Security Key (WebAuthn)
Video setup guide: Gravity Forms Passkeys Watch on YouTube

The Gravity Forms Passkeys Premium Add-on adds a passkey to your forms. A visitor can create a passkey, sign in with one, or confirm a submission with one, using the same Face ID, fingerprint, Windows Hello or security key they already use to unlock their device. The passkey is checked on your own server with WebAuthn and FIDO2. There is no outside service, no per-use fee and no account to open.

A passkey is a key pair. The private key never leaves the visitor’s device; the public key is stored for the user on your site. Signing in or confirming an action means the device signs a one-time challenge from your server, and the server checks the signature. There is no password to phish, reuse or leak.

Why passkeys instead of passwords

A password can be guessed, reused across sites, stolen in a breach or handed to a fake login page. A passkey cannot. It is tied to your domain, so a look-alike site can never trigger it; it is unique to each site, so a breach of one account does not touch another; and there is nothing to type, so there is nothing to phish. For the visitor the whole thing is a glance or a touch. For you it means fewer password resets, fewer support tickets and a much higher bar for anyone trying to take over an account. The same passkey works for three jobs in this add-on: making an account, signing in, and confirming a risky change, so one familiar gesture covers registration, login and a step-up check.

What you need

  • WordPress 5.8 or newer and PHP 7.4 or newer, with the OpenSSL extension (part of almost every PHP build).
  • Gravity Forms 2.5 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • A site served over HTTPS (or localhost while you test). Passkeys only work in a secure context.
  • An active license key for this add-on.

If Gravity Forms is missing or older than 2.5, the add-on shows a notice in the WordPress admin and does nothing else.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms.
  2. Open Forms → Settings → Passkeys and enter your license key.
  3. In the same screen choose the passkey defaults: whether a check must verify the person, and whether registering a passkey may create an account.
The Passkeys settings page: license key, require user verification and create accounts on registration
The add-on settings: the license key and the passkey defaults.

Add the Passkey field

Open a form and add the Passkey field from the Advanced fields. The field shows a button on the live form and a short status message that updates as the ceremony runs. One setting decides what the field does.

The Passkey field on a live Gravity Forms form: a button and a status line that says the passkey was created
The Passkey field on the live form: one button and a live status message.

Passkey action

  • Require a passkey before submit (step-up): the form will not submit until the signed-in user proves a passkey. Use it for a sensitive action, such as changing bank details, cancelling an order or editing a profile.
  • Register a new passkey: the visitor creates a passkey. If they are signed in, the passkey is added to their account. If they are not, and you allow it in the settings, an account is created from the username they give.
  • Sign in with a passkey: the visitor proves a passkey and is signed in to WordPress, with no password typed. The field shows a small box for a username or e-mail so the browser can offer the right passkey, though a discoverable passkey needs no name at all.

You can also set the button label on the field, and the field supports conditional logic like any other Gravity Forms field.

How a check runs

When the visitor presses the button, the browser asks your server for a challenge. The server makes a single-use, time-boxed random challenge, bound to the form, the field and the session, and sends it back with the relying-party details. The browser runs the WebAuthn ceremony: it asks the device to create a passkey (for registration) or to sign the challenge (for a sign-in or a step-up check). The device shows its own prompt, such as Face ID or a fingerprint.

The browser sends the result back to the server, which verifies it in bundled PHP: it reads the authenticator data, checks that the relying-party hash matches your site, that the origin is your site, and that the challenge is the one it issued and has not been used before. For a sign-in or a step-up check it also verifies the signature against the stored public key and checks the sign count. Only when everything matches does the server let the form submit. A result that is replayed, tampered with, or whose sign count did not move forward is refused, and the form stays on the page with a message.

Signatures and keys

The verifier understands the two signature types browsers use for passkeys: ES256 (an elliptic-curve signature on the P-256 curve) and RS256 (an RSA signature). It parses the CBOR and COSE formats that WebAuthn uses, stores each credential’s public key and sign count for the user, and uses the OpenSSL extension that ships with PHP to check the signature. Nothing is sent to any outside service at any point.

Which devices work

Passkeys work on the authenticators people already carry. On an iPhone, iPad or Mac that is Face ID or Touch ID, stored in the iCloud Keychain and shared across the person’s Apple devices. On Android and in Chrome it is the screen lock or fingerprint, synced through the Google password manager. On Windows it is Windows Hello, a face, a fingerprint or a PIN. Roaming security keys such as a USB or NFC key work too, and a phone can act as a key for a nearby laptop over Bluetooth. Because the credential is a standard WebAuthn public key, you do not have to care which of these the visitor used; the server checks the signature the same way for all of them.

Multi-page and AJAX forms

The field works on a normal form, on an AJAX form and on a multi-page form. The ceremony script re-attaches itself every time Gravity Forms draws the form again, so the button keeps working after a page change, a conditional-logic reveal or an AJAX refresh. The one-time pass the server returns is held in a hidden field and checked again when the form finally submits, so a visitor can complete the passkey step on one page and submit on another.

User verification

Turn on Require user verification in the settings to ask the authenticator to verify the person, not only that a key is present. That means Face ID, a fingerprint or a PIN, rather than a simple tap. Most phones and laptops support it; some plain security keys do not, so leave it off if you need to welcome every key.

Creating accounts on registration

By default a passkey is added to the account of the person who is already signed in. Turn on Create accounts on registration to let a visitor who is not signed in register a passkey and have a WordPress user created from the username they give. The new account has no password and can only be used with the passkey, which you can combine with a sign-in field for a fully passwordless flow.

On the entry screen

A form submission that passed a passkey check is recorded as a normal Gravity Forms entry. The Passkey field is stored as a short confirmation, never the credential itself, and you can add an entry note that says what was verified. Nothing private is written to the entry.

A Gravity Forms entry screen for a step-up form, with the field values and a note that a passkey was verified
The entry screen: the field values and a note that a passkey was verified.

For developers

Two functions answer whether a user has a passkey: gfpasskey_user_has_passkey( user_id ) returns true or false, and gfpasskey_count_passkeys( user_id ) returns how many are registered. Several filters let you tune the ceremony: gfpasskey_rp_id sets the relying-party ID, gfpasskey_require_user_verification forces user verification, gfpasskey_allow_auto_create and gfpasskey_auto_create_role control account creation, and gfpasskey_set_auth_cookie decides whether a sign-in sets the WordPress cookie.

Privacy and safety

  • The private key never leaves the visitor’s device, and your server only ever stores a public key and a counter.
  • Every challenge is random, single-use and short-lived, so a captured response cannot be replayed.
  • A passkey is bound to your domain, so a look-alike site cannot use it. The origin and relying-party checks enforce this on the server too.
  • No API key, no outside call and no third-party account. Everything runs on your own site.

Troubleshooting

  • The button says passkeys are not supported. The page must be served over HTTPS and opened in a recent browser. Passkeys do not work over plain HTTP, except on localhost.
  • The prompt was cancelled. The visitor closed the device prompt. They can press the button again.
  • Nothing happens. Check that the license key is active; without it the field does not run.
  • Sign-in cannot find a passkey. The visitor has not registered one on this device yet, or the username does not match. Register a passkey first, or use a discoverable passkey.

That is the whole add-on: a Passkey field, three actions, and a WebAuthn verifier that runs entirely on your own server.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr