added oauth psedo code