=== Wallet connection ===
Tags: verification, disclosure, wallet, age
Requires at least: 6.5
Requires PHP: 8.1
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a site-wide 18+ wallet disclosure to WordPress through the Ver.iD platform.
Yivi is the example wallet. This plugin is a website component, not a wallet.

Setup guide: https://docs.ver.id/integrations/wordpress-woocommerce/age-verification

== Installation and configuration ==
1. Open Plugins > Add New > Upload Plugin, select wordpress-age-disclosure-0.1.1.zip, install and activate. The installed entry point is wp-content/plugins/verid-wallet-login/verid-wallet-login.php.
2. Enable pretty permalinks and working web-server rewrites. PHP OpenSSL and Sodium are required. Keep a separate local administrator login.
3. Open Settings > Wallet connection. Under Mode, select Site-wide age verification. Copy the displayed Age callback: <site-home-url>/verid-wallet/age-callback.
4. In Ver.iD Studio > Verify > Disclosures, create a separate disclosure. This example uses Yivi pbdf.gemeente.personalData.over18. Map the verified positive attribute to boolean true in ageOver18.
5. In that disclosure's Redirect URIs, add the exact Age callback. Attach an OAUTH secret, select a brand and activate the flow.
6. Under Age disclosure in WordPress, enter the discovery issuer, disclosure client identifier, secret value, organization UUID and trusted signing issuer from your private configuration. Keep the secret outside logs and public files.

The exact issuer is https://ssi.oauth.ver.id/ including its trailing slash. Obtain the expected signing issuer from trusted platform configuration, not from an unverified token.

== Result and access scope ==
A positive signed disclosure grants at most five minutes of browser access and creates no WordPress account. Check the public page and REST access again after expiry. Cancellation must not grant access.

Page/CDN caches must not bypass the gate. Direct media/static files require separate web-server access rules. The plugin does not provide per-product WooCommerce checkout restrictions.

For ordinary WordPress login, follow the standard OpenID Connect/Keycloak route in the integration guide. The additional login features present in this distribution are not required by that route.

== Operations ==
Use trusted HTTPS and omit callback queries from logs/caches. Preserve WordPress authentication salts with database backups: settings and transactions use them for encryption. Dependencies are bundled.

== Source ==
Adapted from Talao Wallet Login 0.1.12 by Web3 Digital Wallet (Talao). See UPSTREAM.md, LICENSE, DEPENDENCIES.json and vendor/jwt/LICENSE for provenance and licence notices.
