Implemented client credentials flow