Add support to oauth2 with 'client_credentials' and 'authorization_code'.