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.
- Complete the Keycloak setup, including the protected wallet attributes and
verid-wallet-claimsscope. Enable Add to userinfo for the wallet-claim mappers. Keep upstream Ver.iD UserInfo disabled. - In WordPress, open Settings → OpenID Connect Generic and copy its displayed Redirect URI.
- 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
basicandverid-wallet-claimsas 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 setting | Value |
|---|---|
| Login Type | OpenID Connect button on login form |
| Login Button Text | Log in with Digital Identity Wallet |
| Client ID, Client Secret Key | Your WordPress client's Keycloak credentials |
| OpenID Scope | openid |
| Login Endpoint URL | authorization_endpoint |
| Token Validation Endpoint URL | token_endpoint |
| Userinfo Endpoint URL | userinfo_endpoint |
| JWKS URI | jwks_uri |
| Issuer | The exact Keycloak issuer |
| Identity Key | sub |
| Nickname Key | sub |
| Email Formatting | {wallet_email} |
| Display Name Formatting | {sub} |
| Link Existing Users | Off |
| Create user if does not exist | On for new-account login |
| Identify with User Name | Off |
| Disable SSL Verify, Allow Internal IDP | Off |
| Enable Refresh Token | Off |
| End Session Endpoint URL | Empty 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.