oauth sample code from git