An altered version of Roy's oauth2 sample