Shopify Plus
Configure Shopify customer accounts to use wallet authentication through Keycloak.
Connect Shopify's customer accounts to Keycloak. Keycloak connects to the Ver.iD platform; Yivi is the example wallet.
What you need
First prepare your organization in Ver.iD Studio.
A Shopify Plus store using customer accounts, store-owner access and Keycloak 26.8.1 on a public HTTPS hostname. No connector application is required. Shopify's OIDC connection is separate from the checkout age-disclosure app.
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
- In Shopify Admin, open Settings → Customer accounts → Identity provider → Manage → Connect to provider → Custom or other. Copy every displayed Callback URL and Sign-out URL.
- Complete the Keycloak setup in a dedicated realm. For this connection, request
openid email, import protectedverid_emailandverid_email_verified, and keep first/last name optional. Retain password or second-factor confirmation when linking an existing broker account. - Configure the verified-contact post-login policy for those two email attributes only: reject a missing email or
verid_email_verifiedother than canonicaltrue. Bind that flow under the provider's Post login flow. - In this realm's
emailclient scope, replace the editable-profile mappers with User Attribute mappers:
| Protected attribute | Claim | JSON type |
|---|---|---|
verid_email | email | String |
verid_email_verified | email_verified | boolean |
Enable Add to ID token and Add to userinfo; disable Add to access token. Keep upstream Ver.iD UserInfo disabled.
Register Shopify in Keycloak
| Client setting | Value |
|---|---|
| Client type | OpenID Connect |
| Client ID | Your chosen <shopify-client-id> |
| Client authentication / Standard flow | On |
| Implicit flow / Direct access grants / Service accounts roles | Off |
| Valid redirect URIs | Every exact Shopify callback copied above; no wildcards |
| Valid post logout redirect URIs | Every exact Shopify sign-out URL copied above |
| Default scopes | basic and the protected email scope |
| Full scope allowed | Off |
| ID-token signature | RS256 |
| Refresh-token issuance | Enabled |
Use confidential client-secret authentication. Leave the downstream PKCE requirement unset for Shopify's confidential web client; keep S256 on Keycloak's upstream Ver.iD connection.
For wallet-only login, create a Basic flow with Identity Provider Redirector as Required, Default Identity Provider = verid, and select it under Authentication flow overrides → Browser Flow. Stores offering Shop Pay must instead retain a login page offering the required Sign in with Shop option alongside wallet login.
Connect Shopify
Enter these values under Shopify's Application info:
| Setting | Value |
|---|---|
| Client identifier / secret | The dedicated Shopify client's Keycloak credentials |
| Issuer | <keycloak-base-url>/realms/<realm> |
| Discovery URL | <keycloak-base-url>/realms/<realm>/.well-known/openid-configuration |
| Scopes | openid email |
| Token authentication | client_secret_basic |
| Post-logout redirect parameter | post_logout_redirect_uri |
Use discovery for authorization, token, JWKS, UserInfo and logout endpoints. Studio credentials remain on Keycloak. Select Save → Test connection, complete wallet login and then select Activate.
Test the customer journey
Sign in from a fresh private browser, approve the email request in Yivi and confirm the intended customer account opens. Sign out and repeat: the same customer and order history must return. Cancel a fresh request: no customer session should appear. Check that customer logout also invokes the broker logout endpoint.
Shopify associates an existing customer by matching the verified email; otherwise it creates a customer. Check both cases with controlled accounts. This differs from Keycloak's password-confirmed account linking. Keep the broker issuer and subject stable.
Keep refresh-token issuance enabled and configure the broker session lifetime. Shopify requires discovery, token and UserInfo responses within one second; see its identity-provider requirements.