https://github.com/curityio/cloudflare-token-publisher
A Demo token publisher for the split token approach with Cloudflare CDN.
https://github.com/curityio/cloudflare-token-publisher
cloudflare event-listener plugin split-token token-publisher
Last synced: 2 months ago
JSON representation
A Demo token publisher for the split token approach with Cloudflare CDN.
- Host: GitHub
- URL: https://github.com/curityio/cloudflare-token-publisher
- Owner: curityio
- License: apache-2.0
- Created: 2020-05-20T12:20:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T09:10:42.000Z (almost 6 years ago)
- Last Synced: 2026-01-14T05:59:39.528Z (6 months ago)
- Topics: cloudflare, event-listener, plugin, split-token, token-publisher
- Language: Java
- Homepage: https://curity.io/resources/learn/cloudflare-token-publisher/
- Size: 340 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare Token Publisher Demo Plugin
[](https://curity.io/resources/code-examples/status/)
[](https://curity.io/resources/code-examples/status/)
This is an example event listener SDK Plugin for the Curity Identity Server. The plugin registers an event listener
listening for issued access token events, and forwards them to Cloudflare KV store.
## Building, installation and configuration
To build the plugin, simply download it and run `mvn package`. This creates `target/identityserver.plugins.events.listeners.cloudflare-token-publisher-0.1.0.jar`.
Create a new folder `cloudflare_token_publisher` in `/usr/share/plugins/` then copy the jar to that folder
and (re)start the Curity Identity Server. Configure a new event listener (shown here using the Admin UI, but might just
as well be configured through the CLI, REST or XML):

Pick a suitable name and then select the "cloudflare-token-publisher" type:

Configure your listener by adding:
- your Cloudflare account ID
- a Cloudflare API token which has permissions to write to the workers KV store
- the ID of the KV namespace which should be used to store the tokens

Please visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.