
- Keycloak connects to WordPress and Shopify Plus through OpenID Connect.
- Shopify deprecated legacy customer accounts on February 26, 2026.
- Link WordPress users to Keycloak’s sub claim, never email alone.
- San Diego and Irvine brands are retiring custom login bridges.
- Our 2024 Laravel bridge is now replaceable with native configuration.
WordPress Keycloak single sign-on lets a shopper log in once and stay recognized on both a WordPress site and a Shopify store, and in 2026 it takes far less custom code than it did when our team first built it. In 2024 we delivered this setup for a performance beauty brand using a Laravel middleware app, a single-file PHP connector, and a server that took nearly a week to prepare for Java.
Since then, Shopify Plus has added native support for external OpenID Connect identity providers, and Keycloak 26 ships production features that remove most of our old workarounds. This updated article walks through the Keycloak WordPress login setup step by step, explains how Shopify Plus SSO works today, and lists the five decisions we would reverse if a San Diego brand asked us to deliver the same project for 2026 and 2027.
If you are comparing Keycloak with Okta or Amazon Cognito, planning headless Shopify, or deciding whether to hire Keycloak developers, each section below answers one of those questions on its own.
What WordPress Keycloak Single Sign-On Does for a Two-Store Brand

WordPress Keycloak single sign-on makes Keycloak the one place where customer accounts live, while WordPress and Shopify act as clients that trust its login. Keycloak is an open-source identity and access management server maintained under the Cloud Native Computing Foundation. Each storefront redirects the shopper to Keycloak, receives a signed token back, and opens a session without asking for a second password.
Our client sells professional aesthetic products. Their WordPress site carried education content, product training, and gated resources for professional buyers, while the new Shopify store handled retail checkout. Before the project, a shopper registered on one site was a stranger on the other, which meant duplicate profiles and two password resets. A shared identity layer across two commerce platforms is a custom software development problem, because no single plugin owns both sides of a WordPress and Shopify integration.
The protocol behind it is OpenID Connect (OIDC), a login standard built on OAuth 2.0. OIDC lets one system vouch for a user to another system through a short-lived ID token, which is a signed JSON Web Token (JWT). So when people search for Shopify JWT single sign on, the modern answer is OIDC: Keycloak issues the JWT, and Shopify verifies it.
Can Shopify Plus SSO Use Keycloak as the Identity Provider in 2026?
Yes: Shopify Plus stores can connect Keycloak directly as an OIDC identity provider for new customer accounts, with no middleware app in between. Shopify reads the email and sub claims from the ID token Keycloak issues, then creates or resumes the customer session on its side. This option is limited to the Plus plan.
The timing matters as much as the feature. According to the Shopify Changelog, legacy customer accounts were deprecated on February 26, 2026, with feature work and technical support ended and a final sunset date promised later in the year. Any Shopify single sign-on login that depends on the classic account system now has a shelf life.
Multipass, the token-based login Shopify offered for years, is also closed to new stores. Existing stores keep it after upgrading, but Shopify’s developer documentation steers new integrations toward external identity providers, partly because Multipass cannot import extra profile claims such as phone numbers, tags, or addresses.
Can a Shopify store act as the IdP for WordPress?
A Shopify store is a poor choice as the identity provider for other sites, so the dependable pattern is to make Keycloak the hub and let Shopify consume it. Shopify’s customer authentication is built to sign shoppers into Shopify storefronts and headless builds, not to serve as a general login service for WordPress or other apps. Plugins that make a Shopify store act as an IdP exist, but they tie every other site’s login to one storefront’s account system.
How does headless Shopify SSO handle checkout?
In a headless Shopify build, the shopper must stay authenticated when moving from your custom frontend into Shopify checkout. Shopify documents specific approaches for passing that session through, and skipping this step is the most common reason headless stores show a logged-in shopper as a guest at payment. Plan the checkout handoff before you design the frontend login screens.
How to Set Up Keycloak WordPress Login Step by Step

