Added handling of resource owner authentication