{"id":135905,"date":"2021-02-03T03:19:32","date_gmt":"2021-02-03T03:19:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/cloudflare-access-auto-login\/"},"modified":"2022-11-19T12:23:02","modified_gmt":"2022-11-19T12:23:02","slug":"auto-login-with-cloudflare","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/auto-login-with-cloudflare\/","author":18531664,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.4","stable_tag":"1.1.4","tested":"6.1.10","requires":"5.0","requires_php":"5.3","requires_plugins":"","header_name":"Auto Login with Cloudflare","header_author":"Kan-Ru Chen","header_description":"Allow login to Wordpress when using Cloudflare Access.","assets_banners_color":"","last_updated":"2022-11-19 12:23:02","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.buymeacoffee.com\/kanru","header_plugin_uri":"https:\/\/github.com\/kanru\/auto-login-with-cloudflare","header_author_uri":"https:\/\/github.com\/kanru","rating":5,"author_block_rating":0,"active_installs":60,"downloads":2037,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"0.9.0":{"tag":"0.9.0","author":"kanru","date":"2021-02-03 03:19:05"},"0.9.1":{"tag":"0.9.1","author":"kanru","date":"2021-02-14 08:07:19"},"0.9.2":{"tag":"0.9.2","author":"kanru","date":"2021-02-14 08:17:04"},"0.9.3":{"tag":"0.9.3","author":"kanru","date":"2021-03-09 15:42:46"},"1.0.0":{"tag":"1.0.0","author":"kanru","date":"2021-07-10 01:36:23"},"1.1.1":{"tag":"1.1.1","author":"kanru","date":"2021-08-29 03:23:15"},"1.1.2":{"tag":"1.1.2","author":"kanru","date":"2022-01-08 13:55:23"},"1.1.3":{"tag":"1.1.3","author":"kanru","date":"2022-11-19 06:00:09"},"1.1.4":{"tag":"1.1.4","author":"kanru","date":"2022-11-19 12:23:02"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2467808,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2467808,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9.0","0.9.1","0.9.2","0.9.3","1.0.0","1.1.1","1.1.2","1.1.3","1.1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2467541,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Settings"}},"plugin_section":[],"plugin_tags":[3882,38851,602],"plugin_category":[38],"plugin_contributors":[195812],"plugin_business_model":[],"class_list":["post-135905","plugin","type-plugin","status-closed","hentry","plugin_tags-cloudflare","plugin_tags-jwt","plugin_tags-login","plugin_category-authentication","plugin_contributors-kanru","plugin_committers-kanru"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/auto-login-with-cloudflare.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/auto-login-with-cloudflare\/assets\/screenshot-1.png?rev=2467541","caption":"Settings"}],"raw_content":"<!--section=description-->\n<p>Enable Cloudflare Access self-hosted application to protect your <code>\/wp-admin<\/code> folder. Add your auth domain and aud settings from Cloudflare Access. Authenticated user will be automatically logined to Wordpress if their email address matches.<\/p>\n\n<p>Follow <a href=\"https:\/\/developers.cloudflare.com\/cloudflare-one\/applications\/configure-apps\/self-hosted-apps\/\">Cloudflare document<\/a> to setup Access.<\/p>\n\n<p>You can also define configs in <code>wp-config.php<\/code><\/p>\n\n<pre><code>define('WP_CF_ACCESS_AUTH_DOMAIN', 'yourdomain.cloudflareaccess.com');\ndefine('WP_CF_ACCESS_JWT_AUD', 'examplef2nat0rkar2866wn829a0x2ztdg');\ndefine('WP_CF_ACCESS_REDIRECT_LOGIN', true);\n<\/code><\/pre>\n\n<p>This plugin is not affiliated with nor developed by Cloudflare. All trademarks, service marks and company names are the property of their respective owners.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20redirect%20the%20wp%20login%20page%20at%20%60%2Fwp-login.php%60%20to%20cloudflare%20access%3F'><h3>How do I redirect the WP login page at `\/wp-login.php` to Cloudflare Access?<\/h3><\/dt>\n<dd><p>Enable the \"Redirect login page\" option and all future logins will be redirected to <code>\/wp-admin<\/code> and trigger Access authentication.<\/p><\/dd>\n<dt id='why%20do%20i%20get%20infinite%20redirect%20loop%20after%20enabling%20the%20redirect%20login%20page%20option%3F'><h3>Why do I get infinite redirect loop after enabling the redirect login page option?<\/h3><\/dt>\n<dd><p>The option assumes that <code>\/wp-admin<\/code> 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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Fix redirect issue for non-default wp-admin urls<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Tested with WordPress 6.1.1<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.9<\/li>\n<li>Fixed errors when activated in multi-site enabled installation<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Show an error message when user does not exist to prevent redirect loop<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.8<\/li>\n<li>Update php-jwt to 5.4<\/li>\n<li>Stable. No major change planned<\/li>\n<\/ul>\n\n<h4>0.9.3<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.7<\/li>\n<\/ul>\n\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>update minimum requirements<\/li>\n<li>update php-jwt to 5.2.1<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>First beta release.<\/li>\n<\/ul>","raw_excerpt":"Super simple way to allow a single sign on to your Wordpress site when using Cloudflare Access.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/135905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=135905"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kanru"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=135905"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=135905"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=135905"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=135905"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=135905"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=135905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}