Webhook, users and roles

Optional. The webhook is the most recommended for production: login works without it, but WordPress won’t know when the user signs out from Block-Auth.

Set the webhook

Copy the signout callback URL shown in the plugin settings:

Callback URL

https://your-site.com/wp-json/blockauth/v1/signout-callback

Replace https://your-site.com with your WordPress site URL.

In the Dashboard, open your application's Authentication settings. In the third URL field, shown as "When user fails to log in", type only the path /wp-json/blockauth/v1/signout-callback (your domain is already filled in). When a user signs out in Block-Auth or unlinks your site, WordPress closes their sessions.

Users who already have a WordPress account can link it to their Block-Auth identity from their profile, from WooCommerce › My Account or wherever you place the [blockauth_link] shortcode. Linking asks for a WordPress login in the last 10 minutes. After that, signing in with Block-Auth opens that same WordPress account.

You can turn linking off with Let signed-in users link their account to Block-Auth in the settings.

Roles and safety switch

New users get the default role you choose, and you can map Block-Auth roles to WordPress roles in the settings. If you ever lock yourself out, add this line to wp-config.php to bring back the classic login:

wp-config.php

define( 'BLOCKAUTH_DISABLE', true );