Skip to content
Sign in

DIESIS JWT Auth for Cloudflare Access

Validates Cloudflare Access JWTs at the WordPress origin so protected paths stay closed to requests that bypass Cloudflare.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

Cloudflare Access can put a login in front of /wp-admin and /wp-login.php. It only helps if every request really passes through Cloudflare. Without Cloudflare Tunnel, anyone who knows the origin’s address can reach WordPress directly and skip Access entirely.

DIESIS JWT Auth for Cloudflare Access closes that gap. For the paths you choose, WordPress itself checks the Cf-Access-Jwt-Assertion header that Cloudflare Access adds to authenticated requests. A request without a valid token is answered with HTTP 403 before WordPress does anything else.

What it does

  • Verifies the Access JWT signature (RS256) against the signing keys of your Cloudflare Access team.
  • Checks expiry, issuer and the application audience of your Access application.
  • Optionally restricts access to a list of email addresses as a second check at the origin.
  • Protects the paths you configure, with prefix matching and explicit exclusions.
  • Caches signing keys for 12 hours and refreshes them when Cloudflare rotates keys.

What it does not do

  • It does not replace the WordPress login and does not create or log in users. Visitors pass Cloudflare Access first and then sign in to WordPress as usual.
  • It does not accept Cloudflare Access service tokens. Those carry no email claim and are always denied. Keep machine-to-machine paths such as cron, XML-RPC or the REST API out of the protected paths, or leave them public in both WordPress and the matching Access destination.

Safe defaults

Enforcement only runs when the settings are complete and the issuer is an HTTPS cloudflareaccess.com URL. Incomplete or invalid settings disable enforcement instead of locking you out. If Cloudflare’s key endpoint is temporarily unreachable, a previously cached key set keeps working.

Third-party service

To verify tokens the plugin downloads the public signing keys of your Cloudflare Access team from the issuer you configure, for example https://your-team.cloudflareaccess.com/cdn-cgi/access/certs. No site data is sent; the request is a plain download of public keys, repeated at most every 12 hours or after a key rotation. Cloudflare’s terms and privacy policy apply to that endpoint: Terms, Privacy policy.

Source code, issues and support: github.com/DiesisMedia/diesis-jwt-auth

Written by Joobi from the project's own listing. See the source page

accessauthenticationcloudflarejwtsecurity
25 Nov 2026
Version 1.5.2 released. Not scanned yet.

1.5.2

  • Tested with WordPress 7.2 RC3 and PHP 8.6. No code or settings changes.

1.5.1

  • Updated the bundled firebase/php-jwt library to 7.2.2.

1.5.0

  • Requires PHP 8.3 or newer. PHP 8.1 no longer gets security fixes and PHP 8.2 stops getting them at the end of 2026. WordPress does not install this update on older PHP versions. No other changes.

1.4.4

  • Updated the bundled firebase/php-jwt library to 7.2.1.

1.4.3

  • Updated the bundled firebase/php-jwt library to 7.2.0.

1.4.2

  • Updated the bundled firebase/php-jwt library to 7.1.1.

1.4.1

  • The plugin asks for a review on WordPress.org and a star on GitHub: a dismissible notice after two weeks of enforcement, a line on the settings page, and two links in the plugin row. Dismissing the notice brings it back after three months, a year and two years, then never again; following the review link ends it straight away. Uninstalling removes everything it stored.

1.4.0

  • The plugin is translatable. It ships catalogs for de_DE, es_ES, it_IT, zh_CN, ja, and pt_BR; further languages can come from translate.wordpress.org.
  • Documented all default settings, with copyable protected paths for root and subdirectory installations.

1.3.0

  • The plugin slug and text domain are now diesis-jwt-auth; the option and cached key names follow it.

