Connect it and choose the login

The last step: connect the plugin with your keys, choose how the login looks and check that it works.

Connect it

Go to Settings › Block-Auth Login, paste the API key and API secret, and press Test connection. The secret is stored encrypted. If you prefer, define the keys in wp-config.php instead:

wp-config.php

define( 'BLOCKAUTH_API_KEY', 'your_api_key' );
define( 'BLOCKAUTH_API_SECRET', 'your_api_secret' );

Replace the API Secret placeholder with your API Secret, copied straight from the Dashboard. Never paste it on this site.

Replace your_api_key with your API Key, or fill in your data in the SDK Quickstart and it is filled in for you.

Choose the login

In the same settings page, choose how the login looks:

  • Next to the classic form: users can sign in with their password or with Block-Auth.
  • Replace the form: your site has no passwords at all.

To place the button on any page, use the [blockauth_login] shortcode. WooCommerce login forms are supported.

Try it

Sign out of WordPress, open the login page (/wp-login.php) and press the Block-Auth button. When you sign in, you must land in WordPress with your user.

If so, it works on this site. The last step is Go live: the same on your live site, with its production keys.