Implement issuing of client IDs and tokens.