capabilities.work

Revoke Permission and Evict Connection

A 2-step recipe with Azure Web PubSub. We can help you get access.

Recipe · 2 steps

Revoke Permission and Evict Connection

Revoke a connection's permission, then close the connection.

  1. Revoke the named permission from the connection so it can no longer act on the target.
  2. Close the connection, optionally recording a reason, to fully evict it from the hub.
What you'll need to have ready
  • accessToken: JWT bearer token for the Web PubSub data plane.
  • apiVersion: Data plane REST API version.
  • hub: Target hub name.
  • permission: Permission to revoke from the connection.
  • connectionId: The connection id to revoke and evict.
  • reason: Optional reason recorded when closing the connection.
For your developer

Arazzo workflow microsoft-azure-web-pubsub:revoke-permission-and-evict, 2 operations: webPubSub_revokePermission → webPubSub_closeConnection. Specs on APIs.io.