fix oauth2 sample bug