define oauth methods