oauth sample code added