adding method, tests for client credentials authentication