A Keycloak WordPress login needs a running Keycloak server, one realm, one client for the WordPress site, and an OIDC plugin on WordPress that handles the redirect and token exchange. The steps below reflect how our engineers set it up on Keycloak 26 today.
- Run Keycloak in production mode. Use the official container image, run
kc.sh build, thenkc.sh startwith a fixed hostname behind HTTPS. - Create the first admin safely. Keycloak 26 creates a temporary admin from the
KC_BOOTSTRAP_ADMIN_USERNAMEandKC_BOOTSTRAP_ADMIN_PASSWORDvariables. Log in, create a permanent admin, then delete the temporary one. - Create one realm for the brand. A realm is Keycloak’s term for an isolated directory of users, settings, and login rules.
- Add a client for WordPress. Set client authentication on, use the standard (authorization code) flow, and enter your exact WordPress callback URL as the valid redirect URI.
- Add a second client for Shopify. Copy its client ID, secret, and the realm’s discovery URL into the Shopify admin identity provider settings.
- Install or build the WordPress OIDC plugin. It must check the
statevalue, use PKCE (Proof Key for Code Exchange, which stops intercepted login codes from being reused), and verify the token signature. - Map the user. Link the Keycloak identity to a WordPress user by its
subclaim, as shown below.

How should WordPress link Keycloak identities to user accounts?
WordPress should store Keycloak’s sub claim in user meta and use it as the permanent link between the two systems. The sub (subject) value is a stable ID that Keycloak assigns once and never changes, while email addresses get edited, mistyped, and reused. The function below runs after the ID token has been verified with a maintained JWT library, and it follows WordPress Coding Standards.
/**
* Find or create the WordPress user linked to a verified Keycloak identity.
*
* @param array $claims Verified ID token claims from Keycloak.
* @return WP_User|WP_Error
*/
function bc_kc_resolve_user( array $claims ) {
$sub = sanitize_text_field( $claims['sub'] );
$users = get_users(
array(
'meta_key' => 'keycloak_sub',
'meta_value' => $sub,
'number' => 1,
)
);
if ( ! empty( $users ) ) {
return $users[0];
}
if ( empty( $claims['email_verified'] ) ) {
return new WP_Error( 'kc_unverified_email', __( 'Email not verified.', 'bc-keycloak' ) );
}
$user_id = wp_insert_user(
array(
'user_login' => sanitize_user( $claims['preferred_username'], true ),
'user_email' => sanitize_email( $claims['email'] ),
'user_pass' => wp_generate_password( 32 ),
'role' => 'customer',
)
);
if ( is_wp_error( $user_id ) ) {
return $user_id;
}
update_user_meta( $user_id, 'keycloak_sub', $sub );
return get_user_by( 'id', $user_id );
}
Two details carry most of the security value. The function refuses to create an account when email_verified is false, and it never links an existing WordPress account just because the email matches. Teams running WooCommerce development can reuse the same function, since WooCommerce customers are standard WordPress users.
Linking older accounts should be a separate, one-time migration that the shopper confirms while logged in. That is the same discipline we apply in secure web app development for any account merge. On large stores, index the meta lookup so login time stays flat as the customer base grows.
Rebuilding Our 2024 WordPress Keycloak SSO Project: What We Would Change

