Deactivate a subject for this policy entry derived from the token
This action only works when authenticated with a Json Web Token (JWT).
Based on the authenticated token (JWT), this policy entry is checked to match those conditions:
- the authenticated token is granted the
EXECUTEpermission to perform thedeactivateTokenIntegrationaction - one of the subject IDs is contained in the authenticated token
When all conditions match, the calculated subject with information extracted from the authenticated JWT is removed from this policy entry.
The injected subjects expire when the JWT expires. The expiry timestamp (a string in ISO-8601 format)
specifies how long the specific subject will have access to the resource secured by the policy.
The subject will be automatically deleted from the policy once this timestamp is reached.
To give the subject a chance to prolong the access he can configure a connection to get announcements.
Policy announcements are published to websockets and connections that have the relevant subject ID.
The settings under announcement control when a policy announcement is published (before expiry or when deleted).
If the field requestedAcks is set, then the announcements are published with at-least-once delivery until
the acknowledgement requests under labels are fulfilled.
If a "beforeExpiry" announcement was sent without acknowledgement requests, or the a "beforeExpiry"
announcement was acknowledged, the "whenDeleted" announcement will not be triggered.
Parameters
policyIdstringrequiredpathThe ID of the policy needs to follow the namespaced entity ID notation (see Ditto documentation on namespaced entity IDs).
The namespace needs to:
- conform to the reverse domain name notation
labelstringrequiredpathThe label of a policy entry
Response
The request was successful. The subject was removed.
The request could not be completed because the authentication was not performed with a JWT.
The request could not be completed because the user did not have the EXECUTE permission on this policy entry.
The request could not be completed because this policy entry did not match the following conditions:
- containing a a subject ID matching the JWT's authenticated subject
Authorization
OpenIDConnectopenIdConnectOpenID Connect Discovery URL. The placeholder is replaced by Swagger UI when configured.
NginxBasichttp (basic)Eclipse Ditto sandbox demo user (demo1 ... demo9) + password (demo)
Bearerhttp (bearer)A JSON Web Token issued by a supported OAuth 2.0 Identity Provider.