TYPO3
Configure TYPO3 frontend wallet login through Keycloak using the existing OIDC extension.
Connect TYPO3's frontend to Keycloak with causal/oidc. Keycloak connects to the Ver.iD platform; Yivi is the example wallet.
What you need
First prepare your organization in Ver.iD Studio.
TYPO3 13.4.37, PHP 8.4, Composer and causal/oidc 6.0.1. Keep an independent backend administrator account. Prepare a frontend-user storage folder, a reader group and a protected page.
Install the official extension:
composer require causal/oidc:6.0.1
vendor/bin/typo3 extension:setupConfigure 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 its four wallet-claim mappers. Keep upstream Ver.iD UserInfo disabled. - Create a confidential OpenID Connect client. Enable Standard flow and disable Implicit flow, Direct access grants and Service accounts roles.
- Register
<site-base-url>/oidc/callbackas its exact Valid redirect URIs entry. Assign onlybasicandverid-wallet-claimsas default scopes, disable Full scope allowed and set PKCE method = S256.
On the dedicated client, also map protected verid_email to email and verid_email_verified to boolean email_verified, with Add to userinfo = On. Keep competing editable-profile email mappers off this client.
Configure TYPO3
Set the flat extension settings under $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['oidc'] through trusted server configuration. Use <issuer> = <keycloak-base-url>/realms/<realm> and copy the endpoints from <issuer>/.well-known/openid-configuration:
| Setting | Value |
|---|---|
oauthProviderFactory | Empty: use the extension's default provider |
enableFrontendAuthentication | 1 |
enableBackendAuthentication | 0 |
oidcClientKey, oidcClientSecret | Your TYPO3 client's Keycloak credentials, supplied privately |
oidcClientScopes | openid |
oidcClientScopeSeparator | A single space |
oidcRedirectUri | <site-base-url>/oidc/callback |
oidcEndpointAuthorize | authorization_endpoint from Keycloak discovery |
oidcEndpointToken | token_endpoint from Keycloak discovery |
oidcEndpointUserInfo | userinfo_endpoint from Keycloak discovery; keep populated |
enableCodeVerifier | 1 |
oidcDisableCSRFProtection, enablePasswordCredentials | 0 |
usersStoragePid | Your frontend-user storage folder ID |
usersDefaultGroup | Your ordinary reader-group ID |
frontendUserMustExistLocally | 0 for new-account login |
reEnableFrontendUsers, undeleteFrontendUsers | 0 |
oidcEndpointLogout, oidcEndpointRevoke | Empty |
The native provider obtains account data through Keycloak's authenticated UserInfo endpoint. Do not leave that URL empty: the extension then falls back to decoding token content. Keep certificate validation enabled.
Add OIDC Login to a frontend page. Set plugin.tx_oidc_login.defaultRedirectPid to the protected page's ID, and restrict that page to the reader group using TYPO3's normal access settings.
Test the login
Open the OIDC Login page in a private window, select Yivi and approve the request. Confirm TYPO3 opens the protected page as a frontend reader. Sign out and repeat: the same frontend account must return. Cancelling a fresh request must not open protected content.
Keep backend administration and existing local frontend login available. The ordinary profile fields are not a separate wallet-evidence store. Configuration names above come from the 6.0.1 extension settings.