Revoking and reissuing a JSON Web Token
Steps to revoke and reissue a JWT
To revoke a JSON Web Token (JWT), delete the workstation definition to which the JWT is
associated from the database. You can perform this operation from the Dynamic Workload Console or from the command line.
To delete the agent from the command line, perform the following steps:
- Open a shell session.
- Launch the composer script.
- Type the following
command:
wheredelete workstation workstation_name
- workstation_name
- is the name of the agent whose JWT you want to revoke.
For more information about the delete command, see delete.
From the Dynamic Workload Console, you can
perform the same operation as follows:
- Log in to the Dynamic Workload Console.
- Click Design > Workload Designer.
- Select an engine.
- Click the Workstation item card to display all existing workstations.
- Select the workstation to be deleted.
- Click Delete.
If you want the agent to authenticate with JWT again, download a new JWT to the agent using the AgentCertificateDownloader script.
Consider the following
example:
./AgentCertificateDownloader.sh --wauser MDMAdmin --wapassword 125784gtrOLK8542Mnfdw!
--jwt true -tdwbhostname Saturn -tdwbport 37116
For more information about the AgentCertificateDownloader script, see Certificates download to dynamic agents - AgentCertificateDownloader script.