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 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 The instant that the event was generated.
event.id 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 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 The description of the device associated with the event.
event.info.deviceName The device name associated with the event.
event.info.deviceType The type of device associated with the event.
event.info.ipAddress The source IP address of the event.
event.info.location.city The city where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.location.country The country where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.location.latitude The latitude where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.location.longitude The longitude where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.location.region The geographic location where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.location.zipcode The zip code where the event originated.
Enterprise plan To use event location data, you'll need an Enterprise plan.
event.info.os The operating system associated with the event.
event.info.userAgent The user agent associated with the event.
event.tenantId The unique tenant identifier. This value may not be returned if not applicable.
event.type The event type, this value will always be jwt.public-key.update.
{
"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"
}
}