Using token-based authentication with the REST API

How you set up token-based authentication with the REST API from IBM® MQ 9.0.5, and for IBM MQ 9.0.4 and earlier.