adding support for client credentials - fixing test cases - renaming oauthState function to oauthContext function and change oauthStateId attributo to resourceOwnerId attribute