Cloudflare Access SSO
Cloudflare Access SSO (Single Sign On) for WordPress
by James Morrison · github.com/jamesmorrison/cloudflare-access-sso · website
★ 8stars
56composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jamesmorrison/cloudflare-access-sso/archive/refs/heads/trunk.zipAlso on Packagist as jamesmorrison/cloudflare-access-sso:
composer require jamesmorrison/cloudflare-access-ssoFrom the readme
Cloudflare Access SSO for WordPress
Cloudflare Access SSO (Single Sign On) is a plugin to facilitate auto-login to WordPress. The plugin relies on authorisation by Cloudflare, so it's important that you follow this setup guide carefully to ensure your site remains secure. For further guidance, refer to Cloudflare Documentation: Add Site to Cloudflare.
Note: If you don't currently use Cloudflare and don't plan to, this plugin probably isn't suitable for your site.
Cloudflare Access Setup
In order to use Cloudflare Access for SSO, you must create an application that covers wp-login.php on the site you wish to protect. No other URLs are required to be protected for this to function, but for better security you may wish to include others. Note that (as of June, 2023) it is not possible to define more than one path in a single application; for now multiple applications are required if you additionally wish to protect /wp-admin.
Follow this guide to create a Cloudflare Access Application: Self Hosted Applications
Plugin Configuration
Two constants are required to be set in wp-config.php (note: a settings page will be added in a future release):
CFACCESSTEAMNAME The Cloudflare Ac
Read the full README on GitHub →