---
title: "AWS Split Token Publisher Event Listener"
description: "An event listener that publishes token data to AWS DynamoDB using a split token approach."
url: "https://curity.io/resources/learn/aws-token-publisher/"
date: "2020-09-09"
area: "tutorials"
topic: "code-examples"
pagegroup: "plugins-event-listeners"
repository: "https://github.com/curityio/aws-token-publisher"
---

# AWS Split Token Publisher Event Listener

An Event Listener Plugin that listens to events on issued access tokens. When an access token is issued in the Curity Identity Server this plugin sends parts of the token to AWS DynamoDB where the information is cached and later used in a [split token approach](https://curity.io/resources/learn/split-token-pattern/).

To deploy the plugin, first download the latest [release of the AWS Token Publisher](https://github.com/curityio/aws-token-publisher/tags) from GitHub. Then unpack the release archive. You should now have a folder called `aws-token-publisher` that contains the file `identityserver.plugins.events.listeners.aws-token-publisher-<version>.jar` and all its dependencies. Copy that folder to `<idsvr_home>/usr/share/plugins/`.

Open the Admin UI. In **System** -> **Event Listeners** create a new event listener of type _AWS Token Publisher_.

![Create new AWS Token Publisher Event Listener](https://curity.io/images/resources/code-examples/plugins/event-listeners/aws-token-publisher/new-listener.jpg)

Configure the settings for the DynamoDB. Specify the AWS region, table name and column to store the token signature hash (primary key). Select the hashing algorithm used to produce the hash of the signature. Finally, select a method to get the credential for accessing the DynamoDB.

![Configure DynamoDB for AWS Token Publisher Event Listener](https://curity.io/images/resources/code-examples/plugins/event-listeners/aws-token-publisher/configure-listener.jpg)

Commit the changes.
