[Task #34] - Add application parameters to client_credentials tokens - Fix mongodb issue

The client credentials details weren't properly retrieved when using mongodb for token storage.