This flow makes it easy to add authentication to a CLI while keeping higher an HTTP server that corresponds to the allowed callback for the client. With the code , the program then uses the /oauth/token endpoint to obtain a token..