Implemented datasource switching based on a 'client' credential in token