Third-party integrations

WordPress and WooCommerce

Configure wallet login through Keycloak using the standard WordPress OpenID Connect client.

Connect WordPress to Keycloak with OpenID Connect Generic Client. WooCommerce uses the same WordPress user session. Keycloak connects to the Ver.iD platform; Yivi is the example wallet.

What you need

First prepare your organization in Ver.iD Studio.

An HTTPS WordPress site, an independent local administrator login and OpenID Connect Generic Client 3.11.3. Install and activate it through Plugins → Add New. Use supported WordPress and PHP security releases; this documentation uses WordPress 7.1.4, PHP 8.3 and WooCommerce 11.2.2.

For a site-wide 18+ disclosure instead of login, use the separate age-verification configuration.

Configure Ver.iD

Add Keycloak's callback URL in Ver.iD Studio → Verify → Authentications → your flow → Redirect URIs: <keycloak-base-url>/realms/<realm>/broker/verid/endpoint. See Add redirect URIs. Your application callback is configured separately on its Keycloak client.

Configure Keycloak

Apply the verified-contact post-login flow to the Ver.iD provider so both requested contacts and their verification flags are required before account access.

  1. Complete the Keycloak setup, including the protected wallet attributes and verid-wallet-claims scope. Enable Add to userinfo for the wallet-claim mappers. Keep upstream Ver.iD UserInfo disabled.
  2. In WordPress, open Settings → OpenID Connect Generic and copy its displayed Redirect URI.
  3. In Keycloak, create a confidential OpenID Connect client with that exact callback in Valid redirect URIs. Enable Standard flow; disable Implicit flow, Direct access grants and Service accounts roles. Assign only basic and verid-wallet-claims as default scopes and disable Full scope allowed.

Leave this WordPress client's downstream PKCE requirement unset; this plugin release does not send PKCE. Keep S256 enabled on Keycloak's upstream Ver.iD connection.

Configure WordPress

Use <issuer> = <keycloak-base-url>/realms/<realm>. Copy endpoint URLs from <issuer>/.well-known/openid-configuration:

Plugin settingValue
Login TypeOpenID Connect button on login form
Login Button TextLog in with Digital Identity Wallet
Client ID, Client Secret KeyYour WordPress client's Keycloak credentials
OpenID Scopeopenid
Login Endpoint URLauthorization_endpoint
Token Validation Endpoint URLtoken_endpoint
Userinfo Endpoint URLuserinfo_endpoint
JWKS URIjwks_uri
IssuerThe exact Keycloak issuer
Identity Keysub
Nickname Keysub
Email Formatting{wallet_email}
Display Name Formatting{sub}
Link Existing UsersOff
Create user if does not existOn for new-account login
Identify with User NameOff
Disable SSL Verify, Allow Internal IDPOff
Enable Refresh TokenOff
End Session Endpoint URLEmpty for application-only logout

Save privately. Keep the default WordPress role at the minimum required: Subscriber, or the store's normal Customer role. An email match must not automatically associate an existing user.

Test the login

Open the normal WordPress login form in a private window and choose Log in with Digital Identity Wallet. Approve the request in Yivi. Confirm an ordinary WordPress account opens; for WooCommerce, open My Account and check the customer session. Sign out and repeat: the same account must return. Cancel a fresh request: no new session should appear.

WordPress profile and WooCommerce billing fields remain editable account data. No extra wallet-contact plugin is required. For callback errors, compare the plugin's displayed Redirect URI with Keycloak's exact entry.

On this page