Title: Cloudbridge Mattermost
Author: joho68
Published: <strong>noviembre 19, 2020</strong>
Last modified: febrero 11, 2026

---

Search plugins

![](https://ps.w.org/cloudbridge-mattermost/assets/banner-772x250.png?rev=2421459)

![](https://ps.w.org/cloudbridge-mattermost/assets/icon.svg?rev=2421459)

# Cloudbridge Mattermost

 By [joho68](https://profiles.wordpress.org/joho68/)

[Download](https://downloads.wordpress.org/plugin/cloudbridge-mattermost.2.2.3.zip)

 * [Details](https://arg.wordpress.org/plugins/cloudbridge-mattermost/#description)
 * [Reviews](https://arg.wordpress.org/plugins/cloudbridge-mattermost/#reviews)
 *  [Installation](https://arg.wordpress.org/plugins/cloudbridge-mattermost/#installation)
 * [Development](https://arg.wordpress.org/plugins/cloudbridge-mattermost/#developers)

 [Support](https://wordpress.org/support/plugin/cloudbridge-mattermost/)

## Description

This WordPress plugin provides integration with Mattermost.

The plugin provides **OAuth2 authentication** functionality for logging into WordPress
via Mattermost.

The plugin provides **OAuth2 authentication** functionality for registering new 
WordPress users via Mattermost.

The plugin additionally provides the following **notification** functionality, using
an **incoming webhook** in Mattermost:

 * Notifications for successful login
 * Notifications for failed login
 * Notifications for unknown user login attempt
 * Notifications for password reset
 * Notifications for plugin activation
 * Notifications for plugin deactivation
 * Notifications for plugin uninstallation
 * Notifications for new/edited user
 * Notifications for deleted user

The plugin can also make use of additional functionality such as posting to a specific
channel/user, overriding bot names, and additionally mention specific users.

Other notes:

 * This plugin **may** work with earlier versions of WordPress
 * This plugin has been tested with **WordPress 5.5.3 to 6.9.x** at the time of 
   this writing
 * This plugin has been tested with **Mattermost 5.x to 11.x** at the time of this
   writing
 * This plugin has been tested with **PHP 7.4.x, 8.1.x, 8.2.x, and 8.3.x** at the
   time of this writing
 * This plugin optionally makes use of the `mb_` PHP functions
 * This plugin may create entries in your PHP error log (if active)
 * This plugin contains no Javascript
 * This plugin contains no tracking code and does not process or store any information
   about users

### Credits

Copyright 2020-2026 Joaquim Homrighausen; all rights reserved.

The Cloudbridge Mattermost WordPress Plugin was written by Joaquim Homrighausen 
while converting caffeine into code.

Cloudbridge Mattermost is sponsored by [WebbPlatsen i Sverige AB](https://webbplatsen.se),
Stockholm, Sweden.

Commercial support and customizations for this plugin is available from WebbPlatsen
i Sverige AB in Stockholm, Sweden.

If you find this plugin useful, the author is happy to receive a donation, good 
review, or just a kind word.

If there is something you feel to be missing from this plugin, or if you have found
a problem with the code or a feature, please do not hesitate to reach out to support@webbplatsen.
se.

This plugin can also be downloaded from [code.webbplatsen.net](https://code.webbplatsen.net/wordpress/cloudbridge-mattermost/)
and [GitHub](https://github.com/joho1968/cloudbridge-mattermost)

## Installation

This section describes how to install the plugin and get it working.

 1. Upload the contents of the `cloudbridge-mattermost` folder to the `/wp-content/
    plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure the basic settings, such as the webhook URL
 4. To enable OAuth2 authentication, you’ll need to configure your Mattermost instance
    to allow this: [OAuth 2.0 Applications](https://docs.mattermost.com/developer/oauth-2-0-applications.html)

## FAQ

### Is the plugin locale aware

Cloudbridge Mattermost uses standard WordPress functionality to handle localization/
locale. The native language localization of the plugin is English. It has been translated
to Swedish by the author.

For notifications sent to Mattermost, there is a setting since 1.1.0 that will allow
you to override all such messages to be in en_US locale (English).

### Are there any incompatibilities

This is a hard question to answer. There are no known incompatibilities.

### Is there a way to customize the Mattermost login button

The short answer is yes. The long answer follows:

Add a filter hook in your functions.php or elsewhere like so:

> add_filter(‘cbmm_login_filter’, ‘name_of_your_function’, 10, 1);

Your function will receive one argument, which is an associative array with three
items: url, text, and full.

The ‘url’ item contains the url to the OAuth2 handler for the plugin, you should
not modify this. The ‘text’ item contains the prompt (“Use Mattermost to login”).
The ‘full’ item contains the entire HTML output for the additional Mattermost login
section on the WordPress login form.

Your function should always return an associative array. If you want to update just
the ‘text’ item, simply do so in the array passed to your function and then return
the same array. If you want to completely replace the full HTML output, add an item
named ‘override’ to the returned array.

### What callback URL do I have to setup on Mattermost

The URL should be:
 https:///wp-content/plugins/mattermost/includes/cbmm-oauth2.
php

If your `wp-content/plugins` is not in a standard place, then you will need to replace
that with the correct URL to it.

## Reviews

![](https://secure.gravatar.com/avatar/cfbd2f063efd6fed5805e7cf96f1710ca2ebacc9ba594924abe39431684e1f45?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-28805/)󠁿

 [jarven](https://profiles.wordpress.org/jarven/) aviento 2, 2020

I manage a lot of WordPress sites and this plugin really help me.

 [ Read all 1 review ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/)

## Contributors & Developers

“Cloudbridge Mattermost” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ joho68 ](https://profiles.wordpress.org/joho68/)
 *   [ WebbPlatsen ](https://profiles.wordpress.org/webbplatsen/)

“Cloudbridge Mattermost” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/cloudbridge-mattermost/contributors)
for their contributions.

[Translate “Cloudbridge Mattermost” into your language.](https://translate.wordpress.org/projects/wp-plugins/cloudbridge-mattermost)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cloudbridge-mattermost/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cloudbridge-mattermost/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cloudbridge-mattermost/)
by [RSS](https://plugins.trac.wordpress.org/log/cloudbridge-mattermost/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.3

 * Verified with Mattermost version 8-11 and WordPress 6.9.x
 * Notifications are no longer sent for non‑standard login errors when all “Unsuccessful
   login” roles are unchecked (#2, itsumonotakumi)
 * Fix override handling for Mattermost login/register button filter output
 * Hardened OAuth2 post-login redirects to same-host only; external redirect_to 
   values now fall back to admin/home
 * Updated Composer dependencies (guzzlehttp/*, league/oauth2-client, symfony/deprecation-
   contracts) and removed paragonie/random_compat

#### 2.2.2

 * Verified with Mattermost 8.x, 9.x, 10.x and WordPress 6.8.x
 * Thanks to Nelson (castillo-n) for various fixes (PR#1)
 * Added missing property `$cbmm_site_label` to class
 * Removed use of `FILTER_SANITIZE_STRING` (deprecated in PHP 8.1)
 * Removed use of uninitialized variables (exception handling)

#### 2.2.1

 * Refactor code to prevent warnings in PHP log while checking roles
 * Verified with Mattermost 8.x, 9.x and WordPress 6.5.x
 * Updated various dependencies

#### 2.2.0

 * Improved support for Mattermost accounts with 2FA/MFA enabled
 * Added possibility to register new users via Mattermost
 * Added possibility to register new users only via Mattermost
 * Verified with Mattermost 7.x and WordPress 6.x
 * Updated various dependencies

#### 2.1.0

 * Verified with WordPress 5.8
 * Support for Cloudflare
 * Minor fixes

#### 2.0.0

 * Added **OAuth2 support**, you can now login to WordPress via Mattermost!
 * Changed emoji for admin link to a more suitable one (:link:)

#### 1.1.0

 * Moved notifications to a separate tab
 * Added notifications for password reset
 * Added notification for plugin activation
 * Added notification for plugin deactivation
 * Added notification for plugin uninstallation
 * Added notification for new/edited user
 * Added notification for deleted user
 * Added general notice emoji (:bell:)
 * Added setting to force notifications to be en_US locale (English)
 * Login/Login failure hooks are only hooked if webhook URL has been configured
 * Corrected locale display/handling of some strings
 * Updated donate link

#### 1.0.0

 * Initial release

## Meta

 *  Version **2.2.3**
 *  Last updated **2 meses ago**
 *  Active installations **60+**
 *  WordPress version ** 5.4.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/cloudbridge-mattermost/), [Russian](https://ru.wordpress.org/plugins/cloudbridge-mattermost/)
   y [Swedish](https://sv.wordpress.org/plugins/cloudbridge-mattermost/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/cloudbridge-mattermost)
 * Tags
 * [cloud](https://arg.wordpress.org/plugins/tags/cloud/)[integration](https://arg.wordpress.org/plugins/tags/integration/)
   [Mattermost](https://arg.wordpress.org/plugins/tags/mattermost/)[Notifications](https://arg.wordpress.org/plugins/tags/notifications/)
   [security](https://arg.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://arg.wordpress.org/plugins/cloudbridge-mattermost/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cloudbridge-mattermost/reviews/)

## Contributors

 *   [ joho68 ](https://profiles.wordpress.org/joho68/)
 *   [ WebbPlatsen ](https://profiles.wordpress.org/webbplatsen/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cloudbridge-mattermost/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://code.webbplatsen.net/wordpress/cloudbridge-mattermost/)