The original WordPress Keycloak SSO build launched on schedule, but several choices were workarounds for platform limits that no longer exist. These are the four changes that would save the most time and risk today.
Replace the Laravel bridge with native Shopify OIDC
Our Keycloak Laravel integration existed to create users in Keycloak whenever someone registered on Shopify, using the Keycloak Admin API to keep both directories aligned. With Shopify Plus reading identities straight from Keycloak, registration happens in one place and Shopify follows. Removing the bridge also removes a server, a deployment pipeline, and an admin credential with broad write access to the identity store.
Stop running start-dev and the dev-file database
Our first server ran kc.sh start-dev, the same command we used locally. Development mode relaxes HTTPS and hostname checks and, by default, stores data in the embedded dev-file database, which is not built for production traffic or backups. Today we set KC_DB=postgres, point Keycloak at a managed PostgreSQL instance, and run the optimized production start command.
Ship Keycloak as a container, not a Java install
The three to five days we lost installing Java on the host were avoidable. The official Keycloak container image bundles the correct runtime, so the host needs only a container engine. This follows the same approach we use in cloud-native application development: treat the identity server as an artifact you replace, not a machine you patch by hand.
Upgrades are calmer in Keycloak 26 as well. According to the Keycloak project’s 26.6.0 release announcement, zero-downtime patch releases are supported and enabled by default, so rolling updates within a minor version no longer force a login outage. For a storefront, that removes the old trade-off between staying patched and staying open.
Turn the one-file PHP connector into a real WordPress plugin
Our 2024 WordPress side was a single Core PHP file handling the redirect, token exchange, and login. It sat outside WordPress conventions, had no settings screen, and was hard for the client’s in-house team to review. A plugin with nonce-protected settings, translatable strings, and the checks listed in the setup steps is easier to audit and survives core updates.
Keycloak vs Okta, Amazon Cognito, and Auth0 for Shopify Plus SSO
All four work as OIDC identity providers for Shopify Plus SSO; the difference is who runs the server and how much you can customize. Shopify publishes setup guides for Okta, Amazon Cognito, Auth0, and Microsoft Entra ID, while Keycloak connects through the same generic OIDC settings.
| Provider | Who runs it | Best fit | Watch out for |
|---|---|---|---|
| Keycloak | Your team (self-hosted) | Brands wanting full control of login pages and customer data | Patching and uptime are your responsibility |
| Okta | Okta (managed) | Companies already using Okta for staff or B2B buyers | Retail-scale customer identity needs its customer identity product, not workforce SSO |
| Amazon Cognito | AWS (managed) | Teams whose apps already run on AWS, the usual meaning of Shopify AWS single sign on | Login page customization is more limited than Keycloak themes |
| Auth0 | Okta (managed) | Teams wanting a hosted service with many prebuilt social logins | Less control over where customer data is stored |
For our beauty client, Keycloak won for two reasons: the team wanted the login page styled exactly like the storefront, and they planned to add a BigCommerce store without adding another vendor. That second requirement comes up often, since growing brands rarely stop at two platforms. The trade-off follows the same logic as any build vs buy software decision.
How to Customize the Keycloak Login Page to Match Your Storefront
You customize the Keycloak login page by creating a login theme and assigning it to the realm under Realm settings, then Themes. A theme is a folder of FreeMarker templates, CSS, images, and message files that Keycloak renders instead of its default screens.
Most ecommerce teams only need a light theme that extends the built-in one: a logo, brand colors, fonts, and rewritten error messages. Teams that want a React-based login screen often use the community Keycloakify project to build the theme with familiar frontend tooling. Either way, test the theme on mobile first, because most shoppers reach the login page from a phone during checkout.
A well-branded login page matters more than it seems. Shoppers who land on an unfamiliar-looking screen in the middle of checkout often assume something is wrong and leave, so the theme is part of the conversion path, not a cosmetic extra.
Realm and Client Layout for Brands Running Several Storefronts
Use one Keycloak realm per brand and one client per storefront, so every site shares the same customer directory while keeping its own redirect URLs and secrets. In 2024 we created multiple realms, and in hindsight that split shoppers into separate directories that later had to be reconciled.
Brands that sell to professionals should also look at Keycloak Organizations. This feature groups users under a business, such as a clinic, salon, or retailer, and adds the organization to the token. That opens wholesale pricing in Shopify or gated training in WordPress without building a separate B2B login.
Once Keycloak holds the customer record, the same sub can follow the shopper into a CRM. A Salesforce integration keyed on that ID avoids the duplicate contact problem that email-based syncing creates.
Why Centralized Login Cuts Credential Stuffing Risk
Centralized login reduces risk because attackers test leaked passwords against every login form they find, and two separate forms double the target. A single identity server gives you one place to rate-limit, detect, and block those attempts.
The scale is larger than most store owners expect. According to Verizon’s 2025 Data Breach Investigations Report research, credential stuffing made up a median of 19% of all daily authentication attempts in SSO provider logs over two years, rising to about 25% for enterprise-sized organizations.
Keycloak’s brute-force detection, temporary lockouts, and event logging apply once to every connected store. When the WordPress site and the Shopify store each kept their own login, the client had two sets of logs and no way to see that the same IP address was hitting both.
The bigger shift for 2027 is passkeys, which replace passwords with a device-bound cryptographic key. Guidance from the National Institute of Standards and Technology describes properly configured syncable passkeys as phishing-resistant because each key is tied to the site that created it. Keycloak has supported passkeys since its 26.4 release, so a brand that centralizes login now can roll out passwordless sign-in to both stores in one change.
Moving off a homegrown login is a modernization project in its own right. The steps we follow for legacy web application modernization apply here: inventory every place a password is checked, migrate users in phases, and keep a rollback path until the new flow has run through a full sales cycle.
Hardening checklist for the Keycloak server
- Restrict the admin console to an internal network or VPN, never the public storefront domain.
- Give each storefront client the minimum scopes it needs, usually
openid,email, andprofile. - Store client secrets in a secrets manager, not in
wp-config.phpor theme files, and rotate them on a schedule. - Forward Keycloak login events to the same monitoring stack as your storefront errors.
- Set short access token lifetimes and rely on refresh tokens for long sessions.
Most of these items overlap with general cloud security best practices, but they are easy to skip when the identity server is treated as a one-time setup task.
What to Check Before You Hire Keycloak Developers
Before you hire Keycloak developers or SSO integration services, confirm the team has shipped Keycloak in production mode, not only in a local demo. The gap between start-dev on a laptop and a patched, monitored server is where most Keycloak projects stall.
Ask these four practical questions during evaluation:
- Have they connected Keycloak to both WordPress and Shopify Plus, including the checkout handoff for headless builds?
- Do they link accounts by
subor by email? - Can they build and maintain a custom login theme?
- Who applies security patches after launch?
Clear answers to those questions matter more than certifications or tool lists. A team that can explain its account-linking rule and upgrade plan in plain language has usually lived through the problems described in this article.
The Login Page Is Now a Product Surface for California Commerce Brands
Across ecommerce builds we have delivered for brands in San Diego, Irvine, and Los Angeles, identity starts as a plumbing task and ends up shaping marketing, wholesale, and support. The brands that get value from SSO treat the login page with the same care as a product page, with matching design, clear error messages, and analytics on where shoppers drop off.
What we observe at Bitcot is that the costly problems are rarely inside Keycloak itself. They come from account merges done by email, development-mode servers left in production, and middleware nobody remembers how to deploy. Brands looking for software development in San Diego often arrive with exactly that leftover bridge, and the 2026 Shopify changes are the right moment to remove it. The same identity discipline carries into the healthcare portals and fintech apps we build, where one verified identity across systems matters even more.
Conclusion

