Enabling WordPress SSO

WordPress is one of the OAuth2 SSO methods. Click here to learn more about how OAuth2 SSO works and what other OAuth2 SSO methods Bettermode supports.

Required credentials for setting up WordPress SSO

  • Client ID:* An alphanumeric string publicly exposed and used by the service API to identify the application. This is also used to build authorization URLs that are presented to users.

  • Client Secret:* A secret known only to the application and the authorization server. It protects the resources by only granting tokens to authorized requestors.

  • WordPress Domain:* Domain URL of your WordPress website.

  • Login Button Text:* Text defined here will appear on the login page for the users. You can insert any text. For example: Login with SSO

  • Redirect URI: The URL a browser redirects to once the process of Authentication is complete.

How to find WordPress credentials

Follow the steps below to find the WordPress credentials on the WordPress website: Domain, Client ID, and Client Secret:

  1. Visit your WordPress website.

  2. Go to Plugins> Add New and wait for the new page to load.

3. Search for the keyword OAuth on the top right side and download the WP OAuth Server (OAuth Authentication) plugin.

3. Once downloaded, click on OAuth Server>Clients and click on Add New Client.

4. On the next page, add the following information:

4.1. Client Name- Anything of your choice
4.2. Redirect URI- The URL of your community address appended with /ssos/redirect. For example:
URL: https://community4.blogha.com
Callback URL https://community4.blogha.com/ssos/redirect
4.3. Client Credential Assigned User- One of the admin users can be selected here.

5. Hit "Create Client" and on the next page, Client ID, Client Secret, and the WordPress Domain will be available:

Set up OAuth2 SSO using WordPress

  1. Once all the information from the previous section is gathered, log into Bettermode using your admin account, click on your profile picture on top-right > Administration > Settings > Authentication > and click on the Enable Single sign-on option:

  1. Choose WordPress as SSO Provider and fill in the required information, as explained in the previous section.
    ❗Note: All fields are mandatory.

  1. Once updated, toggle the "Enable OAuth2" switch and click on Update.

  2. Congratulations! OAuth2 SSO is now up and running!

  3. Visit the community URL and click on the Login Button. Example: https://community1.blogha.com. Authenticate using existing/new credentials on the SSO login page.

Login & register with email

If a member should be directed to the SSO provider page directly when they open the community, you need to disable Login & register with email.

To disable this option, click on your profile picture on the top-right > Administration > Settings > Authentication > turn off the toggle for Login & register with email:

Once disabled, the user will not see the default option of signing up or logging in using Email and Password.

What's Next?

Contact Us

Do you still need help? Learn how to get in touch with the Bettermode Team.