1.2.0

  • Renamed to DIESIS JWT Auth for Cloudflare Access; first release in the WordPress plugin directory.
  • The bundled JWT library is now namespaced to this plugin, so another plugin shipping a different version cannot replace it.
  • Fixed the release build appending to an existing ZIP.
  • The settings page and menu entry carry the plugin name.
  • The release package contains only the files the plugin needs; development and agent files stay out.

1.1.0

  • An issuer that is not an HTTPS cloudflareaccess.com URL, or settings missing the issuer or audience, now disable enforcement instead of denying access. A bad option row can no longer lock the site.
  • During a Cloudflare outage without cached keys, a protected request makes one key fetch instead of two and is denied with the reason keys_unavailable.
  • The key refresh throttle counts every fetch attempt, so an unknown key id costs at most one extra fetch per five minutes.
  • Uninstall no longer depends on the vendor directory.

1.0.1

  • Security: request paths are canonicalized before matching, so encoding and dot-segment tricks such as /a/../wp-login.php can no longer dodge a protected path.
  • Uninstall removes the option from every site on a multisite network and clears cached keys from persistent object caches.
  • Accept boolean and integer true for the enforcement flag on programmatic option updates.

1.0.0

  • Initial release: validates Cloudflare Access JWTs at the WordPress origin, protects configurable login and admin paths, optional email allowlist.
24 Nov 2026
Version 1.5.1 released. Not scanned yet.

1.5.1

  • Updated the bundled firebase/php-jwt library to 7.2.2.

1.5.0

  • Requires PHP 8.3 or newer. PHP 8.1 no longer gets security fixes and PHP 8.2 stops getting them at the end of 2026. WordPress does not install this update on older PHP versions. No other changes.

1.4.4

  • Updated the bundled firebase/php-jwt library to 7.2.1.

1.4.3

  • Updated the bundled firebase/php-jwt library to 7.2.0.

1.4.2

  • Updated the bundled firebase/php-jwt library to 7.1.1.

1.4.1

  • The plugin asks for a review on WordPress.org and a star on GitHub: a dismissible notice after two weeks of enforcement, a line on the settings page, and two links in the plugin row. Dismissing the notice brings it back after three months, a year and two years, then never again; following the review link ends it straight away. Uninstalling removes everything it stored.

1.4.0

  • The plugin is translatable. It ships catalogs for de_DE, es_ES, it_IT, zh_CN, ja, and pt_BR; further languages can come from translate.wordpress.org.
  • Documented all default settings, with copyable protected paths for root and subdirectory installations.

1.3.0

  • The plugin slug and text domain are now diesis-jwt-auth; the option and cached key names follow it.

1.2.0

  • Renamed to DIESIS JWT Auth for Cloudflare Access; first release in the WordPress plugin directory.
  • The bundled JWT library is now namespaced to this plugin, so another plugin shipping a different version cannot replace it.
  • Fixed the release build appending to an existing ZIP.
  • The settings page and menu entry carry the plugin name.
  • The release package contains only the files the plugin needs; development and agent files stay out.

1.1.0

  • An issuer that is not an HTTPS cloudflareaccess.com URL, or settings missing the issuer or audience, now disable enforcement instead of denying access. A bad option row can no longer lock the site.
  • During a Cloudflare outage without cached keys, a protected request makes one key fetch instead of two and is denied with the reason keys_unavailable.
  • The key refresh throttle counts every fetch attempt, so an unknown key id costs at most one extra fetch per five minutes.
  • Uninstall no longer depends on the vendor directory.

1.0.1

  • Security: request paths are canonicalized before matching, so encoding and dot-segment tricks such as /a/../wp-login.php can no longer dodge a protected path.
  • Uninstall removes the option from every site on a multisite network and clears cached keys from persistent object caches.
  • Accept boolean and integer true for the enforcement flag on programmatic option updates.

1.0.0

  • Initial release: validates Cloudflare Access JWTs at the WordPress origin, protects configurable login and admin paths, optional email allowlist.
17 Sep 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)