Most of the effort in our 2024 build went into working around platform gaps that Shopify and Keycloak have since closed. Native OIDC on Shopify Plus removes the bridge, containerized Keycloak removes the Java setup, and a standards-based WordPress plugin replaces the single-file connector.
The decision that will outlast every platform change is how you link identities. Anchor every account to the Keycloak subject ID, verify email before trusting it, and keep one realm per brand. Those three choices make passkeys, new storefronts, and CRM syncing simple additions in 2027 instead of rewrites.
If your stores still rely on legacy Shopify accounts or a custom sync service, now is a practical time to map the migration before Shopify announces its sunset date.
Frequently Asked Questions
What is WordPress Keycloak single sign-on?
WordPress Keycloak single sign-on is a setup where Keycloak holds customer accounts and WordPress trusts its login through OpenID Connect, so users sign in once. The same Keycloak realm can also serve a Shopify Plus store, giving shoppers one account across both sites. WordPress links each Keycloak identity to a local user through the stable sub claim.
What is the difference between Keycloak and Okta or Amazon Cognito for Shopify Plus SSO?
Keycloak is self-hosted and fully customizable, while Okta and Amazon Cognito are managed services that the vendor runs for you. All three connect to Shopify Plus as OIDC identity providers. Keycloak suits brands that want control over login pages and data, while managed services suit teams with no one to own patching.
How do I set up a Keycloak WordPress login?
You set up a Keycloak WordPress login by creating a realm and an OIDC client in Keycloak, then installing a WordPress plugin that handles the redirect, token exchange, and user mapping. The plugin should check the state value, use PKCE, and verify the token signature. Users should be linked by the Keycloak sub claim stored in user meta, not by email.
How are California ecommerce brands using Keycloak with WordPress and Shopify?
Brands in San Diego, Irvine, and Los Angeles use Keycloak to give shoppers one login across a WordPress content or training site and a Shopify retail store. Beauty and wellness brands also use Keycloak Organizations to group professional buyers by clinic or salon. Many are now replacing custom sync bridges built before Shopify Plus supported native OIDC.
Is Keycloak worth it instead of a simple WordPress SSO plugin?
Keycloak is worth it when you need one login across more than one platform, such as WordPress and Shopify, rather than just a nicer login on a single site. A plugin alone cannot give Shopify Plus a shared identity source. For a single WordPress site with no other platforms, a standard login with strong passwords is usually enough.




