Implement OAuth2 authorization, tested only for client_credential grant type