Linux 软件免费装

Auto Login with Cloudflare

开发者 kanru
更新时间 2022年1月8日 21:55
捐献地址: 去捐款
PHP版本: 5.3 及以上
WordPress版本: 5.9
版权: GPL-2.0+
版权网址: 版权信息

标签

login jwt cloudflare

下载

1.0.0 0.9.1 0.9.2 0.9.3 0.9.0 1.1.1 1.1.2

详情介绍:

Enable Cloudflare Access self-hosted application to protect your /wp-admin folder. Add your auth domain and aud settings from Cloudflare Access. Authenticated user will be automatically logined to Wordpress if their email address matches. Follow Cloudflare document to setup Access. You can also define configs in wp-config.php define('WP_CF_ACCESS_AUTH_DOMAIN', 'yourdomain.cloudflareaccess.com'); define('WP_CF_ACCESS_JWT_AUD', 'examplef2nat0rkar2866wn829a0x2ztdg'); define('WP_CF_ACCESS_REDIRECT_LOGIN', true); This plugin is not affiliated with nor developed by Cloudflare. All trademarks, service marks and company names are the property of their respective owners.

屏幕截图:

  • Settings

常见问题:

How do I redirect the WP login page at /wp-login.php to Cloudflare Access?

Enable the "Redirect login page" option and all future logins will be redirected to /wp-admin and trigger Access authentication.

Why do I get infinite redirect loop after enabling the redirect login page option?

The option assumes that /wp-admin folder is protected by Cloudflare Access. If the folder is not protected, then auto-login will fail and redirect back to the login page, causing the redirect loop.

更新日志:

1.1.2 1.1.1 1.0.0 0.9.3 0.9.2 0.9.0