---
title: "WordPress: connect it and choose the login"
description: "Connect the plugin with your keys, choose how the login looks and try it."
url: "/sdk-integration-wordpress-connect/"
language: "en"
guide: "WordPress"
step: "Quickstart step 2 of 3, required"
---

# 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**

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

> **Placeholders in this code:**
>
> - 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](/sdk-integration-wordpress-go-live.md): the same on your live site, with its production keys.

Next step: [Go live](/sdk-integration-wordpress-go-live.md)
