Third-party integrations

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

  1. 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.
  2. Complete the Keycloak setup in a dedicated realm. For this connection, request openid email, import protected verid_email and verid_email_verified, and keep first/last name optional. Retain password or second-factor confirmation when linking an existing broker account.
  3. Configure the verified-contact post-login policy for those two email attributes only: reject a missing email or verid_email_verified other than canonical true. Bind that flow under the provider's Post login flow.
  4. In this realm's email client scope, replace the editable-profile mappers with User Attribute mappers:
Protected attributeClaimJSON type
verid_emailemailString
verid_email_verifiedemail_verifiedboolean

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 settingValue
Client typeOpenID Connect
Client IDYour chosen <shopify-client-id>
Client authentication / Standard flowOn
Implicit flow / Direct access grants / Service accounts rolesOff
Valid redirect URIsEvery exact Shopify callback copied above; no wildcards
Valid post logout redirect URIsEvery exact Shopify sign-out URL copied above
Default scopesbasic and the protected email scope
Full scope allowedOff
ID-token signatureRS256
Refresh-token issuanceEnabled

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:

SettingValue
Client identifier / secretThe dedicated Shopify client's Keycloak credentials
Issuer<keycloak-base-url>/realms/<realm>
Discovery URL<keycloak-base-url>/realms/<realm>/.well-known/openid-configuration
Scopesopenid email
Token authenticationclient_secret_basic
Post-logout redirect parameterpost_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.

On this page