In this tutorial, I’ll guide you through the process of integrating Circle, a community platform, with your WordPress site to enable a single sign-on (SSO). This means your users will only need one login to access both your WordPress-based content and your Circle community. Let’s dive in!
I have a video version of this tutorial as well as a step by step written version below for your convenience.
Step 1: Install and Activate the WP OAuth Server Plugin
To begin, we’ll add the necessary plugin to our WordPress site.
- Navigate to Plugins: In your WordPress dashboard, go to
Plugins > Add New
. - Search for WP OAuth Server: In the search bar, type “WP OAuth Server”.
- Install the Plugin: Look for the plugin named “WP OAuth Server (OAuth Authentication)”, which is recommended by Circle. Click
Install Now
. - Activate the Plugin: Once installed, click
Activate
.
Step 2: Configure the WP OAuth Server Plugin
With the plugin installed and activated, we need to configure it.
- Access OAuth Server Settings: In your WordPress dashboard, find
OAuth Server
in the left-hand menu and clickSettings
. - Enable OAuth Server: Check the box to enable the OAuth server and click
Save Changes
.
Step 3: Add a New Client in WP OAuth Server
Next, we need to create a new client within the OAuth server.
- Navigate to Clients: In the OAuth server settings, click on
Clients
and thenAdd New Client
. - Fill in Client Details:
- Client Name: Enter a name that helps you identify this connection, such as “Circle”.
- Redirect URL: You’ll get this from your Circle account. (Instructions below)
Step 4: Obtain the Redirect URL from Circle
To connect Circle to your WordPress site, we need a specific URL from Circle.
- Go to Circle Settings: In your Circle account, navigate to the settings gear on the left-hand side.
- Access Single Sign-On: Click on
Single Sign-On
and chooseWordPress WP OAuth
. - Copy the Callback URL: This URL follows the format
https://yourcommunitydomain/oauth2/callback
. Copy this URL.
Step 5: Complete Client Setup in WordPress
Now, return to your WordPress site to finalize the client setup.
- Paste the Redirect URL: In the new client setup screen, paste the copied URL into the
Redirect URL
field. - Create the Client: Click
Create Client
. This will generate aClient ID
and aClient Secret
.
Step 6: Enter Client ID and Secret in Circle
With the Client ID and Secret generated, we need to input these into Circle.
- Return to Circle Settings: Go back to the Circle settings where you copied the callback URL.
- Paste the Credentials: Enter the
Client ID
andClient Secret
in the respective fields in Circle. - Enable SSO: Ensure that the SSO option is enabled. This will rely on the settings you configured in WordPress.
Step 7: Additional Circle Configuration
Make sure to set up a few additional settings in Circle to ensure a smooth user experience.
- Allow Existing Circle Members to Sign In: Initially, enable this option to avoid getting locked out during setup. You can disable it after verifying that everything works.
- Ensure Matching Admin Emails: The email used for your Circle admin account should match the admin email on your WordPress site to avoid access issues.
Step 8: Customize WordPress Login Screen
To ensure a cohesive brand experience, customize your WordPress login screen.
You can accomplish this easily using a plugin such as SureMembers or Thrive Themes‘ login customizer.
The SureMembers Method
- Enable Login Customizer: Navigate in WordPress to SureMembers > Settings > Login Customizer.
- Customize Login URL: You can toggle this on to change your login url. It’s nicer than the default wp-login.
- Customize Colors: Adjust your colors to match your brand. This is a simple customizer.
The Thrive Themes Method
- Access Thrive Dashboard: In your WordPress dashboard, go to
Thrive Dashboard > Login Screen Branding
. - Manage Login Screen: Click on
Manage Login Screen
and thenEdit with Thrive Architect
. - Customize: Adjust the appearance to match your brand, replacing the default WordPress look.
Testing the Integration
- Log Out of Both Sites: Ensure you are logged out of both your WordPress site and Circle.
- Test Login: Navigate to your Circle community and click the login button. You should be redirected to your custom WordPress login screen. After logging in, you should be redirected back to Circle, now logged in.
Conclusion
That’s all there is to setting up Circle with WordPress for single sign-on! Now, your users can enjoy seamless access to your courses, memberships, and community discussions without juggling multiple logins.
If you’re interested in joining our private community, check out the link below for more information. Happy integrating!