JWT Public Key Update Event

On this page

JWT Public Key Update

This event is generated when you change the JWT settings of an Application or a Tenant. The JSON includes the Ids of the Applications that the change may affect.

Event type

jwt.public-key.update

Event Scope

Prior to version 1.37.0 this was a tenant- or application-scoped event. It can be sent to all applications or to one or more specified applications.

The ability to limit the generation of an event for only certain applications is legacy functionality and is removed as of version 1.37.0. In earlier versions, you almost certainly want to enable this event at the tenant level and optionally filter on the tenantId when consuming the event.

In version 1.37.0 and later this is a tenant-scoped event. It can be sent to all tenants or to one or more specified tenants. Those tenants will only be sent events related to their tenant. You can optionally also filter on the applicationId when consuming the event.

Transaction Compatibility

This event is transactional. The final state of the operation which caused the webhook is not persisted to FusionAuth until after the webhook finishes; learn more

Triggers#

FusionAuth sends this event when:

  • You update an Application with PUT /api/application/{applicationId} and change any value in the Application's JWT settings. FusionAuth sends the event for every change to the JWT settings, including a change to JWT duration alone. The JSON lists the Application Id.
  • You update a Tenant with PUT /api/tenant/{tenantId} and change any value in the Tenant's JWT settings. The JSON lists the active Applications that use the Tenant's JWT settings.

FusionAuth doesn't send this event when:

  • You create, generate, import, update, or delete a Key through the Keys API.
  • You create an Application or a Tenant.
  • You reactivate or delete an Application.

Event Body

event.applicationIds
  • Type: Array<UUID>

A list of Application Ids that may have been affected by a configuration change in which affect the public key used to sign JWTs.

event.createInstant
  • Type: Long

The instant that the event was generated.

event.id
  • Type: UUID

The unique Id of the event. You may receive an event more than once based upon your transaction settings. This Id may be used to identify a duplicate event.

event.info.data
  • Type: Object
  • Available since 1.30.0

The eventInfo.data object from the API request that triggered the event, without changes. Use the object to pass context, such as a trace Id, from an API request to a webhook. For more information, see Pass Context From API Requests to Webhooks.

event.info.deviceDescription
  • Type: String
  • Available since 1.30.0

The description of the device associated with the event.

event.info.deviceName
  • Type: String
  • Available since 1.30.0

The device name associated with the event.

event.info.deviceType
  • Type: String
  • Available since 1.30.0

The type of device associated with the event.

event.info.ipAddress
  • Type: String
  • Available since 1.27.0

The source IP address of the event.

event.info.location.city
  • Type: String
  • Available since 1.30.0

The city where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.location.country
  • Type: String
  • Available since 1.30.0

The country where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.location.latitude
  • Type: Double
  • Available since 1.30.0

The latitude where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.location.longitude
  • Type: Double
  • Available since 1.30.0

The longitude where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.location.region
  • Type: String
  • Available since 1.30.0

The geographic location where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.location.zipcode
  • Type: String
  • Available since 1.30.0

The zip code where the event originated.

Enterprise plan To use event location data, you'll need an Enterprise plan.

event.info.os
  • Type: String
  • Available since 1.30.0

The operating system associated with the event.

event.info.userAgent
  • Type: String
  • Available since 1.30.0

The user agent associated with the event.

event.tenantId
  • Type: UUID
  • Available since 1.8.0

The unique tenant identifier. This value may not be returned if not applicable.

event.type
  • Type: String

The event type, this value will always be jwt.public-key.update.

Example Event JSON
{
  "event": {
    "applicationIds": [
      "ecbe454c-3b52-46c3-87f7-b3e00c5636e6"
    ],
    "createInstant": 1505762615056,
    "id": "e502168a-b469-45d9-a079-fd45f83e0406",
    "tenantId": "e872a880-b14f-6d62-c312-cb40f22af465",
    "type": "jwt.public-key.update"
  }
}